Uses of Interface
com.j256.ormlite.support.ConnectionSource

Packages that use ConnectionSource
com.j256.ormlite.dao Database Access Object classes. 
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
<D extends Dao<T,?>,T>
D
DaoManager.createDao(ConnectionSource connectionSource, Class<T> clazz)
          Helper method to create a Dao object without having to define a class.
static
<T,ID> Dao<T,ID>
BaseDaoImpl.createDao(ConnectionSource connectionSource, Class<T> clazz)
          Deprecated. You should be using the DaoManager.createDao(ConnectionSource, Class)
static
<D extends Dao<T,?>,T>
D
DaoManager.createDao(ConnectionSource connectionSource, DatabaseTableConfig<T> tableConfig)
          Helper method to create a Dao object without having to define a class.
static
<T,ID> Dao<T,ID>
BaseDaoImpl.createDao(ConnectionSource connectionSource, DatabaseTableConfig<T> tableConfig)
          Deprecated. You should be using the DaoManager.createDao(ConnectionSource, DatabaseTableConfig)
static void DaoManager.registerDao(ConnectionSource connectionSource, Dao<?,?> dao)
          Register the dao with the cache inside of this class.
 void BaseDaoImpl.setConnectionSource(ConnectionSource connectionSource)
           
 

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.field
 

Methods in com.j256.ormlite.field with parameters of type ConnectionSource
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
<T> T
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)
          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)
          Create and return an SelectIterator for the class using a prepared statement.
 RawResults StatementExecutor.buildOldIterator(ConnectionSource connectionSource, String query)
          Return on old RawResults object associated with an internal iterator that matches the query argument.
 int StatementExecutor.executeRaw(ConnectionSource connectionSource, String statement, String[] arguments)
          Return true if it worked else false.
 List<T> StatementExecutor.query(ConnectionSource connectionSource, PreparedStmt<T> preparedStmt)
          Return a list of all of the data in the table that matches the PreparedStmt.
 List<T> StatementExecutor.queryForAll(ConnectionSource connectionSource)
          Return a list of all of the data in the table.
 RawResults StatementExecutor.queryForAllRawOld(ConnectionSource connectionSource, String query)
          Return a list of all of the data in the table that matches the PreparedStmt.
 GenericRawResults<Object[]> StatementExecutor.queryRaw(ConnectionSource connectionSource, String query, DataType[] columnTypes, String[] arguments)
          Return a results object associated with an internal iterator that returns Object[] results.
<UO> GenericRawResults<UO>
StatementExecutor.queryRaw(ConnectionSource connectionSource, String query, RawRowMapper<UO> rowMapper, String[] arguments)
          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)
          Return a results object associated with an internal iterator that returns String[] results.
 int StatementExecutor.updateRaw(ConnectionSource connectionSource, String statement, String[] arguments)
          Return the number of rows affected.
 

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)
           
SelectIterator(Class<?> dataClass, Dao<T,ID> classDao, GenericRowMapper<T> rowMapper, ConnectionSource connectionSource, DatabaseConnection connection, CompiledStatement compiledStmt, String statement)
          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
<T> int
TableUtils.clearTable(ConnectionSource connectionSource, Class<T> dataClass)
          Clear all data out of the table.
static
<T> int
TableUtils.clearTable(ConnectionSource connectionSource, DatabaseTableConfig<T> tableConfig)
          Clear all data out of the table.
static
<T> int
TableUtils.createTable(ConnectionSource connectionSource, Class<T> dataClass)
          Issue the database statements to create the table associated with a class.
static
<T> int
TableUtils.createTable(ConnectionSource connectionSource, DatabaseTableConfig<T> tableConfig)
          Issue the database statements to create the table associated with a table configuration.
static
<T> int
TableUtils.createTableIfNotExists(ConnectionSource connectionSource, Class<T> dataClass)
          Create a table if it does not already exist.
static
<T> int
TableUtils.createTableIfNotExists(ConnectionSource connectionSource, DatabaseTableConfig<T> tableConfig)
          Create a table if it does not already exist.
static
<T,ID> int
TableUtils.dropTable(ConnectionSource connectionSource, Class<T> dataClass, boolean ignoreErrors)
          Issue the database statements to drop the table associated with a class.
static
<T,ID> int
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
<T> FieldType
DatabaseTableConfig.extractIdFieldType(ConnectionSource connectionSource, Class<T> clazz, String tableName)
          Find and return the field-type of the id field in this class.
static
<T> DatabaseTableConfig<T>
DatabaseTableConfig.fromClass(ConnectionSource connectionSource, Class<T> clazz)
          Extract the DatabaseTableConfig for a particular class by looking for class and field annotations.
static
<T,ID> List<String>
TableUtils.getCreateTableStatements(ConnectionSource connectionSource, Class<T> dataClass)
          Return an ordered collection of SQL statements that need to be run to create a table.
static
<T,ID> List<String>
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.
 



Copyright © 2011. All Rights Reserved.