| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String[] | |
| public static boolean | |
| private static String | Returns: The cleaned alias, stripped of any leading non-alpha characters.The generated alias to be cleaned. alias)Clean the generated alias by removing any non-alpha characters from the beginning. |
| public static String | |
| public static String | Returns: The collapsed form.The qualifier to collapse. qualifier, boolean Should we include the dots in the collapsed form? includeDots)Given a qualifier, collapse it. |
| public static String | Returns: The name itself if it does not begin with the qualifierBase, or the properly collapsed form otherwise.The (potentially) qualified name. name, String The qualifier base. qualifierBase)Cross between |
| public static int | |
| public static int | |
| public static String | |
| public static String | Returns: an alias of the form foo1_The base name (usually an entity-name or collection-role) description, int A uniquing value unique)Generate a nice alias for the given class name or collection role name and unique integer. |
| private static String | Returns: The generated root alias.The root name from which to generate a root alias. description)Generates a root alias by truncating the "root name" defined by the incoming decription and removing/modifying any non-valid alias characters. |
| public static char | |
| public static char | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static String | |
| public static String | |
| public static int | |
| public static int[] | |
| public static String | |
| public static String[] | |
| private static String[] | |
| public static String | Returns: The name itself, or the partially unqualified form if it begins with the qualifier base.The (potentially) qualified name. name, String The qualifier base. qualifierBase)Partially unqualifies a qualified name. |
| public static String | |
| public static String | |
| public static String[] | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String[] | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String[] | |
| public static String[] | |
| public static String[] | |
| private static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String[] | |
| public static String |
| ALIAS_TRUNCATE_LENGTH | back to summary |
|---|---|
| private static final int ALIAS_TRUNCATE_LENGTH | |
| WHITESPACE | back to summary |
|---|---|
| public static final String WHITESPACE | |
| StringHelper | back to summary |
|---|---|
| private StringHelper() | |
| add | back to summary |
|---|---|
| public static String[] add(String[] x, String sep, String[] y) | |
| booleanValue | back to summary |
|---|---|
| public static boolean booleanValue(String tfString) | |
| cleanAlias | back to summary |
|---|---|
| private static String cleanAlias(String alias) Clean the generated alias by removing any non-alpha characters from the beginning. | |
| collapse | back to summary |
|---|---|
| public static String collapse(String name) Collapses a name. Mainly intended for use with classnames, where an example might serve best to explain. Imagine you have a class named 'org.hibernate.util.StringHelper'; calling collapse on that classname will result in 'o.h.u.StringHelper'. | |
| collapseQualifier | back to summary |
|---|---|
| public static String collapseQualifier(String qualifier, boolean includeDots) Given a qualifier, collapse it. | |
| collapseQualifierBase | back to summary |
|---|---|
| public static String collapseQualifierBase(String name, String qualifierBase) Cross between | |
| countUnquoted | back to summary |
|---|---|
| public static int countUnquoted(String string, char character) | |
| firstIndexOfChar | back to summary |
|---|---|
| public static int firstIndexOfChar(String sqlString, String string, int startindex) | |
| generateAlias | back to summary |
|---|---|
| public static String generateAlias(String description) | |
| generateAlias | back to summary |
|---|---|
| public static String generateAlias(String description, int unique) Generate a nice alias for the given class name or collection role name and unique integer. Subclasses of Loader do not have to use aliases of this form. | |
| generateAliasRoot | back to summary |
|---|---|
| private static String generateAliasRoot(String description) Generates a root alias by truncating the "root name" defined by the incoming decription and removing/modifying any non-valid alias characters. | |
| getFirstNonWhitespaceCharacter | back to summary |
|---|---|
| public static char getFirstNonWhitespaceCharacter(String str) | |
| getLastNonWhitespaceCharacter | back to summary |
|---|---|
| public static char getLastNonWhitespaceCharacter(String str) | |
| isEmpty | back to summary |
|---|---|
| public static boolean isEmpty(String string) | |
| isNotEmpty | back to summary |
|---|---|
| public static boolean isNotEmpty(String string) | |
| isQuoted | back to summary |
|---|---|
| public static boolean isQuoted(String name) Determine if the given string is quoted (wrapped by '`' characters at beginning and end).
| |
| isQuoted | back to summary |
|---|---|
| public static boolean isQuoted(String name, Dialect dialect) Determine if the given name is quoted. It is considered quoted if either:
| |
| join | back to summary |
|---|---|
| public static String join(String seperator, String[] strings) | |
| join | back to summary |
|---|---|
| public static String join(String seperator, Iterator<E> objects) | |
| lastIndexOfLetter | back to summary |
|---|---|
| public static int lastIndexOfLetter(String string) | |
| locateUnquoted | back to summary |
|---|---|
| public static int[] locateUnquoted(String string, char character) | |
| moveAndToBeginning | back to summary |
|---|---|
| public static String moveAndToBeginning(String filter) | |
| multiply | back to summary |
|---|---|
| public static String[] multiply(String string, Iterator<E> placeholders, Iterator<E> replacements) | |
| multiply | back to summary |
|---|---|
| private static String[] multiply(String[] strings, String placeholder, String[] replacements) | |
| partiallyUnqualify | back to summary |
|---|---|
| public static String partiallyUnqualify(String name, String qualifierBase) Partially unqualifies a qualified name. For example, with a base of 'org.hibernate' the name 'org.hibernate.util.StringHelper' would become 'util.StringHelper'. | |
| qualifier | back to summary |
|---|---|
| public static String qualifier(String qualifiedName) | |
| qualify | back to summary |
|---|---|
| public static String qualify(String prefix, String name) | |
| qualify | back to summary |
|---|---|
| public static String[] qualify(String prefix, String[] names) | |
| quote | back to summary |
|---|---|
| public static String quote(String name) Return a representation of the given name ensuring quoting (wrapped with '`' characters). If already wrapped return name. | |
| repeat | back to summary |
|---|---|
| public static String repeat(String string, int times) | |
| repeat | back to summary |
|---|---|
| public static String repeat(char character, int times) | |
| replace | back to summary |
|---|---|
| public static String replace(String template, String placeholder, String replacement) | |
| replace | back to summary |
|---|---|
| public static String[] replace(String[] templates, String placeholder, String replacement) | |
| replace | back to summary |
|---|---|
| public static String replace(String template, String placeholder, String replacement, boolean wholeWords) | |
| replace | back to summary |
|---|---|
| public static String replace(String template, String placeholder, String replacement, boolean wholeWords, boolean encloseInParensIfNecessary) | |
| replace | back to summary |
|---|---|
| public static String replace(String beforePlaceholder, String afterPlaceholder, String placeholder, String replacement, boolean wholeWords, boolean encloseInParensIfNecessary) | |
| replaceOnce | back to summary |
|---|---|
| public static String replaceOnce(String template, String placeholder, String replacement) | |
| root | back to summary |
|---|---|
| public static String root(String qualifiedName) | |
| split | back to summary |
|---|---|
| public static String[] split(String seperators, String list) | |
| split | back to summary |
|---|---|
| public static String[] split(String seperators, String list, boolean include) | |
| suffix | back to summary |
|---|---|
| public static String[] suffix(String[] columns, String suffix) | |
| suffix | back to summary |
|---|---|
| private static String suffix(String name, String suffix) | |
| toLowerCase | back to summary |
|---|---|
| public static String toLowerCase(String str) | |
| toString | back to summary |
|---|---|
| public static String toString(Object[] array) | |
| toUpperCase | back to summary |
|---|---|
| public static String toUpperCase(String str) | |
| truncate | back to summary |
|---|---|
| public static String truncate(String string, int length) | |
| unqualify | back to summary |
|---|---|
| public static String unqualify(String qualifiedName) | |
| unqualifyEntityName | back to summary |
|---|---|
| public static String unqualifyEntityName(String entityName) | |
| unquote | back to summary |
|---|---|
| public static String unquote(String name) Return the unquoted version of name (stripping the start and end '`' characters if present). | |
| unquote | back to summary |
|---|---|
| public static String unquote(String name, Dialect dialect) Return the unquoted version of name stripping the start and end quote characters. | |
| unquote | back to summary |
|---|---|
| public static String[] unquote(String[] names, Dialect dialect) Return the unquoted version of name stripping the start and end quote characters. | |
| unroot | back to summary |
|---|---|
| public static String unroot(String qualifiedName) | |