public class KittyDatabaseConfiguration<M extends KittyModel>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
isGenerateRegistryFromPackage
Flag, when true and there is no predefined registry in databaseClass class, registry would be automatically created from
application's model classes located in defined packages
If false and no registry exists than registry would be automatically created from all application's model classes If registry is defined manually in databaseClass class than this flag would be ignored |
boolean |
isKittyDexUtilLoggingEnabled |
boolean |
isLoggingOn
Logging flag
|
boolean |
isPragmaON
Pragma on (foreign keys support) flag
|
boolean |
isProductionOn
Production on (usage of predefined SQL dumps for creating\\upgrading\\dropping tables in databaseClass) flag
|
java.lang.String |
logTag
Logging tag
|
java.lang.String[] |
mmPackageNames
Package names where model classes are located
|
java.util.Map<java.lang.Class<M>,java.lang.Class<KittyMapper>> |
registry
Registry of model-mapper classes for this databaseClass
|
boolean |
returnNullInsteadEmptyCollection
Defines what KittyMapper would return on fetch methods (findWhere/findAll etc) when
SELECT statement returns no rows.
|
java.lang.String |
schemaName
Database name
|
int |
schemaVersion
Current databaseClass version
|
java.util.List<KittyTableConfiguration> |
tableConfigurations
List of configurations for all models defined to be used with databaseClass
|
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 |
---|---|
java.lang.String |
toString() |
public final java.util.Map<java.lang.Class<M extends KittyModel>,java.lang.Class<KittyMapper>> registry
public final java.util.List<KittyTableConfiguration> tableConfigurations
public final java.lang.String schemaName
public final int schemaVersion
public final boolean isLoggingOn
public final java.lang.String logTag
public final boolean isPragmaON
public final boolean isKittyDexUtilLoggingEnabled
public final boolean isProductionOn
public final boolean isGenerateRegistryFromPackage
public final boolean returnNullInsteadEmptyCollection
public final java.lang.String[] mmPackageNames
public 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)