The Spring Framework

Uses of Class
org.springframework.dao.DataAccessException

Packages that use DataAccessException
org.springframework.dao Exception hierarchy enabling sophisticated error handling independent of the data access approach in use. 
org.springframework.dao.support Support classes for DAO implementations, providing miscellaneous utility methods. 
org.springframework.jca.cci This package contains Spring's support for the Common Client Interface (CCI), as defined by the J2EE Connector Architecture. 
org.springframework.jca.cci.core Provides the core JCA CCI support, based on CciTemplate and its associated callback interfaces. 
org.springframework.jca.cci.object The classes in this package represent EIS operations as threadsafe, reusable objects. 
org.springframework.jdbc The classes in this package make JDBC easier to use and reduce the likelihood of common errors. 
org.springframework.jdbc.core Provides the core JDBC framework, based on JdbcTemplate and its associated callback interfaces and helper objects. 
org.springframework.jdbc.core.namedparam JdbcTemplate variant with named parameter support. 
org.springframework.jdbc.core.simple Simplification layer over JdbcTemplate for Java 5 and above. 
org.springframework.jdbc.core.support Classes supporting the org.springframework.jdbc.core package. 
org.springframework.jdbc.datasource.lookup Provides a strategy for looking up JDBC DataSources by name. 
org.springframework.jdbc.object The classes in this package represent RDBMS queries, updates, and stored procedures as threadsafe, reusable objects. 
org.springframework.jdbc.support Support classes for the JDBC framework, used by the classes in the jdbc.core and jdbc.object packages. 
org.springframework.jdbc.support.incrementer Provides a support framework for incrementing database table values via sequences, with implementations for various databases. 
org.springframework.orm Root package for Spring's O/R Mapping integration classes. 
org.springframework.orm.hibernate Package providing integration of Hibernate 2.1 with Spring concepts. 
org.springframework.orm.hibernate.support Classes supporting the org.springframework.orm.hibernate package. 
org.springframework.orm.hibernate3 Package providing integration of Hibernate3 with Spring concepts. 
org.springframework.orm.hibernate3.support Classes supporting the org.springframework.orm.hibernate3 package. 
org.springframework.orm.ibatis Package providing integration of iBATIS Database Layer with Spring concepts. 
org.springframework.orm.jdo Package providing integration of JDO (Java Date Objects) with Spring concepts. 
org.springframework.orm.jdo.support Classes supporting the org.springframework.orm.jdo package. 
org.springframework.orm.jpa Package providing integration of JPA (Java Persistence API) with Spring concepts. 
org.springframework.orm.jpa.support Classes supporting the org.springframework.orm.jpa package. 
org.springframework.orm.toplink Package providing integration of Oracle TopLink with Spring concepts. 
org.springframework.orm.toplink.support Classes supporting the org.springframework.orm.toplink package. 
org.springframework.test Superclasses for tests requiring Spring application contexts, including support for transactional execution of test cases, with automatic rollback on completion. 
 

Uses of DataAccessException in org.springframework.dao
 

Subclasses of DataAccessException in org.springframework.dao
 class CannotAcquireLockException
          Exception thrown on failure to aquire a lock during an update, for example during a "select for update" statement.
 class CannotSerializeTransactionException
          Exception thrown on failure to complete a transaction in serialized mode due to update conflicts.
 class CleanupFailureDataAccessException
          Exception thrown when we couldn't cleanup after a data access operation, but the actual operation went OK.
 class ConcurrencyFailureException
          Exception thrown on concurrency failure.
 class DataAccessResourceFailureException
          Data access exception thrown when a resource fails completely: for example, if we can't connect to a database using JDBC.
 class DataIntegrityViolationException
          Exception thrown when an attempt to insert or update data results in violation of an integrity constraint.
 class DataRetrievalFailureException
          Exception thrown if certain expected data could not be retrieved, e.g.
 class DeadlockLoserDataAccessException
          Generic exception thrown when the current process was a deadlock loser, and its transaction rolled back.
 class EmptyResultDataAccessException
          Data access exception thrown when a result was expected to have at least one row (or element) but zero rows (or elements) were actually returned.
 class IncorrectResultSizeDataAccessException
          Data access exception thrown when a result was not of the expected size, for example when expecting a single row but getting 0 or more than 1 rows.
 class IncorrectUpdateSemanticsDataAccessException
          Data access exception thrown when something unintended appears to have happened with an update, but the transaction hasn't already been rolled back.
 class InvalidDataAccessApiUsageException
          Exception thrown on incorrect usage of the API, such as failing to "compile" a query object that needed compilation before execution.
 class InvalidDataAccessResourceUsageException
          Root for exceptions thrown when we use a data access resource incorrectly.
 class OptimisticLockingFailureException
          Exception thrown on an optimistic locking violation.
 class PermissionDeniedDataAccessException
          Exception thrown when the underlying resource denied a permission to access a specific element, such as a specific database table.
 class PessimisticLockingFailureException
          Exception thrown on a pessimistic locking violation.
 class TypeMismatchDataAccessException
          Exception thrown on mismatch between Java type and database type: for example on an attempt to set an object of the wrong type in an RDBMS column.
 class UncategorizedDataAccessException
          Normal superclass when we can't distinguish anything more specific than "something went wrong with the underlying resource": for example, a SQLException from JDBC we can't pinpoint more precisely.
 

