Modifier and Type | Field and Description |
---|---|
protected KittyTableConfiguration |
KittyMapper.tableConfig
Table configuration
|
Modifier and Type | Method and Description |
---|---|
static <M extends KittyModel> |
PreparedStatementBinder.bindModelValuesToPreparedStatement(M model,
KittyTableConfiguration table,
android.database.sqlite.SQLiteStatement statement) |
static <M extends KittyModel> |
CVUtils.cursorToModel(boolean rowIDSupport,
android.database.Cursor cursor,
M model,
KittyTableConfiguration table)
Deprecated.
|
static <M extends KittyModel> |
CVUtils.modelToCV(M model,
KittyTableConfiguration table)
Generates
ContentValues instance from provided instance of KittyModel with usage
of KittyTableConfiguration configuration. |
static <M extends KittyModel> |
CVUtils.modelToCV(M model,
KittyTableConfiguration table,
java.lang.String[] names,
int skipOrInclude)
Generates
ContentValues instance from provided instance of KittyModel with usage
of KittyTableConfiguration configuration. |
(package private) static <D extends KittyMapper,M extends KittyModel> |
KittyMMEntryFactory.newKittyMapper(java.lang.Class<D> kittyDataMapperClass,
KittyTableConfiguration tableConfiguration,
KittyDatabaseConfiguration dbConfiguration,
M blankModel,
java.lang.String dbPassword)
Creates new KittyMapper from mapper class and other needed stuff
|
<D extends KittyMapper,M extends KittyModel> |
KittyMMEntryFactory.newMMEntry(java.lang.Class<D> mapperClass,
KittyTableConfiguration tableCfg)
Creates MM entry for specified mapper class and with usage of current table configuration
|
Constructor and Description |
---|
KittyMapper(KittyTableConfiguration tableConfiguration,
M blankModelInstance,
java.lang.String databasePassword) |
KittyModelCVFactory(KittyTableConfiguration tableConfiguration) |
Modifier and Type | Method and Description |
---|---|
static <T extends KittyModel> |
KittyAnnoTableConfigurationUtil.generateTableConfiguration(java.lang.Class<T> modelClass,
java.lang.String schemaName)
Returns instance of
KittyTableConfiguration from Class extends KittyModel Model
annotated with KITTY_TABLE
Returns Null if provided class not annotated with KITTY_TABLE annotation May throw KittyRuntimeException if more than one PK declaration found or no columns defined in modelClass
Also may throw KittyRuntimeException with reasons related with KittyAnnoColumnConfigurationUtil.generateAMColumnConfiguration(Field, Class, String, String) |
Modifier and Type | Field and Description |
---|---|
java.util.List<KittyTableConfiguration> |
KittyDatabaseConfiguration.tableConfigurations
List of configurations for all models defined to be used with databaseClass
|
Modifier and Type | Method and Description |
---|---|
KittyTableConfiguration |
KittyTableConfigurationBuilder.createAMTableConfiguration() |
Modifier and Type | Method and Description |
---|---|
KittyDatabaseConfigurationBuilder |
KittyDatabaseConfigurationBuilder.setRecordsConfigurations(java.util.List<KittyTableConfiguration> recordsConfigurations) |
Constructor and Description |
---|
KittyDatabaseConfiguration(java.util.List<KittyTableConfiguration> tableConfigurations,
java.lang.String schemaName,
int schemaVersion,
boolean isLoggingOn,
java.lang.String logTag,
boolean isPragmaON,
boolean isProductionOn,
boolean isGenerateRegistryFromPackage,
java.lang.String[] mmPackageNames,
java.util.Map<java.lang.Class<M>,java.lang.Class<KittyMapper>> registry,
boolean isKittyDexUtilLoggingEnabled,
boolean returnNullInsteadEmptyCollection) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<KittySQLiteQuery> |
CreateDropHelper.generateCreateIndexStatements(KittyTableConfiguration conf,
boolean skipSchemaName)
Generates CREATE statements for indexes described in provided table configuration.
|
static java.util.HashMap<java.lang.String,KittySQLiteQuery> |
CreateDropHelper.generateCreateIndexStatementsMap(KittyTableConfiguration conf,
boolean skipSchemaName)
Generates CREATE statements for indexes described in provided table configuration.
|
static KittySQLiteQuery |
CreateDropHelper.generateCreateTableStatement(java.lang.Boolean ifNotExistsFlag,
KittyTableConfiguration conf,
boolean skipSchemaName)
Generates create statement for table described in provided configuration.
|
static java.util.List<KittySQLiteQuery> |
CreateDropHelper.generateDropIndexStatements(KittyTableConfiguration conf)
Returns list of indexes drop statements associated with provided table configuration or null
if no indexes defined.
|
static KittySQLiteQuery |
CreateDropHelper.generateDropTableStatement(KittyTableConfiguration conf)
Returns SQLite drop statement for table associated with this instance of
KittyTableConfiguration |
Constructor and Description |
---|
InsertValuesStatement(KittyTableConfiguration configuration,
java.util.List<java.lang.String> exclusions) |
PrecompiledSQLiteStatement(KittyTableConfiguration configuration,
java.util.List<java.lang.String> exclusions) |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.HashMap<java.lang.String,KittyTableConfiguration> |
KittySimpleMigrationScriptGenerator.GeneratedDiffResult.tables |
Modifier and Type | Method and Description |
---|---|
java.util.LinkedList<KittySQLiteQuery> |
KittySimpleMigrationScriptGenerator.generateAlterTableWithRedundantColumns(KittyTableConfiguration conf,
KittySimpleMigrationScriptGenerator.DiffElement element)
Generates query sequence that doing following things:
Renames current existing table to new name Creates new table without redundant columns Copies fields same fields from old table to new one Wipes old table |
Modifier and Type | Method and Description |
---|---|
java.util.LinkedList<KittySQLiteQuery> |
KittySimpleMigrationScriptGenerator.generateAlterTableWithNewColumns(KittySimpleMigrationScriptGenerator.DiffElement element,
java.util.HashMap<java.lang.String,KittyTableConfiguration> newTables,
java.lang.String schemaName)
Returns alter table add columns query sequence
|
Constructor and Description |
---|
GeneratedDiffResult(java.util.ArrayList<KittySimpleMigrationScriptGenerator.DiffElement> diffs,
java.util.HashMap<java.lang.String,KittyTableConfiguration> tables,
java.util.HashMap<java.lang.String,Index> indexes) |