Uses of Class
org.apache.torque.TorqueException
-
Packages that use TorqueException 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. utility classes. -
-
Uses of TorqueException in org.apache.torque
Subclasses of TorqueException in org.apache.torque Modifier and Type Class Description class
ConstraintViolationException
This exception is thrown if a database operation violates a database constraint, e.g. a foreign key constraint, a unique constraint or a not-null constraint.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.Methods in org.apache.torque that throw TorqueException Modifier and Type Method 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.static Connection
Torque. getConnection(String name)
This method returns a Connecton using the given database name.static Connection
Torque. getConnection(String name, String username, String password)
This method returns a Connecton using the given parameters.Connection
TorqueInstance. getConnection()
This method returns a Connection from the default pool.Connection
TorqueInstance. getConnection(String name)
Returns a database connection to the database with the keyname
.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 keydatabaseName
.static DatabaseMap
Torque. getDatabaseMap()
Returns the default database map information.static DatabaseMap
Torque. getDatabaseMap(String name)
Returns the database map information for a given database.DatabaseMap
TorqueInstance. getDatabaseMap()
Returns the database map information for the default db.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 namename
.static String
Torque. getSchema(String name)
This method returns the current schema for a database connectionString
TorqueInstance. getSchema(String name)
This method returns the current schema for a database connectionstatic void
Torque. init(String configFile)
Initialization of Torque with a path to a properties file.static void
Torque. init(org.apache.commons.configuration2.Configuration conf)
Initialization of Torque with a configuration.void
TorqueInstance. init(String configFile)
Initialization of Torque with a path to a properties or xml file.void
TorqueInstance. init(org.apache.commons.configuration2.Configuration conf)
Initialization of Torque with a Configuration object.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. -
Uses of TorqueException in org.apache.torque.adapter
Methods in org.apache.torque.adapter that throw TorqueException Modifier and Type Method 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. -
Uses of TorqueException in org.apache.torque.avalon
Methods in org.apache.torque.avalon that throw TorqueException Modifier and Type Method 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 keydatabaseName
.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 connectionvoid
Torque. setSchema(String name, String schema)
Sets the current schema for a database connection -
Uses of TorqueException in org.apache.torque.dsfactory
Methods in org.apache.torque.dsfactory that throw TorqueException Modifier and Type Method 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 gettervoid
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. -
Uses of TorqueException in org.apache.torque.manager
Methods in org.apache.torque.manager that throw TorqueException Modifier and Type Method Description protected void
AbstractBaseManager. clearImpl()
Clears the cacheprotected T
AbstractBaseManager. getOMInstance()
Get a fresh instance of an omprotected T
AbstractBaseManager. getOMInstance(ObjectKey<?> id)
Return an instance of an om based on the idprotected T
AbstractBaseManager. getOMInstance(ObjectKey<?> key, boolean fromCache)
Return an instance of an om based on the idprotected 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 cacheprotected T
AbstractBaseManager. putInstanceImpl(T om)
Put an object into the cacheprotected T
AbstractBaseManager. removeInstanceImpl(ObjectKey<?> key)
Remove an object from the cacheprotected abstract T
AbstractBaseManager. retrieveStoredOM(ObjectKey<?> id)
Retrieve an object from persistent storageprotected 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. -
Uses of TorqueException in org.apache.torque.map
Methods in org.apache.torque.map that throw TorqueException Modifier and Type Method 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 existsstatic 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. -
Uses of TorqueException in org.apache.torque.oid
Methods in org.apache.torque.oid that throw TorqueException Modifier and Type Method 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. -
Uses of TorqueException in org.apache.torque.om
Methods in org.apache.torque.om that throw TorqueException Modifier and Type Method 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(String primaryKey)
Sets the PrimaryKey for the object.void
ObjectModel. setPrimaryKey(ObjectKey<?> primaryKey)
Sets the PrimaryKey for the object. -
Uses of TorqueException in org.apache.torque.om.mapper
Methods in org.apache.torque.om.mapper that throw TorqueException Modifier and Type Method 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. -
Uses of TorqueException in org.apache.torque.sql
Methods in org.apache.torque.sql that throw TorqueException Modifier and Type Method 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. -
Uses of TorqueException in org.apache.torque.sql.objectbuilder
Methods in org.apache.torque.sql.objectbuilder that throw TorqueException Modifier and Type Method 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. -
Uses of TorqueException in org.apache.torque.sql.whereclausebuilder
Methods in org.apache.torque.sql.whereclausebuilder that throw TorqueException Modifier and Type Method 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)
-
Uses of TorqueException in org.apache.torque.util
Methods in org.apache.torque.util that return TorqueException Modifier and Type Method Description abstract TorqueException
ExceptionMapper. toTorqueException(SQLException sqlException)
Maps a SQLException to an appropriate TorqueException.TorqueException
ExceptionMapperImpl. toTorqueException(SQLException sqlException)
Methods in org.apache.torque.util that throw TorqueException Modifier and Type Method Description BigDecimal
AvgHelper. avg(Criteria c, String columnName)
Returns the average of a column in a query.BigDecimal
AvgHelper. avg(Criteria c, Connection conn, String columnName, TableMap tableMap)
Returns the average of a column in a query.BigDecimal
AvgHelper. avg(Criteria c, Connection conn, Column column)
Returns the average of a column in a query.BigDecimal
AvgHelper. avg(Criteria c, Column column)
Returns the average of a column in a query.static TorqueConnection
Transaction. 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()
Begin a transaction by retrieving a connection from the default database connection pool.TorqueConnection
TransactionManager. begin(String dbName)
Begin a transaction by retrieving a connection from the named database connection pool.TorqueConnection
TransactionManagerImpl. begin()
Begin a transaction by retrieving a connection from the default 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(Criteria criteria)
Checks all columns in the criteria to see whether booleanchar and booleanint columns are queried with a boolean.void
BasePeerImpl. correctBooleans(ColumnValues columnValues)
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, String columnName)
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, String columnName, TableMap tableMap)
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, Column column)
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
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. doDelete(Criteria criteria)
Deletes rows from a database table.int
BasePeerImpl. doDelete(Criteria criteria, Connection connection)
Deletes rows from a table.ObjectKey<?>
AbstractPeerImpl. doInsert(ColumnValues columnValues, Connection con)
Method to do inserts.void
AbstractPeerImpl. doInsert(T obj)
Method to do insertsvoid
AbstractPeerImpl. doInsert(T obj, Connection con)
Method to do inserts.int
BasePeerImpl. doInsert(Column[] toInsertInto, Criteria criteria)
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.int
BasePeerImpl. doInsert(Column[] toInsertInto, Criteria criteria, Connection connection)
Executes a insert into...select statement.ObjectKey<?>
BasePeerImpl. doInsert(ColumnValues insertValues)
Inserts a record into a database table.ObjectKey<?>
BasePeerImpl. doInsert(ColumnValues insertValues, Connection connection)
Inserts a record into a database table.List<T>
AbstractPeerImpl. doSelect(T obj)
Selects objects from the database which have the same content as the passed object.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, String dbName)
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.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 SQLselect
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.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 SQLselect
using a PreparedStatement.T
AbstractPeerImpl. doSelectSingleRecord(T obj)
Selects at most one object from the database which has the same content as the passed object.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.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. 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
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. executeStatement(String statementString)
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.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.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.Constructors in org.apache.torque.util that throw TorqueException Constructor Description ResultsetSpliterator(RecordMapper<T> recordMapper, Criteria criteria, Statement statement, ResultSet resultSet)
Constructor
-