Package | Description |
---|---|
org.apache.torque |
Torque is an object-relational mapper for Java.
|
org.apache.torque.adapter |
Adapters between Torque and various databases.
|
org.apache.torque.avalon |
Avalon component
implementation.
|
org.apache.torque.dsfactory |
Torque's API for creation of various javax.sql.DataSource
implementations.
|
org.apache.torque.manager |
A manager/factory API for use with Torque-generated data beans.
|
org.apache.torque.map |
Description of the schema layout.
|
org.apache.torque.oid |
The ID broker, an API to provide persistent
object identifiers,
as described by Scott Ambler's paper on "Enterprise-Ready Object
IDs".
|
org.apache.torque.om |
API for the classic Torque-generated object model.
|
org.apache.torque.om.mapper |
Contains the Mapper interface which defines how to map from
a ResultSet to an object, and simple implementations of this interface.
|
org.apache.torque.sql |
This package contains classes which are mainly used in the SQL generation
process.
|
org.apache.torque.sql.objectbuilder |
This package contains classes which can build
PreparedStatementParts from a single value or column.
|
org.apache.torque.sql.whereclausebuilder |
This package contains classes which can build
PreparedStatementParts from a WhereClauseExpression.
|
org.apache.torque.util |
Misc.
|
Modifier and Type | Class and Description |
---|---|
class |
ConstraintViolationException
This exception is thrown if a database operation violates a
database constraint, e.g.
|
class |
DeadlockException
This exception is thrown if the database detects a deadlock.
|
class |
NoRowsException
This exception indicates that no rows were returned but at least one should
have been returned.
|
class |
OptimisticLockingFailedException
This exception is thrown if the database detects that a row in a table
with optimistic locking was updated by another process.
|
class |
TooManyRowsException
This exception indicates that more rows were returned than expected.
|
Modifier and Type | Method and Description |
---|---|
static Adapter |
Torque.getAdapter(String name)
Returns the database adapter for a specific database name.
|
Adapter |
TorqueInstance.getAdapter(String name)
Returns the database adapter for a specific database.
|
static Connection |
Torque.getConnection()
This method returns a Connection from the default pool.
|
Connection |
TorqueInstance.getConnection()
This method returns a Connection from the default pool.
|
static Connection |
Torque.getConnection(String name)
This method returns a Connecton using the given database name.
|
Connection |
TorqueInstance.getConnection(String name)
Returns a database connection to the database with the key
name . |
static Connection |
Torque.getConnection(String name,
String username,
String password)
This method returns a Connecton using the given parameters.
|
Connection |
TorqueInstance.getConnection(String name,
String username,
String password)
This method returns a Connection using the given parameters.
|
static Database |
Torque.getDatabase(String name)
Returns the database for the given key.
|
Database |
TorqueInstance.getDatabase(String databaseName)
Returns the database for the key
databaseName . |
static DatabaseMap |
Torque.getDatabaseMap()
Returns the default database map information.
|
DatabaseMap |
TorqueInstance.getDatabaseMap()
Returns the database map information for the default db.
|
static DatabaseMap |
Torque.getDatabaseMap(String name)
Returns the database map information for a given database.
|
DatabaseMap |
TorqueInstance.getDatabaseMap(String name)
Returns the database map information for the given database name.
|
static Map<String,Database> |
Torque.getDatabases()
Returns a Map containing all Databases registered to Torque.
|
Map<String,Database> |
TorqueInstance.getDatabases()
Returns a Map containing all Databases registered to Torque.
|
DataSourceFactory |
TorqueInstance.getDataSourceFactory(String name)
Returns the DataSourceFactory for the database with the name
name . |
static String |
Torque.getSchema(String name)
This method returns the current schema for a database connection
|
String |
TorqueInstance.getSchema(String name)
This method returns the current schema for a database connection
|
static void |
Torque.init(org.apache.commons.configuration2.Configuration conf)
Initialization of Torque with a configuration.
|
void |
TorqueInstance.init(org.apache.commons.configuration2.Configuration conf)
Initialization of Torque with a Configuration object.
|
static void |
Torque.init(String configFile)
Initialization of Torque with a path to a properties file.
|
void |
TorqueInstance.init(String configFile)
Initialization of Torque with a path to a properties or xml file.
|
protected void |
TorqueInstance.initManagerMappings(org.apache.commons.configuration2.Configuration conf)
Creates a mapping between classes and their manager classes.
|
static void |
Torque.setConfiguration(org.apache.commons.configuration2.Configuration conf)
Sets the configuration for Torque and all dependencies.
|
void |
TorqueInstance.setConfiguration(org.apache.commons.configuration2.Configuration conf)
Sets the configuration for Torque and all dependencies.
|
static void |
Torque.shutdown()
Shuts down the service.
|
void |
TorqueInstance.shutdown()
Shuts down Torque.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractAdapter.generateLimits(Query query,
long offset,
int limit)
This method is used to generate the database specific query
extension to limit the number of record returned.
|
void |
Adapter.generateLimits(Query query,
long offset,
int limit)
This method is used to generate the database specific query
extension to limit the number of record returned.
|
void |
MssqlAdapter.generateLimits(Query query,
long offset,
int limit)
Modify a query to add limit and offset values for MSSQL.
|
Modifier and Type | Method and Description |
---|---|
Adapter |
Torque.getAdapter(String name)
Returns database adapter for a specific connection pool.
|
Connection |
Torque.getConnection()
This method returns a Connection from the default pool.
|
Connection |
Torque.getConnection(String name) |
Connection |
Torque.getConnection(String name,
String username,
String password)
This method returns a Connecton using the given parameters.
|
Database |
Torque.getDatabase(String databaseName)
Returns the database for the key
databaseName . |
DatabaseMap |
Torque.getDatabaseMap()
Returns the default database map information.
|
DatabaseMap |
Torque.getDatabaseMap(String name)
Returns the database map information.
|
Map<String,Database> |
Torque.getDatabases()
Returns a Map containing all Databases registered to Torque.
|
String |
Torque.getSchema(String name)
This method returns the current schema for a database connection
|
void |
Torque.setSchema(String name,
String schema)
Sets the current schema for a database connection
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractDataSourceFactory.applyConfiguration(org.apache.commons.configuration2.Configuration c,
Object o)
Iterate over a Configuration subset and apply all
properties to a passed object which must contain Bean
setter and getter
|
void |
DataSourceFactory.close()
A hook which is called when the resources of the associated DataSource
can be released.
|
void |
PerUserPool2DataSourceFactory.close()
Closes the pool associated with this factory and releases it.
|
void |
PerUserPoolDataSourceFactory.close()
Deprecated.
Closes the pool associated with this factory and releases it.
|
void |
SharedPool2DataSourceFactory.close()
Closes the pool associated with this factory and releases it.
|
void |
SharedPoolDataSourceFactory.close()
Deprecated.
Closes the pool associated with this factory and releases it.
|
abstract DataSource |
AbstractDataSourceFactory.getDataSource() |
DataSource |
DataSourceFactory.getDataSource() |
DataSource |
JndiDataSourceFactory.getDataSource() |
protected void |
AbstractDataSourceFactory.initCPDS(org.apache.commons.configuration2.Configuration configuration,
ConnectionPoolDataSource cpds)
Initializes the ConnectionPoolDataSource.
|
abstract void |
AbstractDataSourceFactory.initialize(org.apache.commons.configuration2.Configuration configuration)
Initialize the factory.
|
void |
DataSourceFactory.initialize(org.apache.commons.configuration2.Configuration configuration)
Initialize the factory.
|
void |
JndiDataSourceFactory.initialize(org.apache.commons.configuration2.Configuration configuration) |
void |
PerUserPool2DataSourceFactory.initialize(org.apache.commons.configuration2.Configuration configuration) |
void |
PerUserPoolDataSourceFactory.initialize(org.apache.commons.configuration2.Configuration configuration)
Deprecated.
|
void |
SharedPool2DataSourceFactory.initialize(org.apache.commons.configuration2.Configuration configuration) |
void |
SharedPoolDataSourceFactory.initialize(org.apache.commons.configuration2.Configuration configuration)
Deprecated.
|
protected void |
AbstractDataSourceFactory.initJdbc2Pool(DataSource dataSource,
org.apache.commons.configuration2.Configuration configuration)
Initializes the Jdbc2PoolDataSource.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractBaseManager.clearImpl()
Clears the cache
|
protected T |
AbstractBaseManager.getOMInstance()
Get a fresh instance of an om
|
protected T |
AbstractBaseManager.getOMInstance(ObjectKey<?> id)
Return an instance of an om based on the id
|
protected T |
AbstractBaseManager.getOMInstance(ObjectKey<?> key,
boolean fromCache)
Return an instance of an om based on the id
|
protected List<T> |
AbstractBaseManager.getOMs(List<? extends ObjectKey<?>> ids)
Gets a list of om's based on id's.
|
protected List<T> |
AbstractBaseManager.getOMs(List<? extends ObjectKey<?>> ids,
boolean fromCache)
Gets a list of om's based on id's.
|
protected List<T> |
AbstractBaseManager.getOMs(ObjectKey<?>... ids)
Gets a list of om's based on id's.
|
protected Object |
MethodResultCache.putImpl(MethodCacheKey key,
Object value) |
protected Object |
NoOpMethodResultCache.putImpl(MethodCacheKey key,
Object value) |
protected T |
AbstractBaseManager.putInstanceImpl(ObjectKey<?> key,
T om)
Put an object into the cache
|
protected T |
AbstractBaseManager.putInstanceImpl(T om)
Put an object into the cache
|
protected T |
AbstractBaseManager.removeInstanceImpl(ObjectKey<?> key)
Remove an object from the cache
|
protected abstract T |
AbstractBaseManager.retrieveStoredOM(ObjectKey<?> id)
Retrieve an object from persistent storage
|
protected abstract List<T> |
AbstractBaseManager.retrieveStoredOMs(List<? extends ObjectKey<?>> ids)
Gets a list of om's based on id's.
|
void |
AbstractBaseManager.setClassName(String v)
Set the classname to instantiate for getInstance()
|
void |
AbstractBaseManager.setRegion(String v)
Set the cache region used for JCS.
|
Modifier and Type | Method and Description |
---|---|
static ColumnMap |
MapHelper.getColumnMap(Column column,
Criteria criteria)
Returns the column map for a column.
|
ColumnMap |
TableMap.getPrimaryKey()
Returns the single primary key of this table, if it exists
|
static TableMap |
MapHelper.getTableMap(Object possibleColumn,
Criteria criteria,
TableMap defaultTableMap)
Returns the table map for a table name.
|
void |
DatabaseMap.initialize()
Fully populate this DatabaseMap with all the TablesMaps.
|
Modifier and Type | Method and Description |
---|---|
protected <T> T |
AbstractIdGenerator.getId(Connection connection,
Object keyInfo,
RecordMapper<T> mapper)
Returns the last ID used by this connection.
|
BigDecimal |
AbstractIdGenerator.getIdAsBigDecimal(Connection connection,
Object keyInfo)
Returns the last ID used by this connection.
|
BigDecimal |
IDBroker.getIdAsBigDecimal(Connection connection,
Object tableName)
Returns an id as a BigDecimal.
|
BigDecimal |
IdGenerator.getIdAsBigDecimal(Connection connection,
Object keyInfo)
Returns an id as a BigDecimal.
|
int |
AbstractIdGenerator.getIdAsInt(Connection connection,
Object keyInfo)
Returns the last ID used by this connection.
|
int |
IDBroker.getIdAsInt(Connection connection,
Object tableName) |
int |
IdGenerator.getIdAsInt(Connection connection,
Object keyInfo)
Returns an id as a primitive int.
|
long |
AbstractIdGenerator.getIdAsLong(Connection connection,
Object keyInfo)
Returns the last ID used by this connection.
|
long |
IDBroker.getIdAsLong(Connection connection,
Object tableName) |
long |
IdGenerator.getIdAsLong(Connection connection,
Object keyInfo)
Returns an id as a primitive long.
|
String |
AbstractIdGenerator.getIdAsString(Connection connection,
Object keyInfo)
Returns the last ID used by this connection.
|
String |
IDBroker.getIdAsString(Connection connection,
Object tableName)
Returns an id as a String.
|
String |
IdGenerator.getIdAsString(Connection connection,
Object keyInfo)
Returns an id as a String.
|
String |
AbstractIdGenerator.getIdSql(Object keyInfo)
Returns the SQL to retrieve the next id.
|
BigDecimal[] |
IDBroker.getNextIds(String tableName,
int numOfIdsToReturn,
Connection connection)
This method returns x number of ids for the given table.
|
protected void |
IDBroker.updateQuantity(Connection con,
String tableName,
BigDecimal quantity)
Helper method to update a row in the ID_TABLE.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ColumnAccessByName.setByName(String name,
Object value)
Set a field in the object by field (Java) name.
|
boolean |
ColumnAccessByName.setByPeerName(String name,
Object value)
Set field values by Peer Field Name-
|
boolean |
ColumnAccessByName.setByPosition(int position,
Object value)
Set field values by it's position (zero based) in the XML schema.
|
void |
ObjectModel.setPrimaryKey(ObjectKey<?> primaryKey)
Sets the PrimaryKey for the object.
|
void |
ObjectModel.setPrimaryKey(String primaryKey)
Sets the PrimaryKey for the object.
|
Modifier and Type | Method and Description |
---|---|
BigDecimal |
BigDecimalMapper.processRow(ResultSet resultSet,
int rowOffset,
Criteria criteria)
Maps the current row in the result to a BigDecimal.
|
List<Object> |
CompositeMapper.processRow(ResultSet resultSet,
int offset,
Criteria criteria)
Maps the current row in the result Set by applying all known mappers
and putting the result of each mapper in the result list.
|
Date |
DateMapper.processRow(ResultSet resultSet,
int rowOffset,
Criteria criteria)
Maps the current row in the result set to a java.util.Date.
|
Integer |
IntegerMapper.processRow(ResultSet resultSet,
int rowOffset,
Criteria criteria)
Maps the current row in the result set to a Integer.
|
Long |
LongMapper.processRow(ResultSet resultSet,
int rowOffset,
Criteria criteria)
Maps the current row in the result set to a Long.
|
List<Object> |
ObjectListMapper.processRow(ResultSet resultSet,
int offset,
Criteria criteria)
Maps the current row in the result set by reading all columns from
offset on to the end of the row and store an object for each column
in the result.
|
T |
RecordMapper.processRow(ResultSet resultSet,
int rowOffset,
Criteria criteria)
Constructs the object from the current row in the resultSet.
|
String |
StringMapper.processRow(ResultSet resultSet,
int rowOffset,
Criteria criteria)
Maps the current row in the result set to a String.
|
Modifier and Type | Method and Description |
---|---|
static Query |
SqlBuilder.buildQuery(Criteria crit)
Builds a Query from a criteria.
|
String |
Query.getDisplayString()
Returns a String to display this query.
|
static String |
SqlBuilder.getFullTableName(String table,
String dbName)
Fully qualify a table name with an optional schema reference.
|
static TableMap |
SqlBuilder.getTableMap(String tableName,
String dbName)
Returns the table map for a table.
|
static String |
SqlBuilder.getUnqualifiedName(String name,
String dbName)
Unqualify a table or column name.
|
static String |
SqlBuilder.guessFullTableFromCriteria(Criteria criteria)
Guesses a table name from a criteria by inspecting the first
column in the criteria.
|
static void |
JoinBuilder.processJoins(Criteria criteria,
Query query)
Adds the Joins from the criteria to the query.
|
Modifier and Type | Method and Description |
---|---|
PreparedStatementPart |
ObjectOrColumnPsPartBuilder.buildPs(Object toBuildFrom,
boolean ignoreCase,
Query query,
Adapter adapter)
Builds a PreparedStatementPart from a column or single value.
|
PreparedStatementPart |
ObjectPsPartBuilder.buildPs(Object toBuildFrom,
boolean ignoreCase,
Query query,
Adapter adapter)
Builds a PreparedStatementPart from a single Object.
|
Modifier and Type | Method and Description |
---|---|
PreparedStatementPart |
CurrentDateTimePsPartBuilder.buildPs(WhereClauseExpression whereClauseExpression,
boolean ignoreCase,
Query query,
Adapter adapter)
Builds a PreparedStatementPart from a WhereClauseExpression.
|
PreparedStatementPart |
EnumValueBuilder.buildPs(WhereClauseExpression whereClausePart,
boolean ignoreCase,
Query query,
Adapter adapter)
Takes a WhereClauseExpression containing a enum object and unwraps the enum value.
|
PreparedStatementPart |
InBuilder.buildPs(WhereClauseExpression whereClausePart,
boolean ignoreCase,
Query query,
Adapter adapter)
Takes a columnName and criteria and
builds a SQL 'IN' expression taking into account the ignoreCase
flag.
|
PreparedStatementPart |
LikeBuilder.buildPs(WhereClauseExpression whereClausePart,
boolean ignoreCase,
Query query,
Adapter adapter)
Builds the PS part for a WhereClauseExpression with a LIKE operator.
|
PreparedStatementPart |
NullValueBuilder.buildPs(WhereClauseExpression whereClausePart,
boolean ignoreCase,
Query query,
Adapter adapter)
Builds a PreparedStatementPart from a WhereClauseExpression which
rhs is null and which has one of the comparison opertator =, <>, or !=.
|
PreparedStatementPart |
StandardBuilder.buildPs(WhereClauseExpression whereClausePart,
boolean ignoreCase,
Query query,
Adapter adapter)
Builds a PreparedStatementPart from a WhereClauseExpression which
RHS and LHS is a simple value.
|
PreparedStatementPart |
VerbatimSqlConditionBuilder.buildPs(WhereClauseExpression whereClausePart,
boolean ignoreCase,
Query query,
Adapter adapter)
Builds the PS part for a WhereClauseExpression with a verbatim
SQL condition.
|
PreparedStatementPart |
WhereClausePsPartBuilder.buildPs(WhereClauseExpression whereClauseExpression,
boolean ignoreCase,
Query query,
Adapter adapter)
Builds a PreparedStatementPart from a WhereClauseExpression.
|
protected Object |
EnumValueBuilder.getWrappedValue(Object wrapped) |
Modifier and Type | Method and Description |
---|---|
abstract TorqueException |
ExceptionMapper.toTorqueException(SQLException sqlException)
Maps a SQLException to an appropriate TorqueException.
|
TorqueException |
ExceptionMapperImpl.toTorqueException(SQLException sqlException) |
Modifier and Type | Method and Description |
---|---|
static TorqueConnection |
Transaction.begin()
Begin a transaction by retrieving a connection from the default database
connection pool.
|
TorqueConnection |
TransactionManager.begin()
Begin a transaction by retrieving a connection from the default database
connection pool.
|
TorqueConnection |
TransactionManagerImpl.begin()
Begin a transaction by retrieving a connection from the default database
connection pool.
|
static TorqueConnection |
Transaction.begin(String dbName)
Begin a transaction by retrieving a connection from the named database
connection pool.
|
TorqueConnection |
TransactionManager.begin(String dbName)
Begin a transaction by retrieving a connection from the named database
connection pool.
|
TorqueConnection |
TransactionManagerImpl.begin(String dbName)
Begin a transaction by retrieving a connection from the named database
connection pool.
|
abstract ColumnValues |
AbstractPeerImpl.buildColumnValues(T obj)
Returns the contents of the object as ColumnValues object.
|
Criteria |
SummaryHelper.buildCriteria(Criteria c)
Builds the criteria to use in summarizing the information.
|
void |
TorqueConnection.close() |
void |
TorqueConnectionImpl.close() |
static void |
Transaction.commit(Connection con)
Commit a transaction and close the connection.
|
void |
TransactionManager.commit(Connection con)
Commit a transaction and close the connection.
|
void |
TransactionManagerImpl.commit(Connection con)
Commit a transaction and close the connection.
|
void |
BasePeerImpl.correctBooleans(ColumnValues columnValues)
Checks all columns in the criteria to see whether
booleanchar and booleanint columns are queried with a boolean.
|
void |
BasePeerImpl.correctBooleans(Criteria criteria)
Checks all columns in the criteria to see whether
booleanchar and booleanint columns are queried with a boolean.
|
int |
CountHelper.count(Criteria c)
The COUNT function returns the number of rows in a query.
|
int |
CountHelper.count(Criteria c,
Column column)
Returns the number of rows in a query.
|
int |
CountHelper.count(Criteria c,
Connection conn)
The COUNT function returns the number of rows in a query.
|
int |
CountHelper.count(Criteria c,
Connection conn,
Column column)
Returns the number of rows in a query.
|
int |
CountHelper.count(Criteria c,
Connection conn,
String columnName,
TableMap tableMap)
Returns the number of rows in a query.
|
int |
CountHelper.count(Criteria c,
String columnName)
Returns the number of rows in a query.
|
int |
CountHelper.count(TableMap tableMap)
Counts all rows in a table.
|
int |
CountHelper.count(TableMap tableMap,
Connection conn)
Counts all rows in a table.
|
int |
BasePeerImpl.doDelete(Criteria criteria)
Deletes rows from a database table.
|
int |
BasePeerImpl.doDelete(Criteria criteria,
Connection connection)
Deletes rows from a table.
|
int |
AbstractPeerImpl.doDelete(ObjectKey<?> pk)
Deletes a row in the database.
|
int |
AbstractPeerImpl.doDelete(ObjectKey<?> pk,
Connection con)
Deletes a row in the database.
|
int |
BasePeerImpl.doInsert(Column[] toInsertInto,
Criteria criteria)
Executes a insert into...select statement.
|
int |
BasePeerImpl.doInsert(Column[] toInsertInto,
Criteria criteria,
Connection connection)
Executes a insert into...select statement.
|
int |
BasePeerImpl.doInsert(Column[] toInsertInto,
Criteria criteria,
String dbName)
Executes a insert into...select statement.
|
int |
BasePeerImpl.doInsert(Column[] toInsertInto,
Criteria criteria,
String dbName,
Connection connection)
Executes a insert into...select statement.
|
ObjectKey<?> |
BasePeerImpl.doInsert(ColumnValues insertValues)
Inserts a record into a database table.
|
ObjectKey<?> |
AbstractPeerImpl.doInsert(ColumnValues columnValues,
Connection con)
Method to do inserts.
|
ObjectKey<?> |
BasePeerImpl.doInsert(ColumnValues insertValues,
Connection connection)
Inserts a record into a database table.
|
void |
AbstractPeerImpl.doInsert(T obj)
Method to do inserts
|
void |
AbstractPeerImpl.doInsert(T obj,
Connection con)
Method to do inserts.
|
List<T> |
BasePeerImpl.doSelect(Criteria criteria)
Selects objects from a database.
|
List<T> |
BasePeerImpl.doSelect(Criteria criteria,
Connection connection)
Selects objects from a database
within a transaction.
|
<TT> List<TT> |
BasePeerImpl.doSelect(Criteria criteria,
RecordMapper<TT> mapper)
Selects rows from a database an maps them to objects.
|
<TT> List<TT> |
BasePeerImpl.doSelect(Criteria criteria,
RecordMapper<TT> mapper,
Connection connection)
Performs a SQL
select using a PreparedStatement. |
List<T> |
BasePeerImpl.doSelect(String query)
Selects rows from a database an maps them to objects.
|
List<T> |
BasePeerImpl.doSelect(String query,
Connection connection)
Selects rows from a database an maps them to objects.
|
<TT> List<TT> |
BasePeerImpl.doSelect(String query,
RecordMapper<TT> mapper,
Connection connection)
Selects rows from a database an maps them to objects.
|
<TT> List<TT> |
BasePeerImpl.doSelect(String query,
RecordMapper<TT> mapper,
String dbName)
Selects rows from a database an maps them to objects.
|
List<T> |
AbstractPeerImpl.doSelect(T obj)
Selects objects from the database which have
the same content as the passed object.
|
Stream<T> |
BasePeerImpl.doSelectAsStream(Criteria criteria,
Connection connection)
Selects objects from a database
within a transaction.
|
<TT> Stream<TT> |
BasePeerImpl.doSelectAsStream(Criteria criteria,
RecordMapper<TT> mapper,
Connection connection)
Performs a SQL
select using a PreparedStatement. |
Stream<T> |
BasePeerImpl.doSelectAsStream(String query,
Connection connection)
Selects rows from a database an maps them to objects.
|
<TT> Stream<TT> |
BasePeerImpl.doSelectAsStream(String query,
RecordMapper<TT> mapper,
Connection connection)
Selects rows from a database an maps them to objects.
|
T |
BasePeerImpl.doSelectSingleRecord(Criteria criteria)
Selects at most one object from a database.
|
T |
BasePeerImpl.doSelectSingleRecord(Criteria criteria,
Connection connection)
Selects at most one object from a database
within a transaction.
|
<TT> TT |
BasePeerImpl.doSelectSingleRecord(Criteria criteria,
RecordMapper<TT> mapper)
Selects at most a single row from a database an maps them to objects.
|
<TT> TT |
BasePeerImpl.doSelectSingleRecord(Criteria criteria,
RecordMapper<TT> mapper,
Connection connection)
Selects at most a single row from a database an maps them to objects.
|
T |
AbstractPeerImpl.doSelectSingleRecord(T obj)
Selects at most one object from the database
which has the same content as the passed object.
|
int |
BasePeerImpl.doUpdate(ColumnValues updateValues)
Convenience method used to update rows in the DB.
|
int |
BasePeerImpl.doUpdate(ColumnValues updateValues,
Connection connection)
Convenience method used to update rows in the DB.
|
int |
BasePeerImpl.doUpdate(Criteria selectCriteria,
ColumnValues updateValues)
Executes an update against the database.
|
int |
BasePeerImpl.doUpdate(Criteria criteria,
ColumnValues updateValues,
Connection connection)
Executes an update against the database.
|
int |
AbstractPeerImpl.doUpdate(T obj)
Updates an object in the database.
|
int |
AbstractPeerImpl.doUpdate(T obj,
Connection con)
Updates an object in the database.
|
int |
BasePeerImpl.executeStatement(String statementString)
Utility method which executes a given sql statement
as prepared statement.
|
int |
BasePeerImpl.executeStatement(String statementString,
Connection con,
List<JdbcTypedValue> replacementValues)
Utility method which executes a given sql statement
as prepared statement.
|
int |
BasePeerImpl.executeStatement(String statementString,
Connection con,
Map<String,JdbcTypedValue> replacementValues)
Utility method which executes a given sql statement
as prepared statement.
|
int |
BasePeerImpl.executeStatement(String statementString,
List<JdbcTypedValue> replacementValues)
Utility method which executes a given sql statement
as prepared statement.
|
int |
BasePeerImpl.executeStatement(String statementString,
Map<String,JdbcTypedValue> replacementValues)
Utility method which executes a given sql statement
as prepared statement.
|
int |
BasePeerImpl.executeStatement(String statementString,
String dbName,
List<JdbcTypedValue> replacementValues)
Utility method which executes a given sql statement
as prepared statement.
|
int |
BasePeerImpl.executeStatement(String statementString,
String dbName,
Map<String,JdbcTypedValue> replacementValues)
Utility method which executes a given sql statement
as prepared statement.
|
List<T> |
LargeSelect.getCurrentPageResults()
Provide access to the results from the current page.
|
int |
LargeSelect.getCurrentPageSize()
Provides a count of the number of rows to be displayed on the current
page - for the last page this may be less than the configured page size.
|
int |
LargeSelect.getLastRecordNoForPage()
Provide the record number of the last row included on the current page.
|
List<T> |
LargeSelect.getNextResults()
Gets the next page of rows.
|
List<T> |
LargeSelect.getPage(int pageNumber)
Retrieve a specific page, if it exists.
|
List<T> |
LargeSelect.getPreviousResults()
Gets the previous page of rows.
|
String |
LargeSelect.getRecordProgressText()
A convenience method that provides text showing progress through the
selected rows on a record basis.
|
void |
LargeSelect.invalidateResult()
Clear the query result so that the query is re-executed when the next page
is retrieved.
|
static void |
Transaction.rollback(Connection con)
Roll back a transaction and release the connection.
|
void |
TransactionManager.rollback(Connection con)
Roll back a transaction and release the connection.
|
void |
TransactionManagerImpl.rollback(Connection con)
Roll back a transaction and release the connection.
|
protected void |
BasePeerImpl.setDbName(Criteria crit)
Sets the database name in the passed criteria to the table's default,
if it is not already set.
|
List<ListOrderedMapCI<Object>> |
SummaryHelper.summarize(Criteria crit)
Return a list of ListOrderedMapCI objects with the results of the summary
query.
|
List<ListOrderedMapCI<Object>> |
SummaryHelper.summarize(Criteria crit,
Connection conn)
Return a list of OrderedMap objects with the results of the summary
query.
|
List<ListOrderedMapCI<Object>> |
SummaryHelper.summarize(Criteria crit,
List<Class<?>> resultTypes)
Return a list of ListOrderedMapCI objects with the results of the summary
query.
|
List<ListOrderedMapCI<Object>> |
SummaryHelper.summarize(Criteria crit,
List<Class<?>> resultTypes,
Connection conn)
Return a list of ListOrderedMapCI objects with the results of the summary
query.
|
Constructor and Description |
---|
ResultsetSpliterator(RecordMapper<T> recordMapper,
Criteria criteria,
Statement statement,
ResultSet resultSet)
Constructor
|
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.