|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use DatabaseTableConfig | |
---|---|
com.j256.ormlite.dao | Database Access Object classes. |
com.j256.ormlite.db | Per-database type and SQL information. |
com.j256.ormlite.field | Object field information. |
com.j256.ormlite.table | Object table information. |
Uses of DatabaseTableConfig in com.j256.ormlite.dao |
---|
Fields in com.j256.ormlite.dao declared as DatabaseTableConfig | |
---|---|
protected DatabaseTableConfig<T> |
BaseDaoImpl.tableConfig
|
Methods in com.j256.ormlite.dao that return DatabaseTableConfig | |
---|---|
DatabaseTableConfig<T> |
BaseDaoImpl.getTableConfig()
Returns the table configuration information associated with the Dao's class or null if none. |
Methods in com.j256.ormlite.dao with parameters of type DatabaseTableConfig | ||
---|---|---|
static
|
DaoManager.createDao(ConnectionSource connectionSource,
DatabaseTableConfig<T> tableConfig)
Helper method to create a Dao object without having to define a class. |
|
static
|
RuntimeExceptionDao.createDao(ConnectionSource connectionSource,
DatabaseTableConfig<T> tableConfig)
Call through to DaoManager.createDao(ConnectionSource, DatabaseTableConfig) with the returned DAO wrapped
in a RuntimeExceptionDao. |
|
static
|
DaoManager.lookupDao(ConnectionSource connectionSource,
DatabaseTableConfig<T> tableConfig)
Helper method to lookup a Dao if it has already been associated with the table-config. |
|
void |
BaseDaoImpl.setTableConfig(DatabaseTableConfig<T> tableConfig)
Used if you want to configure the class for the Dao by hand or with spring instead of using the DatabaseField annotation in the class. |
Method parameters in com.j256.ormlite.dao with type arguments of type DatabaseTableConfig | |
---|---|
static void |
DaoManager.addCachedDatabaseConfigs(Collection<DatabaseTableConfig<?>> configs)
This adds database table configurations to the internal cache which can be used to speed up DAO construction. |
Constructors in com.j256.ormlite.dao with parameters of type DatabaseTableConfig | |
---|---|
BaseDaoImpl(ConnectionSource connectionSource,
DatabaseTableConfig<T> tableConfig)
Construct our base DAO class. |
Uses of DatabaseTableConfig in com.j256.ormlite.db |
---|
Methods in com.j256.ormlite.db that return DatabaseTableConfig | ||
---|---|---|
|
DatabaseType.extractDatabaseTableConfig(ConnectionSource connectionSource,
Class<T> clazz)
Extract and return a custom database configuration for this class. |
|
|
BaseDatabaseType.extractDatabaseTableConfig(ConnectionSource connectionSource,
Class<T> clazz)
|
Uses of DatabaseTableConfig in com.j256.ormlite.field |
---|
Methods in com.j256.ormlite.field that return DatabaseTableConfig | |
---|---|
DatabaseTableConfig<?> |
DatabaseFieldConfig.getForeignTableConfig()
For a foreign class which does not use the DatabaseField annotations, you need to inject the table
configuration. |
Methods in com.j256.ormlite.field with parameters of type DatabaseTableConfig | |
---|---|
void |
DatabaseFieldConfig.setForeignTableConfig(DatabaseTableConfig<?> foreignTableConfig)
|
Constructors in com.j256.ormlite.field with parameters of type DatabaseTableConfig | |
---|---|
DatabaseFieldConfig(String fieldName,
String columnName,
DataPersister dataPersister,
String defaultValue,
int width,
boolean canBeNull,
boolean id,
boolean generatedId,
String generatedIdSequence,
boolean foreign,
DatabaseTableConfig<?> foreignTableConfig,
boolean useGetSet,
Enum<?> unknownEnumValue,
boolean throwIfNull,
String format,
boolean unique,
String indexName,
String uniqueIndexName,
boolean autoRefresh,
int maxForeignAutoRefreshLevel,
int maxForeignCollectionLevel)
|
|
DatabaseFieldConfig(String fieldName,
String columnName,
DataType dataType,
String defaultValue,
int width,
boolean canBeNull,
boolean id,
boolean generatedId,
String generatedIdSequence,
boolean foreign,
DatabaseTableConfig<?> foreignTableConfig,
boolean useGetSet,
Enum<?> unknownEnumValue,
boolean throwIfNull,
String format,
boolean unique,
String indexName,
String uniqueIndexName,
boolean autoRefresh,
int maxForeignAutoRefreshLevel,
int maxForeignCollectionLevel)
|
Uses of DatabaseTableConfig in com.j256.ormlite.table |
---|
Methods in com.j256.ormlite.table that return DatabaseTableConfig | ||
---|---|---|
static
|
DatabaseTableConfig.fromClass(ConnectionSource connectionSource,
Class<T> clazz)
Extract the DatabaseTableConfig for a particular class by looking for class and field annotations. |
|
static
|
DatabaseTableConfigLoader.fromReader(BufferedReader reader)
Load a table configuration in from a text-file reader. |
Methods in com.j256.ormlite.table that return types with arguments of type DatabaseTableConfig | |
---|---|
static List<DatabaseTableConfig<?>> |
DatabaseTableConfigLoader.loadDatabaseConfigFromReader(BufferedReader reader)
Load in a number of database configuration entries from a buffered reader. |
Methods in com.j256.ormlite.table with parameters of type DatabaseTableConfig | ||
---|---|---|
static
|
TableUtils.clearTable(ConnectionSource connectionSource,
DatabaseTableConfig<T> tableConfig)
Clear all data out of the table. |
|
static
|
TableUtils.createTable(ConnectionSource connectionSource,
DatabaseTableConfig<T> tableConfig)
Issue the database statements to create the table associated with a table configuration. |
|
static
|
TableUtils.createTableIfNotExists(ConnectionSource connectionSource,
DatabaseTableConfig<T> tableConfig)
Create a table if it does not already exist. |
|
static
|
TableUtils.dropTable(ConnectionSource connectionSource,
DatabaseTableConfig<T> tableConfig,
boolean ignoreErrors)
Issue the database statements to drop the table associated with a table configuration. |
|
static
|
TableUtils.getCreateTableStatements(ConnectionSource connectionSource,
DatabaseTableConfig<T> tableConfig)
Return an ordered collection of SQL statements that need to be run to create a table. |
|
static
|
DatabaseTableConfigLoader.write(BufferedWriter writer,
DatabaseTableConfig<T> config)
Write the table configuration to a buffered writer. |
Constructors in com.j256.ormlite.table with parameters of type DatabaseTableConfig | |
---|---|
TableInfo(DatabaseType databaseType,
Dao<T,ID> dao,
DatabaseTableConfig<T> tableConfig)
Creates a holder of information about a table/class. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |