Class DbSchemaCreator


  • public class DbSchemaCreator
    extends Object
    This class create the schema for taskana.
    • Constructor Detail

      • DbSchemaCreator

        public DbSchemaCreator​(DataSource dataSource,
                               String schema)
    • Method Detail

      • run

        public void run()
                 throws SQLException
        Run all db scripts.
        Throws:
        SQLException - will be thrown if there will be some incorrect SQL statements invoked.
      • isValidSchemaVersion

        public boolean isValidSchemaVersion​(String expectedMinVersion)
      • getDataSource

        public DataSource getDataSource()
      • setDataSource

        public void setDataSource​(DataSource dataSource)