Klasse DatabaseInitializer
java.lang.Object
ch.nolix.system.midschema.databaseinitializer.AbstractDatabaseInitializer
ch.nolix.system.sqlmidschema.databaseinitializer.DatabaseInitializer
- Alle implementierten Schnittstellen:
IDatabaseInitializer
- Version:
- 2025-01-12
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic DatabaseInitializer
forDatabaseNameAndSqlConnectionAndSqlSchemaQueryCreator
(String databaseName, ISqlConnection sqlConnection, IQueryCreator sqlSchemaQueryCreator) protected void
initializeDatabaseWithInitialSchemaTimestamp
(ITime initialSchemaTimestamp) Initializes the database with the given initialSchemaTimeStamp.Von Klasse geerbte Methoden ch.nolix.system.midschema.databaseinitializer.AbstractDatabaseInitializer
initializeDatabaseIfNotInitialized
-
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
- Gibt zurück:
- the state of the database.
-
initializeDatabaseWithInitialSchemaTimestamp
Initializes the database with the given initialSchemaTimeStamp.- Angegeben von:
initializeDatabaseWithInitialSchemaTimestamp
in KlasseAbstractDatabaseInitializer
- Parameter:
initialSchemaTimestamp
-
-