Class SqlTokenizer
java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.util.SqlTokenizer
A statement tokenizer for SQL strings that splits only at delimiters that
are at the end of a line or the end of the SQL (row mode).
TODO: Add awareness of strings, so that semicolons within strings are not parsed
- Version:
- $Revision: $
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the next statement.boolean
Determines whether there are more statements.
-
Constructor Details
-
SqlTokenizer
Creates a new sql tokenizer.- Parameters:
sql
- The sql text
-
-
Method Details
-
hasMoreStatements
public boolean hasMoreStatements()Determines whether there are more statements.- Returns:
true
if there are more statements
-
getNextStatement
Returns the next statement.- Returns:
- The statement
-