Uses of DataAccessException in org.springframework.dao.support
 

Methods in org.springframework.dao.support that return DataAccessException
 DataAccessException PersistenceExceptionTranslator.translateExceptionIfPossible(RuntimeException ex)
          Translate the given runtime exception thrown by a persistence framework to a corresponding exception from Spring's generic DataAccessException hierarchy, if possible.
 DataAccessException ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(RuntimeException ex)
           
 

Uses of DataAccessException in org.springframework.jca.cci
 

Subclasses of DataAccessException in org.springframework.jca.cci
 class CannotCreateRecordException
          Exception thrown when the creating of a CCI Record failed for connector-internal reasons.
 class CannotGetCciConnectionException
          Fatal exception thrown when we can't connect to an EIS using CCI.
 class CciOperationNotSupportedException
          Exception thrown when the connector doesn't support a specific CCI operation.
 class InvalidResultSetAccessException
          Exception thrown when a ResultSet has been accessed in an invalid fashion.
 class RecordTypeNotSupportedException
          Exception thrown when the creating of a CCI Record failed because the connector doesn't support the desired CCI Record type.
 

Uses of DataAccessException in org.springframework.jca.cci.core
 

Methods in org.springframework.jca.cci.core that throw DataAccessException
 IndexedRecord CciTemplate.createIndexedRecord(String name)
          Create an indexed Record through the ConnectionFactory's RecordFactory.
 MappedRecord CciTemplate.createMappedRecord(String name)
          Create a mapped Record from the ConnectionFactory's RecordFactory.
protected  Record CciTemplate.createRecord(RecordCreator recordCreator)
          Invoke the given RecordCreator, converting JCA ResourceExceptions to Spring's DataAccessException hierarchy.
 Record RecordCreator.createRecord(RecordFactory recordFactory)
          Create a CCI Record instance, usually based on the passed-in CCI RecordFactory.
protected  Object CciTemplate.doExecute(InteractionSpec spec, Record inputRecord, Record outputRecord, RecordExtractor outputExtractor)
          Execute the specified interaction on an EIS with CCI.
 Object ConnectionCallback.doInConnection(Connection connection, ConnectionFactory connectionFactory)
          Gets called by CciTemplate.execute with an active CCI Connection.
 Object InteractionCallback.doInInteraction(Interaction interaction, ConnectionFactory connectionFactory)
          Gets called by CciTemplate.execute with an active CCI Interaction.
 Object CciTemplate.execute(ConnectionCallback action)
           
 Object CciOperations.execute(ConnectionCallback action)
          Execute a request on an EIS with CCI, implemented as callback action working on a CCI Connection.
 Object CciTemplate.execute(InteractionCallback action)
           
 Object CciOperations.execute(InteractionCallback action)
          Execute a request on an EIS with CCI, implemented as callback action working on a CCI Interaction.
 Record CciTemplate.execute(InteractionSpec spec, Record inputRecord)
           
 Record CciOperations.execute(InteractionSpec spec, Record inputRecord)
          Execute the specified interaction on an EIS with CCI.
 Record CciTemplate.execute(InteractionSpec spec, RecordCreator inputCreator)
           
 Record CciOperations.execute(InteractionSpec spec, RecordCreator inputCreator)
          Execute the specified interaction on an EIS with CCI.
 Object CciTemplate.execute(InteractionSpec spec, RecordCreator inputCreator, RecordExtractor outputExtractor)
           
 Object CciOperations.execute(InteractionSpec spec, RecordCreator inputCreator, RecordExtractor outputExtractor)
          Execute the specified interaction on an EIS with CCI.
 void CciTemplate.execute(InteractionSpec spec, Record inputRecord, Record outputRecord)
           
 void CciOperations.execute(InteractionSpec spec, Record inputRecord, Record outputRecord)
          Execute the specified interaction on an EIS with CCI.
 Object CciTemplate.execute(InteractionSpec spec, Record inputRecord, RecordExtractor outputExtractor)
           
 Object CciOperations.execute(InteractionSpec spec, Record inputRecord, RecordExtractor outputExtractor)
          Execute the specified interaction on an EIS with CCI.
 Object RecordExtractor.extractData(Record record)
          Process the data in the given Record, creating a corresponding result object.
 

Uses of DataAccessException in org.springframework.jca.cci.object
 

Methods in org.springframework.jca.cci.object that throw DataAccessException
protected abstract  Object MappingCommAreaOperation.bytesToObject(byte[] bytes)
          Method used to convert the COMMAREA's bytes to an object.
protected abstract  Record MappingRecordOperation.createInputRecord(RecordFactory recordFactory, Object inputObject)
          Subclasses must implement this method to generate an input Record from an input object passed into the execute method.
 Record MappingRecordOperation.RecordCreatorImpl.createRecord(RecordFactory recordFactory)
           
 Object MappingRecordOperation.execute(Object inputObject)
          Execute the interaction encapsulated by this operation object.
 Record SimpleRecordOperation.execute(Record inputRecord)
          Execute the CCI interaction encapsulated by this operation object.
 void SimpleRecordOperation.execute(Record inputRecord, Record outputRecord)
          Execute the CCI interaction encapsulated by this operation object.
 Object MappingRecordOperation.RecordExtractorImpl.extractData(Record record)
           
protected abstract  Object MappingRecordOperation.extractOutputData(Record outputRecord)
          Subclasses must implement this method to convert the Record returned by CCI execution into a result object for the execute method.
protected  Object MappingCommAreaOperation.extractOutputData(Record record)
           
protected abstract  byte[] MappingCommAreaOperation.objectToBytes(Object inObject)
          Method used to convert an object into COMMAREA bytes.
 

Uses of DataAccessException in org.springframework.jdbc
 

Subclasses of DataAccessException in org.springframework.jdbc
 class BadSqlGrammarException
          Exception thrown when SQL specified is invalid.
 class CannotGetJdbcConnectionException
          Fatal exception thrown when we can't connect to an RDBMS using JDBC.
 class IncorrectResultSetColumnCountException
          Data access exception thrown when a result set did not have the correct column count, for example when expecting a single column but getting 0 or more than 1 columns.
 class JdbcUpdateAffectedIncorrectNumberOfRowsException
          Exception thrown when a JDBC update affects an unexpected number of rows.
 class LobRetrievalFailureException
          Exception to be thrown when a LOB could not be retrieved.
 class SQLWarningException
          Exception thrown when we're not ignoring SQLWarnings.
 class UncategorizedSQLException
          Exception thrown when we can't classify a SQLException into one of our generic data access exceptions.
 

Uses of DataAccessException in org.springframework.jdbc.core
 

