| java.lang.Object liquibase.util.StringUtils
StringUtils | public class StringUtils (Code) | | Various utility methods for working with strings.
|
processMutliLineSQL | public static String[] processMutliLineSQL(String multiLineSQL, boolean stripComments)(Code) | | Removes any comments from multiple line SQL using
StringUtils.stripComments(String) and then extracts each individual statement using
StringUtils.splitSQL(String) .
Parameters: multiLineSQL - A String containing all the SQL statements Parameters: stripComments - If true then comments will be stripped, if false then they will be left in the code |
splitSQL | public static String[] splitSQL(String multiLineSQL)(Code) | | Splits a (possible) multi-line SQL statement along ;'s and "go"'s.
|
stripComments | public static String stripComments(String multiLineSQL)(Code) | | Searches through a String which contains SQL code and strips out
any comments that are between \/**\/ or anything that matches
SP--SP\n (to support the ANSI standard commenting of --
at the end of a line).
The String without the comments in |
|
|