Package | Description |
---|---|
net.akaish.kitty.orm | |
net.akaish.kitty.orm.configuration | |
net.akaish.kitty.orm.configuration.adc | |
net.akaish.kitty.orm.configuration.conf |
Modifier and Type | Class and Description |
---|---|
class |
KittyMMEntry<M extends KittyModel,D extends KittyMapper>
Created by akaish on 14.11.17.
|
Modifier and Type | Field and Description |
---|---|
(package private) D |
KittyMMEntry.mapper |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.Class<M>,java.lang.Class<KittyMapper>> |
KittyDatabase.registry
Map of Models\Mappers classes to be used with this instance of KittyDatabase
May be generated automatically or set manually for faster initialization by implementing
KittyDatabase.getStaticModelMapperInstancesStorage() |
Modifier and Type | Method and Description |
---|---|
<D extends KittyMapper> |
KittyMapper.clone(java.lang.Class<D> recordClass)
Cloning implementation with generic
|
<D extends KittyMapper,M extends KittyModel> |
KittyDatabase.getMapper(java.lang.Class<M> recordClass) |
(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
|
Modifier and Type | Method and Description |
---|---|
KittyMapper |
KittyMapper.clone()
Cloning implementation
|
<H extends KittyDatabaseHelper> |
KittyMapper.setDatabaseHelper(H helper) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.Class<M>,java.lang.Class<KittyMapper>> |
KittyDatabase.getStaticRegistry()
Method used for getting static registry of mappers.
|
Modifier and Type | Method and Description |
---|---|
protected <M extends KittyModel> |
KittyDatabase.generateMMInstanceStorageFromRegistry(java.util.Map<java.lang.Class<M>,java.lang.Class<KittyMapper>> registry,
KittyMMEntryFactory entryFactory,
KittyDatabaseConfiguration databaseConfiguration) |
protected KittyConfigurator |
KittyDatabase.getConfigurator(android.content.Context ctx,
java.util.Map<java.lang.Class<M>,java.lang.Class<KittyMapper>> registry)
Returns KittyConfigurator to be used with this database
By default would be created
KittyConfiguratorADC , however
you can implement any configuration storage you want. |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.Class<M>,java.lang.Class<KittyMapper>> |
KittyConfigurator.registry |
Constructor and Description |
---|
KittyConfigurator(android.content.Context context,
java.util.Map<java.lang.Class<M>,java.lang.Class<KittyMapper>> registry) |
Modifier and Type | Method and Description |
---|---|
static <T extends KittyDatabase,M extends KittyModel> |
KittyAnnoDatabaseConfigurationUtil.generateDatabaseConfiguration(java.lang.Class<T> database,
android.content.Context ctx,
java.util.Map<java.lang.Class<M>,java.lang.Class<KittyMapper>> registry) |
Constructor and Description |
---|
KittyConfiguratorADC(android.content.Context context,
java.util.Map<java.lang.Class<M>,java.lang.Class<KittyMapper>> registry,
java.lang.Class<DB> kittyDatabase) |
Modifier and Type | Field and Description |
---|---|
java.util.Map<java.lang.Class<M>,java.lang.Class<KittyMapper>> |
KittyDatabaseConfiguration.registry
Registry of model-mapper classes for this databaseClass
|
Modifier and Type | Method and Description |
---|---|
KittyDatabaseConfigurationBuilder |
KittyDatabaseConfigurationBuilder.setRegistry(java.util.Map<java.lang.Class<M>,java.lang.Class<KittyMapper>> registry) |
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) |