Class SqlScriptReader


  • public class SqlScriptReader
    extends Object
    Reads a multiline SQL file extracting each command separately. Skips empty lines, assumes comments start with "--" and are on their own line
    • Constructor Summary

      Constructors 
      Constructor Description
      SqlScriptReader​(Reader reader)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()  
      boolean hasNext()  
      String next()  
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SqlScriptReader

        public SqlScriptReader​(Reader reader)
    • Method Detail

      • hasNext

        public boolean hasNext()
                        throws IOException
        Throws:
        IOException
      • next

        public String next()
                    throws IOException
        Throws:
        IOException
      • dispose

        public void dispose()