|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use TorqueException | |
---|---|
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.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 | |
---|---|
Connection |
TorqueInstance.getConnection()
This method returns a Connection from the default pool. |
static Connection |
Torque.getConnection()
This method returns a Connection from the default pool. |
Connection |
TorqueInstance.getConnection(String name)
Returns a database connection to the database with the key name . |
static Connection |
Torque.getConnection(String name)
This method returns a Connecton using the given database name. |
Connection |
TorqueInstance.getConnection(String name,
String username,
String password)
This method returns a Connection using the given parameters. |
static Connection |
Torque.getConnection(String name,
String username,
String password)
This method returns a Connecton using the given parameters. |
Database |
TorqueInstance.getDatabase(String databaseName)
Returns the database for the key databaseName . |
static Database |
Torque.getDatabase(String name)
Returns the database for the given key. |
DatabaseMap |
TorqueInstance.getDatabaseMap()
Returns the default database map information. |
static DatabaseMap |
Torque.getDatabaseMap()
Returns the default database map information. |
DatabaseMap |
TorqueInstance.getDatabaseMap(String name)
Returns the database map information. |
static DatabaseMap |
Torque.getDatabaseMap(String name)
Returns the database map information. |
Map |
TorqueInstance.getDatabases()
Returns a Map containing all Databases registered to Torque. |
static Map |
Torque.getDatabases()
Returns a Map containing all Databases registered to Torque. |
DataSourceFactory |
TorqueInstance.getDataSourceFactory(String name)
Returns the DataSourceFactory for the database with the name name . |
DB |
TorqueInstance.getDB(String name)
Returns the database adapter for a specific database. |
static DB |
Torque.getDB(String name)
Returns database adapter for a specific connection pool. |
MapBuilder |
TorqueInstance.getMapBuilder(String className)
Get a MapBuilder |
static MapBuilder |
Torque.getMapBuilder(String className)
Get a MapBuilder |
String |
TorqueInstance.getSchema(String name)
This method returns the current schema for a database connection |
static String |
Torque.getSchema(String name)
This method returns the current schema for a database connection |
void |
TorqueInstance.init(org.apache.commons.configuration.Configuration conf)
Initialization of Torque with a Configuration object. |
static void |
Torque.init(org.apache.commons.configuration.Configuration conf)
Initialization of Torque with a properties file. |
void |
TorqueInstance.init(String configFile)
Initialization of Torque with a properties file. |
static void |
Torque.init(String configFile)
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.setSchema(String name,
String schema)
Sets the current schema for a database connection |
static void |
Torque.setSchema(String name,
String schema)
Sets the current schema for a database connection |
void |
TorqueInstance.shutdown()
Shuts down the service. |
static void |
Torque.shutdown()
Shuts down the service. |
Uses of TorqueException in org.apache.torque.adapter |
---|
Methods in org.apache.torque.adapter that throw TorqueException | |
---|---|
void |
DB.generateLimits(Query query,
int offset,
int limit)
This method is used to generate the database specific query extension to limit the number of record returned. |
void |
AbstractDBAdapter.generateLimits(Query query,
int offset,
int limit)
This method is used to generate the database specific query extension to limit the number of record returned. |
void |
DBSybase.generateLimits(Query query,
int offset,
int limit)
Modify a query to add limit and offset values for Sybase. |
Uses of TorqueException in org.apache.torque.avalon |
---|
Methods in org.apache.torque.avalon that throw TorqueException | |
---|---|
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 key databaseName . |
DatabaseMap |
Torque.getDatabaseMap()
Returns the default database map information. |
DatabaseMap |
Torque.getDatabaseMap(String name)
Returns the database map information. |
Map |
Torque.getDatabases()
Returns a Map containing all Databases registered to Torque. |
DB |
Torque.getDB(String name)
Returns database adapter for a specific connection pool. |
MapBuilder |
Torque.getMapBuilder(String className)
Get a MapBuilder |
String |
Torque.getSchema(String name)
This method returns the current schema for a database connection |
void |
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 | |
---|---|
protected void |
AbstractDataSourceFactory.applyConfiguration(org.apache.commons.configuration.Configuration c,
Object o)
Iterate over a Configuration subset and apply all properties to a passed object which must contain Bean setter and getter |
void |
SharedPoolDataSourceFactory.close()
Closes the pool associated with this factory and releases it. |
void |
DataSourceFactory.close()
A hook which is called when the resources of the associated DataSource can be released. |
void |
PerUserPoolDataSourceFactory.close()
Closes the pool associated with this factory and releases it. |
abstract DataSource |
AbstractDataSourceFactory.getDataSource()
|
DataSource |
DataSourceFactory.getDataSource()
|
DataSource |
JndiDataSourceFactory.getDataSource()
|
protected ConnectionPoolDataSource |
AbstractDataSourceFactory.initCPDS(org.apache.commons.configuration.Configuration configuration)
Initializes the ConnectionPoolDataSource. |
void |
SharedPoolDataSourceFactory.initialize(org.apache.commons.configuration.Configuration configuration)
|
void |
AbstractDataSourceFactory.initialize(org.apache.commons.configuration.Configuration configuration)
Initialize the factory. |
void |
DataSourceFactory.initialize(org.apache.commons.configuration.Configuration configuration)
Initialize the factory. |
void |
JndiDataSourceFactory.initialize(org.apache.commons.configuration.Configuration configuration)
|
void |
PerUserPoolDataSourceFactory.initialize(org.apache.commons.configuration.Configuration configuration)
|
Uses of TorqueException in org.apache.torque.manager |
---|
Methods in org.apache.torque.manager that throw TorqueException | |
---|---|
protected void |
AbstractBaseManager.clearImpl()
Clears the cache |
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 List |
AbstractBaseManager.getOMs(List ids)
Gets a list of om's based on id's. |
protected List |
AbstractBaseManager.getOMs(List ids,
boolean fromCache)
Gets a list of om's based on id's. |
protected List |
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 Persistent |
AbstractBaseManager.putInstanceImpl(Persistent om)
Put an object into the cache |
protected Persistent |
AbstractBaseManager.putInstanceImpl(Serializable key,
Persistent om)
Put an object into the cache |
protected Object |
MethodResultCache.removeImpl(MethodCacheKey key)
|
protected Object |
NoOpMethodResultCache.removeImpl(MethodCacheKey key)
|
protected Persistent |
AbstractBaseManager.removeInstanceImpl(Serializable key)
Remove an object from the cache |
protected abstract Persistent |
AbstractBaseManager.retrieveStoredOM(ObjectKey id)
Retrieve an object from persistent storage |
protected abstract List |
AbstractBaseManager.retrieveStoredOMs(List 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 value of region. |
Constructors in org.apache.torque.manager that throw TorqueException | |
---|---|
MethodResultCache(org.apache.jcs.access.GroupCacheAccess cache)
|
|
NoOpMethodResultCache(org.apache.jcs.access.GroupCacheAccess cache)
|
Uses of TorqueException in org.apache.torque.map |
---|
Methods in org.apache.torque.map that throw TorqueException | |
---|---|
void |
DatabaseMap.initialize()
Fully populate this DatabaseMap with all the TablesMaps. |
Uses of TorqueException in org.apache.torque.om |
---|
Methods in org.apache.torque.om that throw TorqueException | |
---|---|
TableMap |
BaseObject.getTableMap()
Retrieves the TableMap object related to this Table data. |
boolean |
BaseObject.setByName(String name,
Object value)
Set a field in the object by field (Java) name. |
boolean |
BaseObject.setByPeerName(String name,
Object value)
Set field values by Peer Field Name |
boolean |
BaseObject.setByPosition(int position,
Object value)
Set field values by it's position (zero based) in the XML schema. |
void |
BaseObject.setPrimaryKey(ObjectKey primaryKey)
Sets the PrimaryKey for the object as an Object. |
void |
BaseObject.setPrimaryKey(SimpleKey[] primaryKey)
Sets the PrimaryKey for the object as an Object. |
void |
BaseObject.setPrimaryKey(String primaryKey)
Sets the PrimaryKey for the object. |
abstract void |
ObjectKey.setValue(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 | |
---|---|
void |
Criteria.Criterion.appendTo(StringBuffer sb)
Appends a representation of the Criterion onto the buffer. |
static Connection |
Transaction.begin()
Begin a transaction for the default database. |
static Connection |
Transaction.begin(String dbName)
Begin a transaction. |
static Connection |
Transaction.beginOptional(String dbName,
boolean useTransaction)
Begin a transaction. |
static String |
SqlExpression.build(String columnName,
Object criteria,
SqlEnum comparison)
Builds a simple SQL expression. |
static String |
SqlExpression.build(String columnName,
Object criteria,
SqlEnum comparison,
boolean ignoreCase,
DB db)
Builds a simple SQL expression. |
static void |
SqlExpression.build(String columnName,
Object criteria,
SqlEnum comparison,
boolean ignoreCase,
DB db,
StringBuffer whereClause)
Builds a simple SQL expression. |
static Query |
SQLBuilder.buildQueryClause(Criteria crit,
List params,
SQLBuilder.QueryCallback qc)
Builds a Query clause for Updating and deleting |
static void |
Transaction.commit(Connection con)
Commit a transaction. |
static void |
BasePeer.correctBooleans(Criteria criteria,
TableMap defaultTableMap)
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,
Connection conn)
The COUNT function returns the number of rows in a query. |
int |
CountHelper.count(Criteria c,
Connection conn,
String columnName)
Returns the number of rows in a query. |
int |
CountHelper.count(Criteria c,
String columnName)
Returns the number of rows in a query. |
static void |
BasePeer.createPreparedStatement(Criteria criteria,
StringBuffer queryString,
List params)
Create a new PreparedStatement. |
static String |
BasePeer.createQueryString(Criteria criteria)
Method to create an SQL query for actual execution based on values in a Criteria. |
static void |
BasePeer.deleteAll(Connection con,
String table,
String column,
int value)
Convenience method that uses straight JDBC to delete multiple rows. |
static void |
BasePeer.deleteAll(String table,
String column,
int value)
Convenience method that uses straight JDBC to delete multiple rows. |
static void |
BasePeer.doDelete(Criteria criteria)
Deprecated. This method causes unexpected results when joins are used. Please use doDelete(Criteria, String). |
static void |
BasePeer.doDelete(Criteria criteria,
Connection con)
Deprecated. This method causes unexpected results when joins are used. Please use doDelete(Criteria, String, Connection). |
protected static void |
BasePeer.doDelete(Criteria criteria,
String tableName)
Method to perform deletes based on values and keys in a Criteria. |
static void |
BasePeer.doDelete(Criteria criteria,
String tableName,
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,
Connection con)
Method to perform inserts based on values and keys in a Criteria. |
static List |
BasePeer.doPSSelect(Criteria criteria)
Do a Prepared Statement select according to the given criteria |
static List |
BasePeer.doPSSelect(Criteria criteria,
Connection con)
Performs a SQL select using a PreparedStatement. |
static List |
BasePeer.doSelect(Criteria criteria)
Returns all results. |
static List |
BasePeer.doSelect(Criteria criteria,
Connection con)
Returns all results. |
static void |
BasePeer.doUpdate(Criteria updateValues)
Convenience method used to update rows in the DB. |
static void |
BasePeer.doUpdate(Criteria updateValues,
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,
Connection con)
Method used to update rows in the DB. |
static List |
BasePeer.executeQuery(String queryString)
Utility method which executes a given sql statement. |
static List |
BasePeer.executeQuery(String queryString,
boolean singleRecord,
Connection con)
Method for performing a SELECT. |
static List |
BasePeer.executeQuery(String queryString,
int start,
int numberOfResults,
boolean singleRecord,
Connection con)
Method for performing a SELECT. |
static List |
BasePeer.executeQuery(String queryString,
int start,
int numberOfResults,
String dbName,
boolean singleRecord)
Method for performing a SELECT. |
static List |
BasePeer.executeQuery(String queryString,
String dbName)
Utility method which executes a given sql statement. |
static List |
BasePeer.executeQuery(String queryString,
String dbName,
boolean singleRecord)
Method for performing a SELECT. |
static int |
BasePeer.executeStatement(String statementString)
Utility method which executes a given sql statement. |
static int |
BasePeer.executeStatement(String statementString,
Connection con)
Utility method which executes a given sql statement. |
static int |
BasePeer.executeStatement(String statementString,
String dbName)
Utility method which executes a given sql statement. |
List |
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. |
static String |
SQLBuilder.getFullTableName(String table,
String dbName)
Fully qualify a table name with an optional schema reference |
int |
LargeSelect.getLastRecordNoForPage()
Provide the record number of the last row included on the current page. |
static MapBuilder |
BasePeer.getMapBuilder(String name)
Deprecated. Use Torque.getMapBuilder(name) instead |
List |
LargeSelect.getNextResults()
Gets the next page of rows. |
List |
LargeSelect.getPage(int pageNumber)
Retrieve a specific page, if it exists. |
List |
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. |
static List |
BasePeer.getSelectResults(QueryDataSet qds)
Returns all records in a QueryDataSet as a List of Record objects. |
static List |
BasePeer.getSelectResults(QueryDataSet qds,
boolean singleRecord)
Returns all records in a QueryDataSet as a List of Record objects. |
static List |
BasePeer.getSelectResults(QueryDataSet qds,
int numberOfResults,
boolean singleRecord)
Returns numberOfResults records in a QueryDataSet as a List of Record objects. |
static List |
BasePeer.getSelectResults(QueryDataSet qds,
int start,
int numberOfResults,
boolean singleRecord)
Returns numberOfResults records in a QueryDataSet as a List of Record objects. |
static String |
SQLBuilder.getTableName(String name,
String dbName)
Returns a table name from an identifier. |
protected static void |
BasePeer.handleMultipleRecords(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. |
void |
LargeSelect.invalidateResult()
Clear the query result so that the query is reexecuted when the next page is retrieved. |
static void |
JoinBuilder.processJoins(DB db,
DatabaseMap dbMap,
Criteria criteria,
Query query)
adds the Joins from the criteria to the query |
static void |
Transaction.rollback(Connection con)
Roll back a transaction in databases that support transactions. |
static void |
SQLBuilder.throwMalformedColumnNameException(String criteriaPhrase,
String columnName)
Throws a TorqueException with the malformed column name error message. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |