|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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
| Constructor Summary | |
SqlTokenizer(String sql)
Creates a new sql tokenizer. |
|
| Method Summary | |
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(String sql)
sql - The sql text| Method Detail |
public boolean hasMoreStatements()
true if there are more statementspublic String getNextStatement()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||