| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static interface | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern | |
| private static final SecureRandom | |
| private static final Pattern | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | concatConsistentCase(String baseString, String addition)
Concatenates the addition string to the baseString string, adjusting the case of "addition" to match the base string. |
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: true if the Strings are equal by the above criteria, false in all other casesthe first String to compare (or null) s1, String the second String to compare (or null) s2)Returns if two strings are equal, ignoring:
|
| public static boolean | |
| public static String | |
| public static byte[] | |
| public static String | Returns: the last block comment in the SQL string, ornull if none was foundthe SQL string to search for the last block comment sqlString)Retrieves the last block comment in a SQL string, if any. |
| public static String | Returns: the last line comment from the SQL string, ornull if there is no line commentthe SQL string to search sqlString)Returns the last line comment from a given SQL string, if there is one. |
| public static boolean | |
| public static boolean | |
| public static String | |
| public static String | |
| public static boolean | |
| public static boolean | Returns: true if 7 bit-clean, false otherwise.the character to test ch)Returns true if ch is a "7-bit-clean" ASCII character (ordinal number < 128). |
| protected static boolean | isDelimiter(String
the input line to test piece, String the characters in the input stream that came before piece previousPiece, String ??? (need to see this in a debugger to find out) endDelimiter)Returns true if the input is a delimiter in one of the popular RDBMSs. |
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: true if candidateMajor.candidateMinor.candidatePatch >= minimumVersion or false if notThe minimum version that is required, given as a string with up to 3 parts, e.g. "7.4" or "9.6.3" minimumVersion, int the version number to be tested, major part candidateMajor, int the version number to be tested, minor part candidateMinor, int the version number to be tested, patch part candidatePatch)Compares a minimum version number given in string form (only the first three parts are considered) with a candidate version given as the three ints major, minor and patch. |
| public static boolean | Returns: true if string is not null and not empty (length > 0)String to be checked value)Returns true if the input string is NOT the empty string. |
| public static boolean | Returns: true if convertible to numeric and false otherwisethe arg to check if it is numeric cs)Checks whether the char sequence is numeric by checking that all chars in the sequence are numbers, so (-1, 1.0 and 1F) will return false This code originated from the StringUtils class of commons-lang |
| public static boolean | Returns: true if the string is null or only consists of whitespaces.the string to test string)Returns true if the given string only consists of whitespace characters (null-safe) |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | join(Collection<E> collection, String delimiter, StringUtil.
|
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | join(ExtensibleObject extensibleObject, String delimiter, StringUtil.
|
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| private static List | mergeTokens(List<Object> parsedArray, String endDelimiter)
Delimiters like "//" may span multiple tokens. |
| public static String | |
| public static String[] | processMultiLineSQL(String
A String containing all the SQL statements multiLineSQL, boolean If true then comments will be stripped, if false then they will be left in the code stripComments, boolean splitStatements, String endDelimiter)Removes any comments from multiple line SQL using |
| public static String[] | processMultiLineSQL(String
A String containing all the SQL statements multiLineSQL, boolean If true then comments will be stripped, if false then they will be left in the code stripComments, boolean splitStatements, String endDelimiter, ChangeSet the changeset associated with the sql being parsed changeSet)Removes any comments from multiple line SQL using |
| public static String[] | processMutliLineSQL(String
A String containing all the SQL statements multiLineSQL, boolean If true then comments will be stripped, if false then they will be left in the code stripComments, boolean splitStatements, String endDelimiter)
Deprecated
The new method is
processMultiLineSQL(String, boolean, boolean, String, ChangeSet) (String)}
Removes any comments from multiple line SQL using |
| public static String[] | processMutliLineSQL(String
A String containing all the SQL statements multiLineSQL, boolean If true then comments will be stripped, if false then they will be left in the code stripComments, boolean splitStatements, String endDelimiter, ChangeSet the changeset associated with the sql being parsed changeSet)
Deprecated
The new method is
processMultiLineSQL(String, boolean, boolean, String, ChangeSet) (String)}
Removes any comments from multiple line SQL using |
| public static String | Returns: an identifier of the desired lengthdesired length of the string len)Produce a random identifer of the given length, consisting only of uppercase letters. |
| public static String | |
| public static List | |
| public static String[] | Returns: an array of parsed Strings,null if null String inputthe String to split, may be str)nullSplits a camel-case string into words based on the came casing. |
| public static String[] | |
| public static String[] | |
| public static String | |
| public static boolean | Returns: true if value starts with startsWith, false otherwise.
Returns false if either argument is null.the string to check value, String the prefix to check for startsWith)Checks whether the given |
| public static String | Returns: The String without the comments inSearches through a String which contains SQL code and strips out any comments that are between \/**\/ or anything that matches SP--SP<text>\n (to support the ANSI standard commenting of -- at the end of a line). |
| public static String | Returns: The String without the comments inthe changeset associated with the sql being parsed changeSet)Searches through a String which contains SQL code and strips out any comments that are between \/**\/ or anything that matches SP--SP<text>\n (to support the ANSI standard commenting of -- at the end of a line). |
| public static String | |
| public static String | Returns: the stripped SQL stringthe SQL string to strip sqlString)Strips the comments and white spaces from the end of given SQL string. |
| public static String | |
| public static String | |
| public static String | Returns: string without any whitespaces formatted to lowercase.string to process value)
|
| public static String | Returns: new String without the whitespace at the endString to trim string)Trims |
| public static String | Returns: the trimmed string, or an empty string if the input was null.the input string to trim string)Returns the trimmed (left and right) version of the input string. |
| public static String | Returns: the trimmed string or nullthe string to trim string)Returns the trimmed (left and right) form of the input string. |
| public static String | |
| public static String | Returns: String Output string with new linesThe string to split and wrap inputStr, int The point at which to split the lines wrapPoint, int Any additional spaces to add extraLinePadding)
Deprecated
Liquibase does not wrap any console output, and instead lets the terminal handle its own wrapping.
If you wish to use this method, consider whether its usage is truly necessary.
Add new lines to the input string to cause output to wrap. |