# All Classes and Interfaces

Class
Description
AbstractAdapter
This class is the abstract base for any database adapter Support for new databases is added by subclassing this class and implementing its abstract methods, and by registering the new database adapter and its corresponding JDBC driver in the service configuration file.
AbstractBaseManager<T>
This class contains common functionality of a Manager for instantiating OM's.
AbstractDataSourceFactory
A class that contains common functionality of the factories in this package.
AbstractFunction
A default framework that implements the core SQLFunction interface requirements that can be used to build specific functions on.
AbstractIdGenerator
This class serves as a common base class for the sequence-based and the autoincrement-based id generators
AbstractPeerImpl<T>
This is an abstract layer for all generated peer classes that implements several convenience methods that otherwise would have to be generated.
AbstractWhereClausePsPartBuilder
Abstract base class for a WhereClausePsPartBuilder.
Adapter
`DB` defines the interface for a Torque database adapter.
AdapterFactory
This class creates different `Adapter` objects based on specified JDBC driver name.
AggregateFunction
A container for classes that will generate SQL for the SQL99 Standard Aggregate functions.
AutoIncrementIdGenerator
This generator works with databases that have an sql syntax that allows the retrieval of the last id used to insert a row for a Connection.
Avg
SQL99 Standard Average function.
AvgHelper
Get's the average of a column with entries matching the provided criteria.
BasePeerImpl<T>
This is the base class for all Peer classes in the system.
BigDecimalMapper
Maps a database record to a BigDecimal.
BooleanKey
This class can be used as an ObjectKey to uniquely identify an object within an application where the id consists of a Boolean.
CacheListener<T>
Listener for cache events
Column
The metadata of a column (or pseudocolumn) in a database.
ColumnAccessByName
Define accessors by name.
ColumnImpl
An implementation of the column interface.
ColumnMap
ColumnMap is used to model a column of a table in a database.
ColumnValues
A class containing values for database columns.
CombinedPreparedStatementPart
A PreparedStatementPart which consists of a list of other PreparedStatementParts.
ComboKey
This class can be used as an ObjectKey to uniquely identify an object within an application where the key consists of multiple entities (such a String[] representing a multi-column primary key).
CompositeMapper
Uses a list of mappers to map a database record to a list of objects.
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.
Count
SQL99 Standard count function.
CountHelper
Counts entries matching a criteria.
Criteria
Encapsulates conditions to access rows in database tables.
Criterion
Describes one or more where clause parts in the Criteria.
CurrentDateTimePsPartBuilder
A WhereClausePsPartBuilder which handles `SqlEnum.CURRENT_DATE` and `SqlEnum.CURRENT_TIME`.
Database
Bundles all information about a database.
DatabaseMap
DatabaseMap is used to model a database.
DataSourceFactory
A factory that returns a DataSource.
DateKey
This class can be used as an ObjectKey to uniquely identify an object within an application where the id is a Date.
DateMapper
Maps a database record to a java.util.Date.
DeadlockException
This exception is thrown if the database detects a deadlock.
DerbyAdapter
This is used to connect to an embedded Apache Derby Database using the supplied JDBC driver.
DurationConverter
`Converter` implementation that handles conversion to and from java.time.Duration objects.
EnumValueBuilder
Builds a PreparedStatementPart from a WhereClauseExpression containing an enum object.
ExceptionMapper
Translates Database Exceptions into TorqueExceptions.
ExceptionMapperImpl
Default implementation of the ExceptionMapper interface.
ForeignKeyMap
ForeignKeyMap is used to model a foreign key in a database.
ForeignKeyMap.ColumnPair
A pair of local and Foreign column.
FromElement
This class describes an Element in the From-part of a SQL clause.
HsqldbAdapter
This is used to connect to Hsqldb databases.
IDBroker
This method of ID generation is used to ensure that code is more database independent.
IdGenerator
Interface to be implemented by id generators.
IDGeneratorFactory
A factory which instantiates `IdGenerator` implementations.
IDMethod
Interface for various ID retrieval method types (i.e. auto-increment, sequence, ID broker, etc.).
InBuilder
Builds a PreparedStatementPart from a WhereClauseExpression containing a Like operator.
InheritanceMap
InheritanceMap is used to model OM inheritance classes.
IntegerMapper
Maps a database record to a Integer.
JdbcTypedValue
A value for a column, with the JDBC type if it is an explicit value.
JndiDataSourceFactory
A factory that looks up the DataSource from JNDI.
Join
Data object to describe a join between two tables, for example
JoinBuilder
Generates SQL for joins.
JoinType
The possible explicit join types.
LargeSelect<T>
This class can be used to retrieve a large result set from a database query.
LikeBuilder
Builds a PreparedStatementPart from a WhereClauseExpression containing a Like operator.
ListOrderedMapCI<T>
A subclass of LinkedHashMap that has case insensitive String key methods.
LongMapper
Maps a database record to a Long.
MapHelper
Utility methods for Database, Table and Column Maps.
MappingStrategy<T>
Mapping strategy used in processRow method of generated mappers.
Max
SQL99 Standard max function.
MethodCacheKey
The key for the MethodResultCache.
MethodResultCache
This class provides a cache for convenient storage of method results.
Min
SQL99 Standard min function.
MssqlAdapter
This is used to connect to a MSSQL database.
MysqlAdapter
This is used in order to connect to a MySQL database using the MM drivers.
NoneAdapter
This DatabaseHandler is used when you do not have a database installed.
NoOpMethodResultCache
This class provides a no-op cache for convenient storage of method results
NoReplacementsPreparedStatementPart
A PreparedStatementPart which only contains SQL and no replacements.
NoRowsException
This exception indicates that no rows were returned but at least one should have been returned.
NullValueBuilder
Builds a PreparedStatementPart from a WhereClauseExpression which rhs is null and which has one of the comparison opertator =, <>, or !
NumberKey
This class can be used as an ObjectKey to uniquely identify an object within an application where the id consists of a single entity such a GUID or the value of a db row's primary key.
ObjectKey<T>
This class can be used to uniquely identify an object within an application.
ObjectListMapper
Maps a record to a list of objects.
ObjectModel
This interface defines methods related to object referencing and tracking
ObjectOrColumnPsPartBuilder
Builds a PreparedStatementPart from a column or single value.
ObjectPsPartBuilder
Builds a PreparedStatementPart from a single object (e.g. a column or a SQL value).
OnlyReplacementsPreparedStatementPart
A PreparedStatementPart which only contains replacements, no sql.
OptimisticLockingFailedException
This exception is thrown if the database detects that a row in a table with optimistic locking was updated by another process.
OptionSupport
OptionSupport provides the basic methods for the management of options within the database schema model.
OracleAdapter
This code should be used for an Oracle database pool.
OrderBy
An order by clause.
Persistent
This interface defines methods related to saving an object
PerUserPool2DataSourceFactory
A factory that looks up the DataSource using the DBCP2 pool methods.
PostgresAdapter
This is used to connect to PostgresQL databases.
PreparedStatementPart
The rendered SQL for a part of a prepared statement, including replacements for ?
PreparedStatementPartForSubselect
A PreparedStatementPart which encapsulates a subselect.
PreparedStatementPartImpl
Modifiable implementation of the PreparedStatementPart interface.
Query
Contains the various parts of a SQL statement (select, update or delete).
Query.Type
All types of the statement.
RecordMapper<T>
Maps an object to a database record and back.
ResultsetSpliterator<T>
Stream support: Encapsulate iteration over a JDBC ResultSet
SequenceIdGenerator
This generator works with databases that have an sql syntax for getting an id prior to inserting a row into the database.
SharedPool2DataSourceFactory
A factory that looks up the DataSource using the DBCP2 pool methods.
SimpleKey<T>
This empty class marks an ObjectKey as being capable of being represented as a single column in a database.
SqlBuilder
Factored out code that is used to process SQL tables.
SqlEnum
A typesafe enum of SQL string fragments.
SQLFunction
Define the basic methods that classes that support SQL Functions need to implement for Classes that use them.
StandardBuilder
Builds a PreparedStatementPart from a WhereClauseExpression which RHS and LHS is a simple value.
StringKey
This class can be used as an ObjectKey to uniquely identify an object within an application where the id consists of a single entity such a GUID or the value of a db row's primary key.
StringMapper
Maps a database record to a String.
Sum
SQL99 Standard sum function.
SummaryHelper
A utility to help produce aggregate summary information about a table.
TableMap
TableMap is used to model a table in a database.
TooManyRowsException
This exception indicates that more rows were returned than expected.
Torque
Avalon role interface for Torque.
Torque
A static facade wrapper around the Torque implementation (which is in `TorqueInstance`).
TorqueComponent
Avalon component for Torque.
TorqueConnection
Torque's extension to the JDBC connection
TorqueConnectionImpl
Encapsulates connection status tracking and allows AutoClosing within Torque.
TorqueException
The base class of all checked exceptions thrown by Torque.
TorqueInstance
The core of Torque's implementation.
TorqueRuntimeException
This is the base class of all non-checked exceptions in Torque.
Transaction
Encapsulates transaction and connection handling within Torque.
TransactionManager
Torque's interface to the transaction management system.
TransactionManagerImpl
Standard connection and transaction management for Torque.
UniqueColumnList
List with unique entries.
UniqueList<T>
List with unique entries.
VerbatimSqlConditionBuilder
Builds a PreparedStatementPart from a WhereClauseExpression containing a verbatim SQL condition.
WhereClauseExpression
The raw values for a part of the where clause of a SQL statement, either of the form lValue operator rValue, e.g. author.author_id = 1, or in form of a custom sql query with sql and replacement values.
WhereClausePsPartBuilder
Builds a PreparedStatementPart from a WhereClauseExpression.