public class KittyDevDropCreateMigrator extends KittyORMVersionMigrator
KittySQLiteQuery
as [1] of migrationsParameters.
CreateDropHelper.generateCreationScript(KittyDatabaseConfiguration)
.
Created by akaish on 14.06.2018.AME_SEQUENCE_NOT_APPLICABLE, context, currentVersion, logOn, logTag, migrationFactory, migrations, oldVersion, schemaName
Constructor and Description |
---|
KittyDevDropCreateMigrator(int oldVersion,
int currentVersion,
android.content.Context ctx,
java.lang.String schemaName,
java.lang.String logTag,
boolean logOn,
java.lang.Object[] factoryParameters,
java.lang.Object[] migrationsParameters)
Create Drop development migrator.
|
Modifier and Type | Method and Description |
---|---|
protected <T extends KittyMigrationFactory> |
getMigrationFactory(java.lang.Object... parameters)
Returns child depended migrations factory
|
boolean |
isMigrationSequenceApplicable()
Returns true if migration sequence can be applied step by step from old to current databaseClass versions
|
protected void |
setMigrations(java.lang.Object... parameters)
|
protected void |
setParameters(java.lang.Object[] factoryParameters,
java.lang.Object[] migrationsParameters) |
getMigrations, getMigrationsIterator, orderMigrationsList
public KittyDevDropCreateMigrator(int oldVersion, int currentVersion, android.content.Context ctx, java.lang.String schemaName, java.lang.String logTag, boolean logOn, java.lang.Object[] factoryParameters, java.lang.Object[] migrationsParameters)
KittySQLiteQuery
instances as [1] of migrationsParameters.oldVersion
- currentVersion
- ctx
- schemaName
- logTag
- logOn
- factoryParameters
- migrationsParameters
- protected void setParameters(java.lang.Object[] factoryParameters, java.lang.Object[] migrationsParameters)
setParameters
in class KittyORMVersionMigrator
protected <T extends KittyMigrationFactory> T getMigrationFactory(java.lang.Object... parameters)
KittyORMVersionMigrator
getMigrationFactory
in class KittyORMVersionMigrator
public boolean isMigrationSequenceApplicable()
KittyORMVersionMigrator
isMigrationSequenceApplicable
in class KittyORMVersionMigrator
protected void setMigrations(java.lang.Object... parameters)
KittyORMVersionMigrator
setMigrations
in class KittyORMVersionMigrator