public abstract class KittyMigrationFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
currentVersionFilter |
protected java.lang.String |
databaseName |
protected static java.lang.String |
IA_FILTER |
protected boolean |
logOn |
protected java.lang.String |
logTag |
protected int |
oldVersionFilter |
Constructor and Description |
---|
KittyMigrationFactory(java.lang.String databaseName,
java.lang.String logTag,
boolean logOn) |
Modifier and Type | Method and Description |
---|---|
abstract KittyMigration |
newMigration()
Returns new
KittyMigration instance or null if errors
Use logging on if you need to debug it |
void |
setVersionFilter(int oldVersion,
int currentVersion)
Sets filter.
|
protected final java.lang.String databaseName
protected final java.lang.String logTag
protected final boolean logOn
protected int oldVersionFilter
protected int currentVersionFilter
protected static java.lang.String IA_FILTER
public KittyMigrationFactory(java.lang.String databaseName, java.lang.String logTag, boolean logOn)
public void setVersionFilter(int oldVersion, int currentVersion)
oldVersion
- currentVersion
- public abstract KittyMigration newMigration()
KittyMigration
instance or null if errors
Use logging on if you need to debug it