| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| public static final String[] | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String[] | |
| 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 | |
| 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 int | |
| 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 description and removing/modifying any non-valid alias characters. |
| public static char | |
| public static char | |
| public static String | Returns: iffirstExpression and secondExpression are both non-empty,
then "( " + firstExpression + " ) and ( " + secondExpression + " )" is returned;
if firstExpression is non-empty and secondExpression is empty,
then firstExpression is returned;
if firstExpression is empty and secondExpression is non-empty,
then secondExpression is returned;
if both firstExpression and secondExpression are empty, then null is returned.the first expression firstExpression, String the second expression secondExpression)
|
| public static int | indexOfIdentifierWord(String str, String word)
Used to find the ordinal parameters (e.g. '?1') in a string. |
| private static int | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static <T> String | |
| public static String | |
| public static int | |
| public static String | |
| public static String[] | |
| private static String[] | |
| public static String | |
| public static List | |
| 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 | qualifyConditionallyIfNot(String prefix, String name)
Qualifies
|
| public static String | |
| public static String | |
| public static String | |
| public static void | |
| public static String | |
| public static String[] | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | Returns: The interned string.The string to intern. string)Return the interned form of a String, or null if the parameter is null. |
| 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 |
| ALIAS_TRUNCATE_LENGTH | back to summary |
|---|---|
| private static final int ALIAS_TRUNCATE_LENGTH | |
| EMPTY_STRINGS | back to summary |
|---|---|
| public static final String[] EMPTY_STRINGS | |
| 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) | |
| cleanAlias | back to summary |
|---|---|
| private static String cleanAlias(String alias) Clean the generated alias by removing any non-alpha characters from the beginning. | |
| coalesce | back to summary |
|---|---|
| public static String coalesce(@NonNull String fallbackValue, @NonNull String... values) | |
| coalesce | back to summary |
|---|---|
| public static String coalesce(@NonNull String fallbackValue, String value) | |
| 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.internal.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 | |
| count | back to summary |
|---|---|
| public static int count(String text, String match) | |
| count | back to summary |
|---|---|
| public static int count(String text, char match) | |
| countUnquoted | back to summary |
|---|---|
| public static int countUnquoted(String string, char character) | |
| firstIndexOfChar | back to summary |
|---|---|
| public static int firstIndexOfChar(String sqlString, BitSet keys, int startindex) | |
| 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 description 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) | |
| getNonEmptyOrConjunctionIfBothNonEmpty | back to summary |
|---|---|
public static String getNonEmptyOrConjunctionIfBothNonEmpty(String firstExpression, String secondExpression)
| |
| indexOfIdentifierWord | back to summary |
|---|---|
| public static int indexOfIdentifierWord(String str, String word) Used to find the ordinal parameters (e.g. '?1') in a string. | |
| indexOfPlaceHolder | back to summary |
|---|---|
| private static int indexOfPlaceHolder(String template, String placeholder, boolean wholeWords) | |
| isBlank | back to summary |
|---|---|
| public static boolean isBlank(String string) | |
| 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(final String name) Determine if the given string is quoted (wrapped by '`' characters at beginning and end).
| |
| isQuoted | back to summary |
|---|---|
| public static boolean isQuoted(final String name, final Dialect dialect) Determine if the given name is quoted. It is considered quoted if either:
| |
| join | back to summary |
|---|---|
| public static String join(String separator, String[] strings) | |
| join | back to summary |
|---|---|
| public static String join(String separator, Object[] values) | |
| join | back to summary |
|---|---|
| public static String join(String separator, Iterable<?> objects) | |
| join | back to summary |
|---|---|
| public static String join(String separator, Iterator<?> objects) | |
| join | back to summary |
|---|---|
| public static <T> String join(Collection<T> values, StringHelper. | |
| joinWithQualifierAndSuffix | back to summary |
|---|---|
| public static String joinWithQualifierAndSuffix(String[] values, String qualifier, String suffix, String deliminator) | |
| lastIndexOfLetter | back to summary |
|---|---|
| public static int lastIndexOfLetter(String string) | |
| moveAndToBeginning | back to summary |
|---|---|
| public static String moveAndToBeginning(String filter) | |
| multiply | back to summary |
|---|---|
| public static String[] multiply(String string, Iterator<String> placeholders, Iterator<String[]> replacements) | |
| multiply | back to summary |
|---|---|
| private static String[] multiply(String[] strings, String placeholder, String[] replacements) | |
| nullIfEmpty | back to summary |
|---|---|
| public static String nullIfEmpty(@Nullable String value) | |
| parseCommaSeparatedString | back to summary |
|---|---|
| public static List | |
| 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.internal.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) | |
| qualifyConditionally | back to summary |
|---|---|
| public static String qualifyConditionally(String prefix, String name) | |
| qualifyConditionallyIfNot | back to summary |
|---|---|
| public static String qualifyConditionallyIfNot(String prefix, String name) Qualifies
API Note Similar to | |
| repeat | back to summary |
|---|---|
| public static String repeat(String string, int times) | |
| repeat | back to summary |
|---|---|
| public static String repeat(String string, int times, String deliminator) | |
| repeat | back to summary |
|---|---|
| public static String repeat(char character, int times) | |
| repeat | back to summary |
|---|---|
| public static void repeat(String string, int times, String separator, StringBuilder buffer) | |
| 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) | |
| safeInterning | back to summary |
|---|---|
| public static String safeInterning(final String string) Return the interned form of a String, or null if the parameter is null. Use with caution: excessive interning is known to cause issues. Best to use only with strings which are known to be long-lived constants, and for which the chances of being actual duplicates is proven. (Even better: avoid needing interning by design changes such as reusing the known reference) | |
| split | back to summary |
|---|---|
| public static String[] split(String separators, String list) | |
| split | back to summary |
|---|---|
| public static String[] split(String separators, String list, boolean include) | |
| splitFull | back to summary |
|---|---|
| public static String[] splitFull(String separators, String list) | |
| splitTrimmingTokens | back to summary |
|---|---|
| public static String[] splitTrimmingTokens(String separators, String list, boolean include) | |
| subStringNullIfEmpty | back to summary |
|---|---|
| public static String subStringNullIfEmpty(String value, Character startChar) | |
| suffix | back to summary |
|---|---|
| public static String[] suffix(String[] columns, String suffix) | |
| suffix | back to summary |
|---|---|
| private static String suffix(String name, String suffix) | |
| toString | back to summary |
|---|---|
| public static String toString(Object[] array) | |
| 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(final String[] names, final 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) | |
| render | back to summary |
|---|---|
| public String render(T value) | |