play.db
Class SQLSplitter

java.lang.Object
  extended by play.db.SQLSplitter
All Implemented Interfaces:
java.lang.Iterable<java.lang.CharSequence>

public class SQLSplitter
extends java.lang.Object
implements java.lang.Iterable<java.lang.CharSequence>


Constructor Summary
SQLSplitter(java.lang.CharSequence sql)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLSplitter

public SQLSplitter(java.lang.CharSequence sql)
Method Detail

splitSQL

public static java.util.ArrayList<java.lang.CharSequence> splitSQL(java.lang.CharSequence sql)
Splits the SQL "properly" based on semicolons. Respecting quotes and comments.


iterator

public java.util.Iterator<java.lang.CharSequence> iterator()
Specified by:
iterator in interface java.lang.Iterable<java.lang.CharSequence>


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly