Klasse DatabaseInitializer

java.lang.Object
ch.nolix.system.midschema.databaseinitializer.AbstractDatabaseInitializer
ch.nolix.system.sqlmidschema.databaseinitializer.DatabaseInitializer
Alle implementierten Schnittstellen:
IDatabaseInitializer

public final class DatabaseInitializer extends AbstractDatabaseInitializer
Version:
2025-01-12
Autor:
Silvan Wyss
  • Methodendetails

    • forDatabaseNameAndSqlConnectionAndSqlSchemaQueryCreator

      public static DatabaseInitializer forDatabaseNameAndSqlConnectionAndSqlSchemaQueryCreator(String databaseName, ISqlConnection sqlConnection, IQueryCreator sqlSchemaQueryCreator)
      Parameter:
      databaseName -
      sqlConnection -
      sqlSchemaQueryCreator -
      Gibt zurück:
      a new DatabaseInitializer with the given databaseName, sqlConnection and sqlSchemaQueryCreator.
      Löst aus:
      RuntimeException - if the given datbaseName is null or blank.
      RuntimeException - if the given sqlConnection is null or closed.
      RuntimeException - if the given sqlSchemaQueryCreator is null.
    • getDatabaseState

      public DatabaseState getDatabaseState()
      Gibt zurück:
      the state of the database.
    • initializeDatabaseWithInitialSchemaTimestamp

      protected void initializeDatabaseWithInitialSchemaTimestamp(ITime initialSchemaTimestamp)
      Initializes the database with the given initialSchemaTimeStamp.
      Angegeben von:
      initializeDatabaseWithInitialSchemaTimestamp in Klasse AbstractDatabaseInitializer
      Parameter:
      initialSchemaTimestamp -