|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ddlutils.util.SqlTokenizer
public class 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
Constructor Summary | |
---|---|
SqlTokenizer(java.lang.String sql)
Creates a new sql tokenizer. |
Method Summary | |
---|---|
java.lang.String |
getNextStatement()
Returns the next statement. |
boolean |
hasMoreStatements()
Determines whether there are more statements. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SqlTokenizer(java.lang.String sql)
sql
- The sql textMethod Detail |
---|
public boolean hasMoreStatements()
true
if there are more statementspublic java.lang.String getNextStatement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |