|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ConnectionSource | |
---|---|
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.misc | Miscellaneous classes. |
com.j256.ormlite.stmt | SQL statement generation and processing. |
com.j256.ormlite.support | Database support classes. |
com.j256.ormlite.table | Object table information. |
Uses of ConnectionSource in com.j256.ormlite.dao |
---|
Fields in com.j256.ormlite.dao declared as ConnectionSource | |
---|---|
protected ConnectionSource |
BaseDaoImpl.connectionSource
|
Methods in com.j256.ormlite.dao with parameters of type ConnectionSource | ||
---|---|---|
static
|
DaoManager.createDao(ConnectionSource connectionSource,
Class<T> clazz)
Helper method to create a DAO object without having to define a class. |
|
static
|
RuntimeExceptionDao.createDao(ConnectionSource connectionSource,
Class<T> clazz)
Call through to DaoManager.createDao(ConnectionSource, Class) with the returned DAO wrapped in a
RuntimeExceptionDao. |
|
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,
Class<T> clazz)
Helper method to lookup a DAO if it has already been associated with the class. |
|
static
|
DaoManager.lookupDao(ConnectionSource connectionSource,
DatabaseTableConfig<T> tableConfig)
Helper method to lookup a DAO if it has already been associated with the table-config. |
|
static void |
DaoManager.registerDao(ConnectionSource connectionSource,
Dao<?,?> dao)
Register the DAO with the cache. |
|
static void |
DaoManager.registerDaoWithTableConfig(ConnectionSource connectionSource,
Dao<?,?> dao)
Same as DaoManager.registerDao(ConnectionSource, Dao) but this allows you to register it just with its
DatabaseTableConfig . |
|
void |
BaseDaoImpl.setConnectionSource(ConnectionSource connectionSource)
|
|
static void |
DaoManager.unregisterDao(ConnectionSource connectionSource,
Dao<?,?> dao)
Remove a DAO from the cache. |
Constructors in com.j256.ormlite.dao with parameters of type ConnectionSource | |
---|---|
BaseDaoImpl(ConnectionSource connectionSource,
Class<T> dataClass)
Construct our base DAO class. |
|
BaseDaoImpl(ConnectionSource connectionSource,
DatabaseTableConfig<T> tableConfig)
Construct our base DAO class. |
Uses of ConnectionSource in com.j256.ormlite.db |
---|
Methods in com.j256.ormlite.db with parameters of type ConnectionSource | ||
---|---|---|
|
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 ConnectionSource in com.j256.ormlite.field |
---|
Methods in com.j256.ormlite.field with parameters of type ConnectionSource | |
---|---|
void |
FieldType.configDaoInformation(ConnectionSource connectionSource,
Class<?> parentClass)
Because we go recursive in a lot of situations if we construct DAOs inside of the FieldType constructor, we have to do this 2nd pass initialization so we can better use the DAO caches. |
static FieldType |
FieldType.createFieldType(ConnectionSource connectionSource,
String tableName,
Field field,
Class<?> parentClass)
Return An instantiated FieldType or null if the field does not have a DatabaseField annotation. |
Constructors in com.j256.ormlite.field with parameters of type ConnectionSource | |
---|---|
FieldType(ConnectionSource connectionSource,
String tableName,
Field field,
DatabaseFieldConfig fieldConfig,
Class<?> parentClass)
You should use FieldType.createFieldType(com.j256.ormlite.support.ConnectionSource, java.lang.String, java.lang.reflect.Field, java.lang.Class>) to instantiate one of these field if you have a Field . |
Uses of ConnectionSource in com.j256.ormlite.misc |
---|
Methods in com.j256.ormlite.misc with parameters of type ConnectionSource | ||
---|---|---|
static
|
TransactionManager.callInTransaction(ConnectionSource connectionSource,
Callable<T> callable)
Same as TransactionManager.callInTransaction(Callable) except as a static method with a connection source. |
|
void |
TransactionManager.setConnectionSource(ConnectionSource connectionSource)
|
Constructors in com.j256.ormlite.misc with parameters of type ConnectionSource | |
---|---|
TransactionManager(ConnectionSource connectionSource)
Constructor for direct java code wiring. |
Uses of ConnectionSource in com.j256.ormlite.stmt |
---|
Methods in com.j256.ormlite.stmt with parameters of type ConnectionSource | ||
---|---|---|
SelectIterator<T,ID> |
StatementExecutor.buildIterator(BaseDaoImpl<T,ID> classDao,
ConnectionSource connectionSource,
int resultFlags,
ObjectCache objectCache)
Create and return a SelectIterator for the class using the default mapped query for all statement. |
|
SelectIterator<T,ID> |
StatementExecutor.buildIterator(BaseDaoImpl<T,ID> classDao,
ConnectionSource connectionSource,
PreparedStmt<T> preparedStmt,
ObjectCache objectCache,
int resultFlags)
Create and return an SelectIterator for the class using a prepared statement. |
|
List<T> |
StatementExecutor.query(ConnectionSource connectionSource,
PreparedStmt<T> preparedStmt,
ObjectCache objectCache)
Return a list of all of the data in the table that matches the PreparedStmt . |
|
List<T> |
StatementExecutor.queryForAll(ConnectionSource connectionSource,
ObjectCache objectCache)
Return a list of all of the data in the table. |
|
GenericRawResults<Object[]> |
StatementExecutor.queryRaw(ConnectionSource connectionSource,
String query,
DataType[] columnTypes,
String[] arguments,
ObjectCache objectCache)
Return a results object associated with an internal iterator that returns Object[] results. |
|
|
StatementExecutor.queryRaw(ConnectionSource connectionSource,
String query,
RawRowMapper<UO> rowMapper,
String[] arguments,
ObjectCache objectCache)
Return a results object associated with an internal iterator is mapped by the user's rowMapper. |
|
GenericRawResults<String[]> |
StatementExecutor.queryRaw(ConnectionSource connectionSource,
String query,
String[] arguments,
ObjectCache objectCache)
Return a results object associated with an internal iterator that returns String[] results. |
Constructors in com.j256.ormlite.stmt with parameters of type ConnectionSource | |
---|---|
RawResultsImpl(ConnectionSource connectionSource,
DatabaseConnection connection,
String query,
Class<?> clazz,
CompiledStatement compiledStmt,
String[] columnNames,
GenericRowMapper<T> rowMapper,
ObjectCache objectCache)
|
|
SelectIterator(Class<?> dataClass,
Dao<T,ID> classDao,
GenericRowMapper<T> rowMapper,
ConnectionSource connectionSource,
DatabaseConnection connection,
CompiledStatement compiledStmt,
String statement,
ObjectCache objectCache)
If the statement parameter is null then this won't log information |
Uses of ConnectionSource in com.j256.ormlite.support |
---|
Classes in com.j256.ormlite.support that implement ConnectionSource | |
---|---|
class |
BaseConnectionSource
Connection source base class which provides the save/clear mechanism using a thread local. |
Uses of ConnectionSource in com.j256.ormlite.table |
---|
Methods in com.j256.ormlite.table with parameters of type ConnectionSource | ||
---|---|---|
static
|
TableUtils.clearTable(ConnectionSource connectionSource,
Class<T> dataClass)
Clear all data out of the table. |
|
static
|
TableUtils.clearTable(ConnectionSource connectionSource,
DatabaseTableConfig<T> tableConfig)
Clear all data out of the table. |
|
static
|
TableUtils.createTable(ConnectionSource connectionSource,
Class<T> dataClass)
Issue the database statements to create the table associated with a class. |
|
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,
Class<T> dataClass)
Create a table if it does not already exist. |
|
static
|
TableUtils.createTableIfNotExists(ConnectionSource connectionSource,
DatabaseTableConfig<T> tableConfig)
Create a table if it does not already exist. |
|
static
|
TableUtils.dropTable(ConnectionSource connectionSource,
Class<T> dataClass,
boolean ignoreErrors)
Issue the database statements to drop the table associated with a class. |
|
static
|
TableUtils.dropTable(ConnectionSource connectionSource,
DatabaseTableConfig<T> tableConfig,
boolean ignoreErrors)
Issue the database statements to drop the table associated with a table configuration. |
|
void |
DatabaseTableConfig.extractFieldTypes(ConnectionSource connectionSource)
Extract the field types from the fieldConfigs if they have not already been configured. |
|
static
|
DatabaseTableConfig.fromClass(ConnectionSource connectionSource,
Class<T> clazz)
Extract the DatabaseTableConfig for a particular class by looking for class and field annotations. |
|
static
|
TableUtils.getCreateTableStatements(ConnectionSource connectionSource,
Class<T> dataClass)
Return an ordered collection of SQL statements that need to be run to create a table. |
|
static
|
TableUtils.getCreateTableStatements(ConnectionSource connectionSource,
DatabaseTableConfig<T> tableConfig)
Return an ordered collection of SQL statements that need to be run to create a table. |
Constructors in com.j256.ormlite.table with parameters of type ConnectionSource | |
---|---|
TableInfo(ConnectionSource connectionSource,
Dao<T,ID> dao,
Class<T> dataClass)
Creates a holder of information about a table/class. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |