Uses of Class
org.apache.torque.TorqueException

Packages that use TorqueException
org.apache.torque   
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.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.util Misc. 
 

Uses of TorqueException in org.apache.torque
 

Subclasses of TorqueException in org.apache.torque
 class NoRowsException
          This exception indicates that no rows were returned but atleast one should have been returned.
 class TooManyRowsException
          This exception indicates that more rows were returned than expected.
 

Methods in org.apache.torque that throw TorqueException
static void Torque.init(java.lang.String configFile)
          Initialization of Torque with a properties file.
static void Torque.init(org.apache.commons.configuration.Configuration conf)
          Initialization of Torque with a properties file.
static void Torque.shutdown()
          Shuts down the service.
static DatabaseMap Torque.getDatabaseMap()
          Returns the default database map information.
static DatabaseMap Torque.getDatabaseMap(java.lang.String name)
          Returns the database map information.
static java.sql.Connection Torque.getConnection()
          This method returns a Connection from the default pool.
static java.sql.Connection Torque.getConnection(java.lang.String name)
          This method returns a Connecton using the given database name.
static java.sql.Connection Torque.getConnection(java.lang.String name, java.lang.String username, java.lang.String password)
          This method returns a Connecton using the given parameters.
static DB Torque.getDB(java.lang.String name)
          Returns database adapter for a specific connection pool.
static void Torque.setSchema(java.lang.String name, java.lang.String schema)
          Sets the current schema for a database connection
static java.lang.String Torque.getSchema(java.lang.String name)
          This method returns the current schema for a database connection
 void TorqueInstance.init(java.lang.String configFile)
          Initialization of Torque with a properties file.
 void TorqueInstance.init(org.apache.commons.configuration.Configuration conf)
          Initialization of Torque with a properties file.
protected  void TorqueInstance.initManagerMappings(org.apache.commons.configuration.Configuration conf)
          Creates a mapping between classes and their manager classes.
 void TorqueInstance.shutdown()
          Shuts down the service.
 DatabaseMap TorqueInstance.getDatabaseMap()
          Returns the default database map information.
 DatabaseMap TorqueInstance.getDatabaseMap(java.lang.String name)
          Returns the database map information.
 java.sql.Connection TorqueInstance.getConnection()
          This method returns a Connection from the default pool.
 java.sql.Connection TorqueInstance.getConnection(java.lang.String name)
           
protected  DataSourceFactory TorqueInstance.getDataSourceFactory(java.lang.String name)
          Returns a DataSourceFactory
 java.sql.Connection TorqueInstance.getConnection(java.lang.String name, java.lang.String username, java.lang.String password)
          This method returns a Connecton using the given parameters.
 DB TorqueInstance.getDB(java.lang.String name)
          Returns database adapter for a specific connection pool.
 void TorqueInstance.setSchema(java.lang.String name, java.lang.String schema)
          Sets the current schema for a database connection
 java.lang.String TorqueInstance.getSchema(java.lang.String name)
          This method returns the current schema for a database connection
 

Uses of TorqueException in org.apache.torque.avalon
 

Methods in org.apache.torque.avalon that throw TorqueException
 DatabaseMap TorqueComponent.getDatabaseMap()
          Returns the default database map information.
 DatabaseMap TorqueComponent.getDatabaseMap(java.lang.String name)
          Returns the database map information.
 java.sql.Connection TorqueComponent.getConnection()
          This method returns a Connection from the default pool.
 java.sql.Connection TorqueComponent.getConnection(java.lang.String name)
           
 java.sql.Connection TorqueComponent.getConnection(java.lang.String name, java.lang.String username, java.lang.String password)
          This method returns a Connecton using the given parameters.
 DB TorqueComponent.getDB(java.lang.String name)
          Returns database adapter for a specific connection pool.
 

Uses of TorqueException in org.apache.torque.dsfactory
 

Methods in org.apache.torque.dsfactory that throw TorqueException
 void SharedPoolDataSourceFactory.initialize(org.apache.commons.configuration.Configuration configuration)
           
 void SharedPoolDataSourceFactory.close()
          Closes the pool associated with this factory and releases it.
 javax.sql.DataSource JndiDataSourceFactory.getDataSource()
           
 void JndiDataSourceFactory.initialize(org.apache.commons.configuration.Configuration configuration)
           
 void PerUserPoolDataSourceFactory.initialize(org.apache.commons.configuration.Configuration configuration)
           
 void PerUserPoolDataSourceFactory.close()
          Closes the pool associated with this factory and releases it.
protected  void AbstractDataSourceFactory.applyConfiguration(org.apache.commons.configuration.Configuration c, java.lang.Object o)
          Iterate over a Configuration subset and apply all properties to a passed object which must contain Bean setter and getter
protected  javax.sql.ConnectionPoolDataSource AbstractDataSourceFactory.initCPDS(org.apache.commons.configuration.Configuration configuration)
          Initializes the ConnectionPoolDataSource.
abstract  javax.sql.DataSource AbstractDataSourceFactory.getDataSource()
           
 void AbstractDataSourceFactory.initialize(org.apache.commons.configuration.Configuration configuration)
          Initialize the factory.
 javax.sql.DataSource DataSourceFactory.getDataSource()
           
 void DataSourceFactory.initialize(org.apache.commons.configuration.Configuration configuration)
          Initialize the factory.
 void DataSourceFactory.close()
          A hook which is called when the resources of the associated DataSource can be released.
 

Uses of TorqueException in org.apache.torque.manager
 

Methods in org.apache.torque.manager that throw TorqueException
protected  java.lang.Object NoOpMethodResultCache.putImpl(MethodCacheKey key, java.lang.Object value)
           
protected  java.lang.Object NoOpMethodResultCache.removeImpl(MethodCacheKey key)
           
protected  java.lang.Object MethodResultCache.putImpl(MethodCacheKey key, java.lang.Object value)
           
protected  java.lang.Object MethodResultCache.removeImpl(MethodCacheKey key)
           
 void AbstractBaseManager.setClassName(java.lang.String v)
          Set the classname to instantiate for getInstance()
protected  Persistent AbstractBaseManager.getOMInstance(ObjectKey id)
          Return an instance of an om based on the id
protected  Persistent AbstractBaseManager.getOMInstance(ObjectKey key, boolean fromCache)
          Return an instance of an om based on the id
protected  void AbstractBaseManager.clearImpl()
           
protected  Persistent AbstractBaseManager.removeInstanceImpl(java.io.Serializable key)
           
protected  Persistent AbstractBaseManager.putInstanceImpl(Persistent om)
           
protected  Persistent AbstractBaseManager.putInstanceImpl(java.io.Serializable key, Persistent om)
           
protected abstract  Persistent AbstractBaseManager.retrieveStoredOM(ObjectKey id)
           
protected  java.util.List AbstractBaseManager.getOMs(ObjectKey[] ids)
          Gets a list of om's based on id's.
protected  java.util.List AbstractBaseManager.getOMs(java.util.List ids)
          Gets a list of om's based on id's.
protected  java.util.List AbstractBaseManager.getOMs(java.util.List ids, boolean fromCache)
          Gets a list of om's based on id's.
protected abstract  java.util.List AbstractBaseManager.retrieveStoredOMs(java.util.List ids)
           
 void AbstractBaseManager.setRegion(java.lang.String v)
          Set the value of region.
 

Constructors in org.apache.torque.manager that throw TorqueException
NoOpMethodResultCache(org.apache.jcs.access.GroupCacheAccess cache)
           
MethodResultCache(org.apache.jcs.access.GroupCacheAccess cache)
           
 

Uses of TorqueException in org.apache.torque.oid
 

Methods in org.apache.torque.oid that throw TorqueException
 boolean IDBroker.exists(java.lang.String tableName)
          Describe exists method here.
 

Uses of TorqueException in org.apache.torque.om
 

Methods in org.apache.torque.om that throw TorqueException
 void BaseObject.setPrimaryKey(java.lang.String primaryKey)
          Sets the PrimaryKey for the object.
 void BaseObject.setPrimaryKey(SimpleKey[] primaryKey)
          Sets the PrimaryKey for the object as an Object.
 void BaseObject.setPrimaryKey(ObjectKey primaryKey)
          Sets the PrimaryKey for the object as an Object.
abstract  void ObjectKey.setValue(java.lang.String s)
          Reset the underlying object using a String.
 

Uses of TorqueException in org.apache.torque.util
 

Methods in org.apache.torque.util that throw TorqueException
static java.lang.String SQLBuilder.getFullTableName(java.lang.String table, java.lang.String dbName)
          Fully qualify a table name with an optional schema reference
static java.lang.String SQLBuilder.getTableName(java.lang.String name, java.lang.String dbName)
          Returns a table name from an identifier.
static Query SQLBuilder.buildQueryClause(Criteria crit, java.util.List params, SQLBuilder.QueryCallback qc)
          Builds a Query clause for Updating and deleting
static void SQLBuilder.throwMalformedColumnNameException(java.lang.String criteriaPhrase, java.lang.String columnName)
          Throws a TorqueException with the malformed column name error message.
static java.lang.String SqlExpression.build(java.lang.String columnName, java.lang.Object criteria, SqlEnum comparison)
          Builds a simple SQL expression.
static java.lang.String SqlExpression.build(java.lang.String columnName, java.lang.Object criteria, SqlEnum comparison, boolean ignoreCase, DB db)
          Builds a simple SQL expression.
static void LimitHelper.buildLimit(Criteria criteria, Query query)
          Update the Query object according to the limiting information available in the Criteria
static java.sql.Connection Transaction.begin(java.lang.String dbName)
          Begin a transaction.
static java.sql.Connection Transaction.beginOptional(java.lang.String dbName, boolean useTransaction)
          Begin a transaction.
static void Transaction.commit(java.sql.Connection con)
          Commit a transaction.
static void Transaction.rollback(java.sql.Connection con)
          Roll back a transaction in databases that support transactions.
 int CountHelper.count(Criteria c)
          The COUNT function returns the number of rows in a query.
 int CountHelper.count(Criteria c, java.sql.Connection conn)
          The COUNT function returns the number of rows in a query.
 int CountHelper.count(Criteria c, java.lang.String columnName)
          Returns the number of rows in a query.
 int CountHelper.count(Criteria c, java.sql.Connection conn, java.lang.String columnName)
          Returns the number of rows in a query.
static void BasePeer.deleteAll(java.sql.Connection con, java.lang.String table, java.lang.String column, int value)
          Convenience method that uses straight JDBC to delete multiple rows.
static void BasePeer.deleteAll(java.lang.String table, java.lang.String column, int value)
          Convenience method that uses straight JDBC to delete multiple rows.
static void BasePeer.doDelete(Criteria criteria)
          Method to perform deletes based on values and keys in a Criteria.
static void BasePeer.doDelete(Criteria criteria, java.sql.Connection con)
          Method to perform deletes based on values and keys in a Criteria.
static ObjectKey BasePeer.doInsert(Criteria criteria)
          Method to perform inserts based on values and keys in a Criteria.
static ObjectKey BasePeer.doInsert(Criteria criteria, java.sql.Connection con)
          Method to perform inserts based on values and keys in a Criteria.
static java.lang.String BasePeer.createQueryString(Criteria criteria)
          Method to create an SQL query for actual execution based on values in a Criteria.
static java.util.List BasePeer.doSelect(Criteria criteria)
          Returns all results.
static java.util.List BasePeer.doSelect(Criteria criteria, java.sql.Connection con)
          Returns all results.
