Verwendungen von Klasse
org.apache.torque.TorqueException
Packages, die TorqueException verwenden
Package
Beschreibung
Torque is an object-relational mapper for Java.
Adapters between Torque and various databases.
Avalon component
implementation.
Torque's API for creation of various javax.sql.DataSource
implementations.
A manager/factory API for use with Torque-generated data beans.
Description of the schema layout.
The ID broker, an API to provide persistent
object identifiers,
as described by Scott Ambler's paper on "Enterprise-Ready Object
IDs".
API for the classic Torque-generated object model.
Contains the Mapper interface which defines how to map from
a ResultSet to an object, and simple implementations of this interface.
This package contains classes which are mainly used in the SQL generation
process.
This package contains classes which can build
PreparedStatementParts from a single value or column.
This package contains classes which can build
PreparedStatementParts from a WhereClauseExpression.
Misc. utility classes.
-
Verwendungen von TorqueException in org.apache.torque
Unterklassen von TorqueException in org.apache.torqueModifizierer und TypKlasseBeschreibungclassThis 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.classThis exception is thrown if the database detects a deadlock.classThis exception indicates that no rows were returned but at least one should have been returned.classThis exception is thrown if the database detects that a row in a table with optimistic locking was updated by another process.classThis exception indicates that more rows were returned than expected.Methoden in org.apache.torque, die TorqueException auslösenModifizierer und TypMethodeBeschreibungstatic AdapterTorque.getAdapter(String name) Returns the database adapter for a specific database name.TorqueInstance.getAdapter(String name) Returns the database adapter for a specific database.static ConnectionTorque.getConnection()This method returns a Connection from the default pool.static ConnectionTorque.getConnection(String name) This method returns a Connecton using the given database name.static ConnectionTorque.getConnection(String name, String username, String password) This method returns a Connecton using the given parameters.TorqueInstance.getConnection()This method returns a Connection from the default pool.TorqueInstance.getConnection(String name) Returns a database connection to the database with the keyname.TorqueInstance.getConnection(String name, String username, String password) This method returns a Connection using the given parameters.static DatabaseTorque.getDatabase(String name) Returns the database for the given key.TorqueInstance.getDatabase(String databaseName) Returns the database for the keydatabaseName.static DatabaseMapTorque.getDatabaseMap()Returns the default database map information.static DatabaseMapTorque.getDatabaseMap(String name) Returns the database map information for a given database.TorqueInstance.getDatabaseMap()Returns the database map information for the default db.TorqueInstance.getDatabaseMap(String name) Returns the database map information for the given database name.Torque.getDatabases()Returns a Map containing all Databases registered to Torque.TorqueInstance.getDatabases()Returns a Map containing all Databases registered to Torque.TorqueInstance.getDataSourceFactory(String name) Returns the DataSourceFactory for the database with the namename.static StringThis method returns the current schema for a database connectionThis method returns the current schema for a database connectionstatic voidInitialization of Torque with a path to a properties file.static voidTorque.init(org.apache.commons.configuration2.Configuration conf) Initialization of Torque with a configuration.voidInitialization of Torque with a path to a properties or xml file.voidTorqueInstance.init(org.apache.commons.configuration2.Configuration conf) Initialization of Torque with a Configuration object.protected voidTorqueInstance.initManagerMappings(org.apache.commons.configuration2.Configuration conf) Creates a mapping between classes and their manager classes.static voidTorque.setConfiguration(org.apache.commons.configuration2.Configuration conf) Sets the configuration for Torque and all dependencies.voidTorqueInstance.setConfiguration(org.apache.commons.configuration2.Configuration conf) Sets the configuration for Torque and all dependencies.static voidTorque.shutdown()Shuts down the service.voidTorqueInstance.shutdown()Shuts down Torque. -
Verwendungen von TorqueException in org.apache.torque.adapter
Methoden in org.apache.torque.adapter, die TorqueException auslösenModifizierer und TypMethodeBeschreibungvoidAbstractAdapter.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.voidAdapter.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.voidMssqlAdapter.generateLimits(Query query, long offset, int limit) Modify a query to add limit and offset values for MSSQL. -
Verwendungen von TorqueException in org.apache.torque.avalon
Methoden in org.apache.torque.avalon, die TorqueException auslösenModifizierer und TypMethodeBeschreibungTorque.getAdapter(String name) Returns database adapter for a specific connection pool.Torque.getConnection()This method returns a Connection from the default pool.Torque.getConnection(String name) Torque.getConnection(String name, String username, String password) This method returns a Connecton using the given parameters.Torque.getDatabase(String databaseName) Returns the database for the keydatabaseName.Torque.getDatabaseMap()Returns the default database map information.Torque.getDatabaseMap(String name) Returns the database map information.Torque.getDatabases()Returns a Map containing all Databases registered to Torque.This method returns the current schema for a database connectionvoidSets the current schema for a database connection -
Verwendungen von TorqueException in org.apache.torque.dsfactory
Methoden in org.apache.torque.dsfactory, die TorqueException auslösenModifizierer und TypMethodeBeschreibungprotected voidAbstractDataSourceFactory.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 gettervoidDataSourceFactory.close()A hook which is called when the resources of the associated DataSource can be released.voidPerUserPool2DataSourceFactory.close()Closes the pool associated with this factory and releases it.voidSharedPool2DataSourceFactory.close()Closes the pool associated with this factory and releases it.abstract DataSourceAbstractDataSourceFactory.getDataSource()DataSourceFactory.getDataSource()JndiDataSourceFactory.getDataSource()protected voidAbstractDataSourceFactory.initCPDS(org.apache.commons.configuration2.Configuration configuration, ConnectionPoolDataSource cpds) Initializes the ConnectionPoolDataSource.abstract voidAbstractDataSourceFactory.initialize(org.apache.commons.configuration2.Configuration configuration) Initialize the factory.voidDataSourceFactory.initialize(org.apache.commons.configuration2.Configuration configuration) Initialize the factory.voidJndiDataSourceFactory.initialize(org.apache.commons.configuration2.Configuration configuration) voidPerUserPool2DataSourceFactory.initialize(org.apache.commons.configuration2.Configuration configuration) voidSharedPool2DataSourceFactory.initialize(org.apache.commons.configuration2.Configuration configuration) protected voidAbstractDataSourceFactory.initJdbc2Pool(DataSource dataSource, org.apache.commons.configuration2.Configuration configuration) Initializes the Jdbc2PoolDataSource. -
Verwendungen von TorqueException in org.apache.torque.manager
Methoden in org.apache.torque.manager, die TorqueException auslösenModifizierer und TypMethodeBeschreibungprotected voidAbstractBaseManager.clearImpl()Clears the cacheprotected TAbstractBaseManager.getOMInstance()Get a fresh instance of an omprotected TAbstractBaseManager.getOMInstance(ObjectKey<?> id) Return an instance of an om based on the idprotected TAbstractBaseManager.getOMInstance(ObjectKey<?> key, boolean fromCache) Return an instance of an om based on the idGets a list of om's based on id's.Gets a list of om's based on id's.Gets a list of om's based on id's.protected ObjectMethodResultCache.putImpl(MethodCacheKey key, Object value) protected ObjectNoOpMethodResultCache.putImpl(MethodCacheKey key, Object value) protected TAbstractBaseManager.putInstanceImpl(ObjectKey<?> key, T om) Put an object into the cacheprotected TAbstractBaseManager.putInstanceImpl(T om) Put an object into the cacheprotected TAbstractBaseManager.removeInstanceImpl(ObjectKey<?> key) Remove an object from the cacheprotected abstract TAbstractBaseManager.retrieveStoredOM(ObjectKey<?> id) Retrieve an object from persistent storageAbstractBaseManager.retrieveStoredOMs(List<? extends ObjectKey<?>> ids) Gets a list of om's based on id's.voidAbstractBaseManager.setClassName(String v) Set the classname to instantiate for getInstance()voidSet the cache region used for JCS. -
Verwendungen von TorqueException in org.apache.torque.map
Methoden in org.apache.torque.map, die TorqueException auslösenModifizierer und TypMethodeBeschreibungstatic ColumnMapMapHelper.getColumnMap(Column column, Criteria criteria) Returns the column map for a column.TableMap.getPrimaryKey()Returns the single primary key of this table, if it existsstatic TableMapMapHelper.getTableMap(Object possibleColumn, Criteria criteria, TableMap defaultTableMap) Returns the table map for a table name.voidDatabaseMap.initialize()Fully populate this DatabaseMap with all the TablesMaps. -
Verwendungen von TorqueException in org.apache.torque.oid
Methoden in org.apache.torque.oid, die TorqueException auslösenModifizierer und TypMethodeBeschreibungprotected <T> TAbstractIdGenerator.getId(Connection connection, Object keyInfo, RecordMapper<T> mapper) Returns the last ID used by this connection.AbstractIdGenerator.getIdAsBigDecimal(Connection connection, Object keyInfo) Returns the last ID used by this connection.IDBroker.getIdAsBigDecimal(Connection connection, Object tableName) Returns an id as a BigDecimal.IdGenerator.getIdAsBigDecimal(Connection connection, Object keyInfo) Returns an id as a BigDecimal.intAbstractIdGenerator.getIdAsInt(Connection connection, Object keyInfo) Returns the last ID used by this connection.intIDBroker.getIdAsInt(Connection connection, Object tableName) intIdGenerator.getIdAsInt(Connection connection, Object keyInfo) Returns an id as a primitive int.longAbstractIdGenerator.getIdAsLong(Connection connection, Object keyInfo) Returns the last ID used by this connection.longIDBroker.getIdAsLong(Connection connection, Object tableName) longIdGenerator.getIdAsLong(Connection connection, Object keyInfo) Returns an id as a primitive long.AbstractIdGenerator.getIdAsString(Connection connection, Object keyInfo) Returns the last ID used by this connection.IDBroker.getIdAsString(Connection connection, Object tableName) Returns an id as a String.IdGenerator.getIdAsString(Connection connection, Object keyInfo) Returns an id as a String.Returns the SQL to retrieve the next id.IDBroker.getNextIds(String tableName, int numOfIdsToReturn, Connection connection) This method returns x number of ids for the given table.protected voidIDBroker.updateQuantity(Connection con, String tableName, BigDecimal quantity) Helper method to update a row in the ID_TABLE. -
Verwendungen von TorqueException in org.apache.torque.om
Methoden in org.apache.torque.om, die TorqueException auslösenModifizierer und TypMethodeBeschreibungbooleanSet a field in the object by field (Java) name.booleanColumnAccessByName.setByPeerName(String name, Object value) Set field values by Peer Field Name-booleanColumnAccessByName.setByPosition(int position, Object value) Set field values by it's position (zero based) in the XML schema.voidObjectModel.setPrimaryKey(String primaryKey) Sets the PrimaryKey for the object.voidObjectModel.setPrimaryKey(ObjectKey<?> primaryKey) Sets the PrimaryKey for the object. -
Verwendungen von TorqueException in org.apache.torque.om.mapper
Methodenparameter in org.apache.torque.om.mapper mit Typargumenten vom Typ TorqueExceptionModifizierer und TypMethodeBeschreibungvoidMappingStrategy.addColumn(int offset, org.apache.commons.lang3.function.FailableBiConsumer<ResultSet, T, TorqueException> setter) Methoden in org.apache.torque.om.mapper, die TorqueException auslösenModifizierer und TypMethodeBeschreibungvoidIterates through theMappingStrategy.taskslist and executes each task.BigDecimalMapper.processRow(ResultSet resultSet, int rowOffset, Criteria criteria) Maps the current row in the result to a BigDecimal.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.DateMapper.processRow(ResultSet resultSet, int rowOffset, Criteria criteria) Maps the current row in the result set to a java.util.Date.IntegerMapper.processRow(ResultSet resultSet, int rowOffset, Criteria criteria) Maps the current row in the result set to a Integer.LongMapper.processRow(ResultSet resultSet, int rowOffset, Criteria criteria) Maps the current row in the result set to a Long.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.RecordMapper.processRow(ResultSet resultSet, int rowOffset, Criteria criteria) Constructs the object from the current row in the resultSet.StringMapper.processRow(ResultSet resultSet, int rowOffset, Criteria criteria) Maps the current row in the result set to a String. -
Verwendungen von TorqueException in org.apache.torque.sql
Methoden in org.apache.torque.sql, die TorqueException auslösenModifizierer und TypMethodeBeschreibungstatic QuerySqlBuilder.buildQuery(Criteria crit) Builds a Query from a criteria.Query.getDisplayString()Returns a String to display this query.static StringSqlBuilder.getFullTableName(String table, String dbName) Fully qualify a table name with an optional schema reference.static TableMapSqlBuilder.getTableMap(String tableName, String dbName) Returns the table map for a table.static StringSqlBuilder.getUnqualifiedName(String name, String dbName) Unqualify a table or column name.static StringSqlBuilder.guessFullTableFromCriteria(Criteria criteria) Guesses a table name from a criteria by inspecting the first column in the criteria.static voidJoinBuilder.processJoins(Criteria criteria, Query query) Adds the Joins from the criteria to the query. -
Verwendungen von TorqueException in org.apache.torque.sql.objectbuilder
Methoden in org.apache.torque.sql.objectbuilder, die TorqueException auslösen -
Verwendungen von TorqueException in org.apache.torque.sql.whereclausebuilder
Methoden in org.apache.torque.sql.whereclausebuilder, die TorqueException auslösenModifizierer und TypMethodeBeschreibungCurrentDateTimePsPartBuilder.buildPs(WhereClauseExpression whereClauseExpression, boolean ignoreCase, Query query, Adapter adapter) Builds a PreparedStatementPart from a WhereClauseExpression.EnumValueBuilder.buildPs(WhereClauseExpression whereClausePart, boolean ignoreCase, Query query, Adapter adapter) Takes a WhereClauseExpression containing a enum object and unwraps the enum value.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.LikeBuilder.buildPs(WhereClauseExpression whereClausePart, boolean ignoreCase, Query query, Adapter adapter) Builds the PS part for a WhereClauseExpression with a LIKE operator.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 !StandardBuilder.buildPs(WhereClauseExpression whereClausePart, boolean ignoreCase, Query query, Adapter adapter) Builds a PreparedStatementPart from a WhereClauseExpression which RHS and LHS is a simple value.VerbatimSqlConditionBuilder.buildPs(WhereClauseExpression whereClausePart, boolean ignoreCase, Query query, Adapter adapter) Builds the PS part for a WhereClauseExpression with a verbatim SQL condition.WhereClausePsPartBuilder.buildPs(WhereClauseExpression whereClauseExpression, boolean ignoreCase, Query query, Adapter adapter) Builds a PreparedStatementPart from a WhereClauseExpression.protected ObjectEnumValueBuilder.getWrappedValue(Object wrapped) -
Verwendungen von TorqueException in org.apache.torque.util
Methoden in org.apache.torque.util, die TorqueException zurückgebenModifizierer und TypMethodeBeschreibungabstract TorqueExceptionExceptionMapper.toTorqueException(SQLException sqlException) Maps a SQLException to an appropriate TorqueException.ExceptionMapperImpl.toTorqueException(SQLException sqlException) Methoden in org.apache.torque.util, die TorqueException auslösenModifizierer und TypMethodeBeschreibungReturns the average of a column in a query.AvgHelper.avg(Criteria c, Connection conn, String columnName, TableMap tableMap) Returns the average of a column in a query.AvgHelper.avg(Criteria c, Connection conn, Column column) Returns the average of a column in a query.Returns the average of a column in a query.static TorqueConnectionTransaction.begin()Begin a transaction by retrieving a connection from the default database connection pool.static TorqueConnectionBegin a transaction by retrieving a connection from the named database connection pool.TransactionManager.begin()Begin a transaction by retrieving a connection from the default database connection pool.Begin a transaction by retrieving a connection from the named database connection pool.TransactionManagerImpl.begin()Begin a transaction by retrieving a connection from the default database connection pool.Begin a transaction by retrieving a connection from the named database connection pool.abstract ColumnValuesAbstractPeerImpl.buildColumnValues(T obj) Returns the contents of the object as ColumnValues object.SummaryHelper.buildCriteria(Criteria c) Builds the criteria to use in summarizing the information.voidTorqueConnection.close()voidTorqueConnectionImpl.close()static voidTransaction.commit(Connection con) Commit a transaction and close the connection.voidTransactionManager.commit(Connection con) Commit a transaction and close the connection.voidTransactionManagerImpl.commit(Connection con) Commit a transaction and close the connection.voidBasePeerImpl.correctBooleans(Criteria criteria) Checks all columns in the criteria to see whether booleanchar and booleanint columns are queried with a boolean.voidBasePeerImpl.correctBooleans(ColumnValues columnValues) Checks all columns in the criteria to see whether booleanchar and booleanint columns are queried with a boolean.intThe COUNT function returns the number of rows in a query.intReturns the number of rows in a query.intCountHelper.count(Criteria c, Connection conn) The COUNT function returns the number of rows in a query.intCountHelper.count(Criteria c, Connection conn, String columnName, TableMap tableMap) Returns the number of rows in a query.intCountHelper.count(Criteria c, Connection conn, Column column) Returns the number of rows in a query.intReturns the number of rows in a query.intCounts all rows in a table.intCountHelper.count(TableMap tableMap, Connection conn) Counts all rows in a table.intDeletes a row in the database.intAbstractPeerImpl.doDelete(ObjectKey<?> pk, Connection con) Deletes a row in the database.intDeletes rows from a database table.intBasePeerImpl.doDelete(Criteria criteria, Connection connection) Deletes rows from a table.ObjectKey<?>AbstractPeerImpl.doInsert(ColumnValues columnValues, Connection con) Method to do inserts.voidMethod to do insertsvoidAbstractPeerImpl.doInsert(T obj, Connection con) Method to do inserts.intExecutes a insert into...select statement.intExecutes a insert into...select statement.intBasePeerImpl.doInsert(Column[] toInsertInto, Criteria criteria, String dbName, Connection connection) Executes a insert into...select statement.intBasePeerImpl.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.Selects objects from the database which have the same content as the passed object.Selects rows from a database an maps them to objects.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.Selects objects from a database.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 SQLselectusing a PreparedStatement.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.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 SQLselectusing a PreparedStatement.AbstractPeerImpl.doSelectSingleRecord(T obj) Selects at most one object from the database which has the same content as the passed object.BasePeerImpl.doSelectSingleRecord(Criteria criteria) Selects at most one object from a database.BasePeerImpl.doSelectSingleRecord(Criteria criteria, Connection connection) Selects at most one object from a database within a transaction.<TT> TTBasePeerImpl.doSelectSingleRecord(Criteria criteria, RecordMapper<TT> mapper) Selects at most a single row from a database an maps them to objects.<TT> TTBasePeerImpl.doSelectSingleRecord(Criteria criteria, RecordMapper<TT> mapper, Connection connection) Selects at most a single row from a database an maps them to objects.intUpdates an object in the database.intAbstractPeerImpl.doUpdate(T obj, Connection con) Updates an object in the database.intBasePeerImpl.doUpdate(Criteria selectCriteria, ColumnValues updateValues) Executes an update against the database.intBasePeerImpl.doUpdate(Criteria criteria, ColumnValues updateValues, Connection connection) Executes an update against the database.intBasePeerImpl.doUpdate(ColumnValues updateValues) Convenience method used to update rows in the DB.intBasePeerImpl.doUpdate(ColumnValues updateValues, Connection connection) Convenience method used to update rows in the DB.intBasePeerImpl.executeStatement(String statementString) Utility method which executes a given sql statement as prepared statement.intBasePeerImpl.executeStatement(String statementString, String dbName, List<JdbcTypedValue> replacementValues) Utility method which executes a given sql statement as prepared statement.intBasePeerImpl.executeStatement(String statementString, String dbName, Map<String, JdbcTypedValue> replacementValues) Utility method which executes a given sql statement as prepared statement.intBasePeerImpl.executeStatement(String statementString, Connection con, List<JdbcTypedValue> replacementValues) Utility method which executes a given sql statement as prepared statement.intBasePeerImpl.executeStatement(String statementString, Connection con, Map<String, JdbcTypedValue> replacementValues) Utility method which executes a given sql statement as prepared statement.intBasePeerImpl.executeStatement(String statementString, List<JdbcTypedValue> replacementValues) Utility method which executes a given sql statement as prepared statement.intBasePeerImpl.executeStatement(String statementString, Map<String, JdbcTypedValue> replacementValues) Utility method which executes a given sql statement as prepared statement.LargeSelect.getCurrentPageResults()Provide access to the results from the current page.intLargeSelect.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.intLargeSelect.getLastRecordNoForPage()Provide the record number of the last row included on the current page.LargeSelect.getNextResults()Gets the next page of rows.LargeSelect.getPage(int pageNumber) Retrieve a specific page, if it exists.LargeSelect.getPreviousResults()Gets the previous page of rows.LargeSelect.getRecordProgressText()A convenience method that provides text showing progress through the selected rows on a record basis.voidLargeSelect.invalidateResult()Clear the query result so that the query is re-executed when the next page is retrieved.static voidTransaction.rollback(Connection con) Roll back a transaction and release the connection.voidTransactionManager.rollback(Connection con) Roll back a transaction and release the connection.voidTransactionManagerImpl.rollback(Connection con) Roll back a transaction and release the connection.protected voidSets the database name in the passed criteria to the table's default, if it is not already set.Return a list of ListOrderedMapCI objects with the results of the summary query.SummaryHelper.summarize(Criteria crit, Connection conn) Return a list of OrderedMap objects with the results of the summary query.Return a list of ListOrderedMapCI objects with the results of the summary query.SummaryHelper.summarize(Criteria crit, List<Class<?>> resultTypes, Connection conn) Return a list of ListOrderedMapCI objects with the results of the summary query.Konstruktoren in org.apache.torque.util, die TorqueException auslösenModifiziererKonstruktorBeschreibungResultsetSpliterator(RecordMapper<T> recordMapper, Criteria criteria, Statement statement, ResultSet resultSet) Constructor