Uses of Interface
org.apache.torque.adapter.Adapter
-
Packages that use Adapter 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.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.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. -
-
Uses of Adapter in org.apache.torque
Methods in org.apache.torque that return Adapter Modifier and Type Method Description AdapterDatabase. getAdapter()Returns the adapter to this database.static AdapterTorque. getAdapter(String name)Returns the database adapter for a specific database name.AdapterTorqueInstance. getAdapter(String name)Returns the database adapter for a specific database.Methods in org.apache.torque with parameters of type Adapter Modifier and Type Method Description voidDatabase. setAdapter(Adapter anAdapter)Sets the adapter for this database. -
Uses of Adapter in org.apache.torque.adapter
Classes in org.apache.torque.adapter that implement Adapter Modifier and Type Class Description classAbstractAdapterThis 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.classDerbyAdapterThis is used to connect to an embedded Apache Derby Database using the supplied JDBC driver.classHsqldbAdapterThis is used to connect to Hsqldb databases.classMssqlAdapterThis is used to connect to a MSSQL database.classMysqlAdapterThis is used in order to connect to a MySQL database using the MM drivers.classNoneAdapterThis DatabaseHandler is used when you do not have a database installed.classOracleAdapterThis code should be used for an Oracle database pool.classPostgresAdapterThis is used to connect to PostgresQL databases.Methods in org.apache.torque.adapter that return Adapter Modifier and Type Method Description static AdapterAdapterFactory. autoDetectAdapter(Connection con)Creates a new instance of the Torque database adapter based on the JDBC meta-datastatic AdapterAdapterFactory. create(String key)Creates a new instance of the Torque database adapter associated with the specified JDBC driver or adapter key.static AdapterAdapterFactory. create(String key, String className)Creates a new instance of the Torque database adapter associated with the specified JDBC driver or adapter key and the class defined.Methods in org.apache.torque.adapter with parameters of type Adapter Modifier and Type Method Description static voidAdapterFactory. setCapabilities(Connection con, Adapter adapter)Update static capabilities of the Torque database adapter with actual readings based on the JDBC meta-data -
Uses of Adapter in org.apache.torque.avalon
Methods in org.apache.torque.avalon that return Adapter Modifier and Type Method Description AdapterTorque. getAdapter(String name)Returns database adapter for a specific connection pool. -
Uses of Adapter in org.apache.torque.oid
Fields in org.apache.torque.oid declared as Adapter Modifier and Type Field Description protected AdapterAbstractIdGenerator. adapterThe adapter that knows the correct sql syntaxMethods in org.apache.torque.oid with parameters of type Adapter Modifier and Type Method Description static IdGeneratorIDGeneratorFactory. create(Adapter adapter, String name)Factory method which instantiatesIdGeneratorimplementations based on the return value of the provided adapter'sgetIDMethodType()method.Constructors in org.apache.torque.oid with parameters of type Adapter Constructor Description AbstractIdGenerator(Adapter adapter, String databaseName)Creates an IdGenerator which will work with the specified database.AutoIncrementIdGenerator(Adapter adapter, String databaseName)Creates an IdGenerator which will work with the specified database.SequenceIdGenerator(Adapter adapter, String databaseName)Creates an IdGenerator which will work with the specified database. -
Uses of Adapter in org.apache.torque.sql.objectbuilder
Methods in org.apache.torque.sql.objectbuilder with parameters of type Adapter Modifier and Type Method Description PreparedStatementPartObjectOrColumnPsPartBuilder. buildPs(Object toBuildFrom, boolean ignoreCase, Query query, Adapter adapter)Builds a PreparedStatementPart from a column or single value.PreparedStatementPartObjectPsPartBuilder. buildPs(Object toBuildFrom, boolean ignoreCase, Query query, Adapter adapter)Builds a PreparedStatementPart from a single Object. -
Uses of Adapter in org.apache.torque.sql.whereclausebuilder
Methods in org.apache.torque.sql.whereclausebuilder with parameters of type Adapter Modifier and Type Method Description PreparedStatementPartCurrentDateTimePsPartBuilder. buildPs(WhereClauseExpression whereClauseExpression, boolean ignoreCase, Query query, Adapter adapter)Builds a PreparedStatementPart from a WhereClauseExpression.PreparedStatementPartEnumValueBuilder. buildPs(WhereClauseExpression whereClausePart, boolean ignoreCase, Query query, Adapter adapter)Takes a WhereClauseExpression containing a enum object and unwraps the enum value.PreparedStatementPartInBuilder. 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.PreparedStatementPartLikeBuilder. buildPs(WhereClauseExpression whereClausePart, boolean ignoreCase, Query query, Adapter adapter)Builds the PS part for a WhereClauseExpression with a LIKE operator.PreparedStatementPartNullValueBuilder. 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 !PreparedStatementPartStandardBuilder. buildPs(WhereClauseExpression whereClausePart, boolean ignoreCase, Query query, Adapter adapter)Builds a PreparedStatementPart from a WhereClauseExpression which RHS and LHS is a simple value.PreparedStatementPartVerbatimSqlConditionBuilder. buildPs(WhereClauseExpression whereClausePart, boolean ignoreCase, Query query, Adapter adapter)Builds the PS part for a WhereClauseExpression with a verbatim SQL condition.PreparedStatementPartWhereClausePsPartBuilder. buildPs(WhereClauseExpression whereClauseExpression, boolean ignoreCase, Query query, Adapter adapter)Builds a PreparedStatementPart from a WhereClauseExpression.booleanCurrentDateTimePsPartBuilder. isApplicable(WhereClauseExpression whereClauseExpression, Adapter adapter)Returns whether this WhereClausePsPartBuilder is applicable for a given WhereClauseExpression.booleanEnumValueBuilder. isApplicable(WhereClauseExpression whereClauseExpression, Adapter adapter)Returns whether this WhereClausePsPartBuilder is applicable for a given WhereClauseExpression.booleanInBuilder. isApplicable(WhereClauseExpression whereClauseExpression, Adapter adapter)Returns whether this WhereClausePsPartBuilder is applicable for a given WhereClauseExpression.booleanLikeBuilder. isApplicable(WhereClauseExpression whereClauseExpression, Adapter adapter)Returns whether this WhereClausePsPartBuilder is applicable for a given WhereClauseExpression.booleanNullValueBuilder. isApplicable(WhereClauseExpression whereClauseExpression, Adapter adapter)Returns whether this WhereClausePsPartBuilder is applicable for a given WhereClauseExpression.booleanStandardBuilder. isApplicable(WhereClauseExpression whereClauseExpression, Adapter adapter)Returns whether this WhereClausePsPartBuilder is applicable for a given WhereClauseExpression.booleanVerbatimSqlConditionBuilder. isApplicable(WhereClauseExpression whereClauseExpression, Adapter adapter)Returns whether this WhereClausePsPartBuilder is applicable for a given WhereClauseExpression.booleanWhereClausePsPartBuilder. isApplicable(WhereClauseExpression whereClauseExpression, Adapter adapter)Returns whether this WhereClausePsPartBuilder is applicable for a given WhereClauseExpression.
-