Methods in org.springframework.jdbc.core that throw DataAccessException
 int[] JdbcTemplate.batchUpdate(String[] sql)
           
 int[] JdbcOperations.batchUpdate(String[] sql)
          Issue multiple SQL updates on a single Statement, using JDBC 2.0 batching.
 int[] JdbcTemplate.batchUpdate(String sql, BatchPreparedStatementSetter pss)
           
 int[] JdbcOperations.batchUpdate(String sql, BatchPreparedStatementSetter pss)
          Issue multiple updates on a single PreparedStatement, using JDBC 2.0 batch updates and a BatchPreparedStatementSetter to set values.
 Map JdbcTemplate.call(CallableStatementCreator csc, List declaredParameters)
           
 Map JdbcOperations.call(CallableStatementCreator csc, List declaredParameters)
          Execute a SQL call using a CallableStatementCreator to provide SQL and any required parameters.
 Object CallableStatementCallback.doInCallableStatement(CallableStatement cs)
          Gets called by JdbcTemplate.execute with an active JDBC CallableStatement.
 Object ConnectionCallback.doInConnection(Connection con)
          Gets called by JdbcTemplate.execute with an active JDBC Connection.
 Object PreparedStatementCallback.doInPreparedStatement(PreparedStatement ps)
          Gets called by JdbcTemplate.execute with an active JDBC PreparedStatement.
 Object StatementCallback.doInStatement(Statement stmt)
          Gets called by JdbcTemplate.execute with an active JDBC Statement.
 Object JdbcTemplate.execute(CallableStatementCreator csc, CallableStatementCallback action)
           
 Object JdbcOperations.execute(CallableStatementCreator csc, CallableStatementCallback action)
          Execute a JDBC data access operation, implemented as callback action working on a JDBC CallableStatement.
 Object JdbcTemplate.execute(ConnectionCallback action)
           
 Object JdbcOperations.execute(ConnectionCallback action)
          Execute a JDBC data access operation, implemented as callback action working on a JDBC Connection.
 Object JdbcTemplate.execute(PreparedStatementCreator psc, PreparedStatementCallback action)
           
 Object JdbcOperations.execute(PreparedStatementCreator psc, PreparedStatementCallback action)
          Execute a JDBC data access operation, implemented as callback action working on a JDBC PreparedStatement.
 Object JdbcTemplate.execute(StatementCallback action)
           
 Object JdbcOperations.execute(StatementCallback action)
          Execute a JDBC data access operation, implemented as callback action working on a JDBC Statement.
 void JdbcTemplate.execute(String sql)
           
 void JdbcOperations.execute(String sql)
          Issue a single SQL execute, typically a DDL statement.
 Object JdbcTemplate.execute(String callString, CallableStatementCallback action)
           
 Object JdbcOperations.execute(String callString, CallableStatementCallback action)
          Execute a JDBC data access operation, implemented as callback action working on a JDBC CallableStatement.
 Object JdbcTemplate.execute(String sql, PreparedStatementCallback action)
           
 Object JdbcOperations.execute(String sql, PreparedStatementCallback action)
          Execute a JDBC data access operation, implemented as callback action working on a JDBC PreparedStatement.
 Object ResultSetExtractor.extractData(ResultSet rs)
          Implementations must implement this method to process the entire ResultSet.
 Object JdbcTemplate.query(PreparedStatementCreator psc, PreparedStatementSetter pss, ResultSetExtractor rse)
          Query using a prepared statement, allowing for a PreparedStatementCreator and a PreparedStatementSetter.
 Object JdbcTemplate.query(PreparedStatementCreator psc, ResultSetExtractor rse)
           
 Object JdbcOperations.query(PreparedStatementCreator psc, ResultSetExtractor rse)
          Query using a prepared statement, reading the ResultSet with a ResultSetExtractor.
 void JdbcTemplate.query(PreparedStatementCreator psc, RowCallbackHandler rch)
           
 void JdbcOperations.query(PreparedStatementCreator psc, RowCallbackHandler rch)
          Query using a prepared statement, reading the ResultSet on a per-row basis with a RowCallbackHandler.
 List JdbcTemplate.query(PreparedStatementCreator psc, RowMapper rowMapper)
           
 List JdbcOperations.query(PreparedStatementCreator psc, RowMapper rowMapper)
          Query using a prepared statement, mapping each row to a Java object via a RowMapper.
 Object JdbcTemplate.query(String sql, Object[] args, int[] argTypes, ResultSetExtractor rse)
           
 Object JdbcOperations.query(String sql, Object[] args, int[] argTypes, ResultSetExtractor rse)
          Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, reading the ResultSet with a ResultSetExtractor.
 void JdbcTemplate.query(String sql, Object[] args, int[] argTypes, RowCallbackHandler rch)
           
 void JdbcOperations.query(String sql, Object[] args, int[] argTypes, RowCallbackHandler rch)
          Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, reading the ResultSet on a per-row basis with a RowCallbackHandler.
 List JdbcTemplate.query(String sql, Object[] args, int[] argTypes, RowMapper rowMapper)
           
 List JdbcOperations.query(String sql, Object[] args, int[] argTypes, RowMapper rowMapper)
          Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, mapping each row to a Java object via a RowMapper.
 Object JdbcTemplate.query(String sql, Object[] args, ResultSetExtractor rse)
           
 Object JdbcOperations.query(String sql, Object[] args, ResultSetExtractor rse)
          Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, reading the ResultSet with a ResultSetExtractor.
 void JdbcTemplate.query(String sql, Object[] args, RowCallbackHandler rch)
           
 void JdbcOperations.query(String sql, Object[] args, RowCallbackHandler rch)
          Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, reading the ResultSet on a per-row basis with a RowCallbackHandler.
 List JdbcTemplate.query(String sql, Object[] args, RowMapper rowMapper)
           
 List JdbcOperations.query(String sql, Object[] args, RowMapper rowMapper)
          Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, mapping each row to a Java object via a RowMapper.
 Object JdbcTemplate.query(String sql, PreparedStatementSetter pss, ResultSetExtractor rse)
           
 Object JdbcOperations.query(String sql, PreparedStatementSetter pss, ResultSetExtractor rse)
          Query using a prepared statement, reading the ResultSet with a ResultSetExtractor.
 void JdbcTemplate.query(String sql, PreparedStatementSetter pss, RowCallbackHandler rch)
           
 void JdbcOperations.query(String sql, PreparedStatementSetter pss, RowCallbackHandler rch)
          Query given SQL to create a prepared statement from SQL and a PreparedStatementSetter implementation that knows how to bind values to the query, reading the ResultSet on a per-row basis with a RowCallbackHandler.
 List JdbcTemplate.query(String sql, PreparedStatementSetter pss, RowMapper rowMapper)
           
 List JdbcOperations.query(String sql, PreparedStatementSetter pss, RowMapper rowMapper)
          Query given SQL to create a prepared statement from SQL and a PreparedStatementSetter implementation that knows how to bind values to the query, mapping each row to a Java object via a RowMapper.
 Object JdbcTemplate.query(String sql, ResultSetExtractor rse)
           
 Object JdbcOperations.query(String sql, ResultSetExtractor rse)
          Execute a query given static SQL, reading the ResultSet with a ResultSetExtractor.
 void JdbcTemplate.query(String sql, RowCallbackHandler rch)
           
 void JdbcOperations.query(String sql, RowCallbackHandler rch)
          Execute a query given static SQL, reading the ResultSet on a per-row basis with a RowCallbackHandler.
 List JdbcTemplate.query(String sql, RowMapper rowMapper)
           
 List JdbcOperations.query(String sql, RowMapper rowMapper)
          Execute a query given static SQL, mapping each row to a Java object via a RowMapper.
 int JdbcTemplate.queryForInt(String sql)
           
 int JdbcOperations.queryForInt(String sql)
          Execute a query that results in an int value, given static SQL.
 int JdbcTemplate.queryForInt(String sql, Object[] args)
           
 int JdbcOperations.queryForInt(String sql, Object[] args)
          Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, resulting in an int value.
 int JdbcTemplate.queryForInt(String sql, Object[] args, int[] argTypes)
           
 int JdbcOperations.queryForInt(String sql, Object[] args, int[] argTypes)
          Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, resulting in an int value.
 List JdbcTemplate.queryForList(String sql)
           
 List JdbcOperations.queryForList(String sql)
          Execute a query for a result list, given static SQL.
 List JdbcTemplate.queryForList(String sql, Class elementType)
           
 List JdbcOperations.queryForList(String sql, Class elementType)
          Execute a query for a result list, given static SQL.
 List JdbcTemplate.queryForList(String sql, Object[] args)
           
 List JdbcOperations.queryForList(String sql, Object[] args)
          Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, expecting a result list.
 List JdbcTemplate.queryForList(String sql, Object[] args, Class elementType)
           
 List JdbcOperations.queryForList(String sql, Object[] args, Class elementType)
          Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, expecting a result list.
 List JdbcTemplate.queryForList(String sql, Object[] args, int[] argTypes)
           
 List JdbcOperations.queryForList(String sql, Object[] args, int[] argTypes)
          Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, expecting a result list.
 List JdbcTemplate.queryForList(String sql, Object[] args, int[] argTypes, Class elementType)
           
 List JdbcOperations.queryForList(String sql, Object[] args, int[] argTypes, Class elementType)
          Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, expecting a result list.
 long JdbcTemplate.queryForLong(String sql)
           
 long JdbcOperations.queryForLong(String sql)
          Execute a query that results in a long value, given static SQL.
 long JdbcTemplate.queryForLong(String sql, Object[] args)
           
 long JdbcOperations.queryForLong(String sql, Object[] args)
          Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, resulting in a long value.
 long JdbcTemplate.queryForLong(String sql, Object[] args, int[] argTypes)
           
 long JdbcOperations.queryForLong(String sql, Object[] args, int[] argTypes)
          Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, resulting in a long value.
 Map JdbcTemplate.queryForMap(String sql)
           
 Map JdbcOperations.queryForMap(String sql)
          Execute a query for a result Map, given static SQL.
 Map JdbcTemplate.queryForMap(String sql, Object[] args)
           
 Map JdbcOperations.queryForMap(String sql, Object[] args)
          Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, expecting a result Map.