public class SQLSplitter
extends java.lang.Object
implements java.lang.Iterable<java.lang.CharSequence>
Constructor and Description |
---|
SQLSplitter(java.lang.CharSequence sql) |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<java.lang.CharSequence> |
iterator() |
static java.util.ArrayList<java.lang.CharSequence> |
splitSQL(java.lang.CharSequence sql)
Splits the SQL "properly" based on semicolons.
|
public static java.util.ArrayList<java.lang.CharSequence> splitSQL(java.lang.CharSequence sql)
sql
- the SQL statementpublic java.util.Iterator<java.lang.CharSequence> iterator()
iterator
in interface java.lang.Iterable<java.lang.CharSequence>
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly