Class DefaultDbScriptsExecutor

    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultDbScriptsExecutor​(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, SqlScriptParser sqlScriptParser, int ddlBatchSize, int dmlBatchSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void executeDDl​(java.io.Reader scriptReader)
      Executes DDL script from Reader against current database.
      void executeDDl​(java.nio.file.Path scriptPath)
      Executes DDL script from Path against current database.
      void executeDml​(java.io.Reader scriptReader)
      Executes DML script from Reader against current database.
      void executeDml​(java.nio.file.Path scriptPath)
      Executes DML script from Path against current database.
      void executeDropDdl​(java.io.Reader scriptReader)
      Executes DDL Drop script from Reader against current database.
      void executeDropDdl​(java.nio.file.Path scriptPath)
      Executes DDL Drop script from Path against current database.
      protected java.lang.Iterable<java.lang.String> parseDdl​(java.io.Reader scriptReader)  
      protected java.lang.Iterable<java.lang.String> parseDml​(java.io.Reader scriptReader)  
      protected java.lang.Iterable<java.lang.String> parseDropDdl​(java.io.Reader scriptReader)  
      • Methods inherited from class java.lang.Object

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

      • DefaultDbScriptsExecutor

        public DefaultDbScriptsExecutor​(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
                                        SqlScriptParser sqlScriptParser,
                                        int ddlBatchSize,
                                        int dmlBatchSize)
    • Method Detail

      • parseDdl

        protected java.lang.Iterable<java.lang.String> parseDdl​(java.io.Reader scriptReader)
      • parseDropDdl

        protected java.lang.Iterable<java.lang.String> parseDropDdl​(java.io.Reader scriptReader)
      • parseDml

        protected java.lang.Iterable<java.lang.String> parseDml​(java.io.Reader scriptReader)