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

Packages that use DatabaseConnection
com.j256.ormlite.misc Miscellaneous classes. 
com.j256.ormlite.stmt SQL statement generation and processing. 
com.j256.ormlite.stmt.mapped Compiled SQL query statements. 
com.j256.ormlite.support Database support classes. 
 

Uses of DatabaseConnection in com.j256.ormlite.misc
 

Methods in com.j256.ormlite.misc with parameters of type DatabaseConnection
static
<T> T
TransactionManager.callInTransaction(DatabaseConnection connection, boolean saved, DatabaseType databaseType, Callable<T> callable)
          Same as TransactionManager.callInTransaction(Callable) except as a static method on a connection.
static
<T> T
TransactionManager.callInTransaction(DatabaseConnection connection, DatabaseType databaseType, Callable<T> callable)
          Same as TransactionManager.callInTransaction(Callable) except as a static method on a connection.
 

Uses of DatabaseConnection in com.j256.ormlite.stmt
 

Methods in com.j256.ormlite.stmt with parameters of type DatabaseConnection
<CT> CT
StatementExecutor.callBatchTasks(DatabaseConnection connection, boolean saved, Callable<CT> callable)
          Call batch tasks insude of a connection which may, or may not, have been "saved".
 CompiledStatement PreparedStmt.compile(DatabaseConnection databaseConnection)
          Create and return the associated compiled statement.
 int StatementExecutor.create(DatabaseConnection databaseConnection, T data)
          Create a new entry in the database from an object.
 int StatementExecutor.delete(DatabaseConnection databaseConnection, PreparedDelete<T> preparedDelete)
          Delete rows that match the prepared statement.
 int StatementExecutor.delete(DatabaseConnection databaseConnection, T data)
          Delete an object from the database.
 int StatementExecutor.deleteIds(DatabaseConnection databaseConnection, Collection<ID> ids)
          Delete a collection of objects from the database.
 int StatementExecutor.deleteObjects(DatabaseConnection databaseConnection, Collection<T> datas)
          Delete a collection of objects from the database.
 long StatementExecutor.queryForCountStar(DatabaseConnection databaseConnection)
          Return a long value which is the number of rows in the table.
 T StatementExecutor.queryForFirst(DatabaseConnection databaseConnection, PreparedStmt<T> preparedStmt)
          Return the first object that matches the PreparedStmt or null if none.
 T StatementExecutor.queryForId(DatabaseConnection databaseConnection, ID id)
          Return the object associated with the id or null if none.
 int StatementExecutor.refresh(DatabaseConnection databaseConnection, T data)
          Does a query for the object's Id and copies in each of the field values from the database to refresh the data parameter.
 int StatementExecutor.update(DatabaseConnection databaseConnection, PreparedUpdate<T> preparedUpdate)
          Update rows in the database.
 int StatementExecutor.update(DatabaseConnection databaseConnection, T data)
          Update an object in the database.
 int StatementExecutor.updateId(DatabaseConnection databaseConnection, T data, ID newId)
          Update an object in the database to change its id to the newId parameter.
 

Constructors in com.j256.ormlite.stmt with parameters of type DatabaseConnection
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 DatabaseConnection in com.j256.ormlite.stmt.mapped
 

Methods in com.j256.ormlite.stmt.mapped with parameters of type DatabaseConnection
 CompiledStatement MappedPreparedStmt.compile(DatabaseConnection databaseConnection)
           
 int BaseMappedStatement.delete(DatabaseConnection databaseConnection, T data)
          Delete the object from the database.
static
<T,ID> int
MappedDeleteCollection.deleteIds(DatabaseType databaseType, TableInfo<T,ID> tableInfo, DatabaseConnection databaseConnection, Collection<ID> ids)
          Delete all of the objects in the collection.
static
<T,ID> int
MappedDeleteCollection.deleteObjects(DatabaseType databaseType, TableInfo<T,ID> tableInfo, DatabaseConnection databaseConnection, Collection<T> datas)
          Delete all of the objects in the collection.
 T MappedQueryForId.execute(DatabaseConnection databaseConnection, ID id)
          Query for an object in the database which matches the id argument.
 int MappedUpdateId.execute(DatabaseConnection databaseConnection, T data, ID newId)
          Update the id field of the object in the database.
 int MappedRefresh.executeRefresh(DatabaseConnection databaseConnection, T data)
          Execute our refresh query statement and then update all of the fields in data with the fields from the result.
 int MappedCreate.insert(DatabaseConnection databaseConnection, T data)
          Create an object in the database.
protected  int BaseMappedStatement.insert(DatabaseConnection databaseConnection, T data)
          Insert the object into the database
 int BaseMappedStatement.update(DatabaseConnection databaseConnection, T data)
          Update the object in the database.
 

Uses of DatabaseConnection in com.j256.ormlite.support
 

Methods in com.j256.ormlite.support that return DatabaseConnection
 DatabaseConnection ConnectionSource.getReadOnlyConnection()
          Return a database connection suitable for read-only operations.
 DatabaseConnection ConnectionSource.getReadWriteConnection()
          Return a database connection suitable for read or write operations.
protected  DatabaseConnection BaseConnectionSource.getSavedConnection()
          Returns the connection that has been saved or null if none.
protected  DatabaseConnection BaseConnectionSource.getSpecial()
          Get the currently saved.
 DatabaseConnection ConnectionSource.getSpecialConnection()
          Return the currently saved connection or null if none.
 DatabaseConnection BaseConnectionSource.getSpecialConnection()
           
 

Methods in com.j256.ormlite.support with parameters of type DatabaseConnection
protected  boolean BaseConnectionSource.clearSpecial(DatabaseConnection connection, Logger logger)
          Clear the connection that was previously saved.
 void ConnectionSource.clearSpecialConnection(DatabaseConnection connection)
          Clear the saved connection.
protected  boolean BaseConnectionSource.isSavedConnection(DatabaseConnection connection)
          Return true if the connection being released is the one that has been saved.
 void ConnectionSource.releaseConnection(DatabaseConnection connection)
          Release a database connection previously returned by ConnectionSource.getReadOnlyConnection() or ConnectionSource.getReadWriteConnection().
protected  boolean BaseConnectionSource.saveSpecial(DatabaseConnection connection)
          Save this connection as our special connection to be returned by the BaseConnectionSource.getSavedConnection() method.
 boolean ConnectionSource.saveSpecialConnection(DatabaseConnection connection)
          Save this connection and return it for all calls to ConnectionSource.getReadOnlyConnection() and ConnectionSource.getReadWriteConnection() unless the ConnectionSource.clearSpecialConnection(DatabaseConnection) method is called, all This is used by the transaction mechanism since since all operations within a transaction must operate on the same connection.
 



Copyright © 2011. All Rights Reserved.