static java.util.List BasePeer.executeQuery(java.lang.String queryString)
          Utility method which executes a given sql statement.
static java.util.List BasePeer.executeQuery(java.lang.String queryString, java.lang.String dbName)
          Utility method which executes a given sql statement.
static java.util.List BasePeer.executeQuery(java.lang.String queryString, java.lang.String dbName, boolean singleRecord)
          Method for performing a SELECT.
static java.util.List BasePeer.executeQuery(java.lang.String queryString, boolean singleRecord, java.sql.Connection con)
          Method for performing a SELECT.
static java.util.List BasePeer.executeQuery(java.lang.String queryString, int start, int numberOfResults, java.lang.String dbName, boolean singleRecord)
          Method for performing a SELECT.
static java.util.List BasePeer.executeQuery(java.lang.String queryString, int start, int numberOfResults, boolean singleRecord, java.sql.Connection con)
          Method for performing a SELECT.
static java.util.List BasePeer.getSelectResults(com.workingdogs.village.QueryDataSet qds)
          Returns all records in a QueryDataSet as a List of Record objects.
static java.util.List BasePeer.getSelectResults(com.workingdogs.village.QueryDataSet qds, boolean singleRecord)
          Returns all records in a QueryDataSet as a List of Record objects.
static java.util.List BasePeer.getSelectResults(com.workingdogs.village.QueryDataSet qds, int numberOfResults, boolean singleRecord)
          Returns numberOfResults records in a QueryDataSet as a List of Record objects.
static java.util.List BasePeer.getSelectResults(com.workingdogs.village.QueryDataSet qds, int start, int numberOfResults, boolean singleRecord)
          Returns numberOfResults records in a QueryDataSet as a List of Record objects.
static void BasePeer.doUpdate(Criteria updateValues)
          Convenience method used to update rows in the DB.
static void BasePeer.doUpdate(Criteria updateValues, java.sql.Connection con)
          Convenience method used to update rows in the DB.
static void BasePeer.doUpdate(Criteria selectCriteria, Criteria updateValues)
          Method used to update rows in the DB.
static void BasePeer.doUpdate(Criteria criteria, Criteria updateValues, java.sql.Connection con)
          Method used to update rows in the DB.
static int BasePeer.executeStatement(java.lang.String statementString)
          Utility method which executes a given sql statement.
static int BasePeer.executeStatement(java.lang.String statementString, java.lang.String dbName)
          Utility method which executes a given sql statement.
static int BasePeer.executeStatement(java.lang.String statementString, java.sql.Connection con)
          Utility method which executes a given sql statement.
protected static void BasePeer.handleMultipleRecords(com.workingdogs.village.DataSet ds)
          If the user specified that (s)he only wants to retrieve a single record and multiple records are retrieved, this method is called to handle the situation.
static MapBuilder BasePeer.getMapBuilder(java.lang.String name)
          This method returns the MapBuilder specified in the name parameter.
static java.util.List BasePeer.doPSSelect(Criteria criteria, java.sql.Connection con)
          Performs a SQL select using a PreparedStatement.
static java.util.List BasePeer.doPSSelect(Criteria criteria)
          Do a Prepared Statement select according to the given criteria
static void BasePeer.createPreparedStatement(Criteria criteria, java.lang.StringBuffer queryString, java.util.List params)
          Create a new PreparedStatement.
static void JoinBuilder.processJoins(DB db, DatabaseMap dbMap, Criteria criteria, Query query)
          adds the Joins from the criteria to the query
 java.util.List LargeSelect.getPage(int pageNumber)
          Retrieve a specific page, if it exists.
 java.util.List LargeSelect.getNextResults()
          Gets the next page of rows.
 java.util.List LargeSelect.getCurrentPageResults()
          Provide access to the results from the current page.
 java.util.List LargeSelect.getPreviousResults()
          Gets the previous page of rows.
 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.
 java.lang.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 reexecuted when the next page is retrieved.
 



Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.