Class MultipleLinesSqlCommandExtractor

  • All Implemented Interfaces:
    java.io.Serializable, 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​(java.io.Reader reader)
        Specified by:
        extractCommands in interface ImportSqlCommandExtractor
        Parameters:
        reader - Character stream reader of SQL script.
        Returns:
        List of single SQL statements. Each command may or may not contain semicolon at the end.