Class MultipleLinesSqlCommandExtractor

  • All Implemented Interfaces:, Service, ImportSqlCommandExtractor

    public class MultipleLinesSqlCommandExtractor
    extends java.lang.Object
    implements ImportSqlCommandExtractor
    Class responsible for extracting SQL statements from import script. Supports instructions/comments and quoted strings spread over multiple lines. Each statement must end with semicolon.
    See Also:
    Serialized Form
    • Constructor Detail

      • MultipleLinesSqlCommandExtractor

        public MultipleLinesSqlCommandExtractor()
    • 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.