Class SingleLineSqlCommandExtractor

  • All Implemented Interfaces:, Service, ImportSqlCommandExtractor

    public class SingleLineSqlCommandExtractor
    extends java.lang.Object
    implements ImportSqlCommandExtractor
    Class responsible for extracting SQL statements from import script. Treads each line as a complete SQL statement. Comment lines shall start with --, // or /* character sequence.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] extractCommands​( reader)  
      • Methods inherited from class java.lang.Object

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

      • SingleLineSqlCommandExtractor

        public SingleLineSqlCommandExtractor()
    • Method Detail

      • extractCommands

        public java.lang.String[] extractCommands​( reader)
        Specified by:
        extractCommands in interface ImportSqlCommandExtractor
        reader - Character stream reader of SQL script.
        List of single SQL statements. Each command may or may not contain semicolon at the end.