Package | Description |
---|---|
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.support |
Classes supporting the
org.springframework.jdbc.core package. |
org.springframework.jdbc.datasource.init |
Provides extensible support for initializing databases through scripts.
|
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.jdbc.support.xml |
Abstraction for handling fields of SQLXML data type.
|
org.springframework.orm |
Root package for Spring's O/R Mapping integration classes.
|
org.springframework.orm.hibernate5 |
Package providing integration of
Hibernate 5.x
with Spring concepts.
|
org.springframework.orm.hibernate5.support |
Classes supporting the
org.springframework.orm.hibernate5 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.jpa.vendor |
Support classes for adapting to specific JPA vendors.
|
org.springframework.test.context.junit4 |
Support classes for integrating the Spring TestContext Framework
with JUnit 4.12 or higher.
|
org.springframework.test.context.testng |
Support classes for ApplicationContext-based and transactional
tests run with TestNG and the Spring TestContext Framework.
|
Modifier and Type | Class and Description |
---|---|
class |
CannotAcquireLockException
Exception thrown on failure to acquire 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 |
DuplicateKeyException
Exception thrown when an attempt to insert or update data
results in violation of an primary key or unique constraint.
|
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 |
NonTransientDataAccessException
Root of the hierarchy of data access exceptions that are considered non-transient -
where a retry of the same operation would fail unless the cause of the Exception
is corrected.
|
class |
NonTransientDataAccessResourceException
Data access exception thrown when a resource fails completely and the failure is permanent.
|
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 |
QueryTimeoutException
Exception to be thrown on a query timeout.
|
class |
RecoverableDataAccessException
Data access exception thrown when a previously failed operation might be able
to succeed if the application performs some recovery steps and retries the entire
transaction or in the case of a distributed transaction, the transaction branch.
|
class |
TransientDataAccessException
Root of the hierarchy of data access exceptions that are considered transient -
where a previously failed operation might be able to succeed when the operation
is retried without any intervention by application-level functionality.
|
class |
TransientDataAccessResourceException
Data access exception thrown when a resource fails temporarily
and the operation can be retried.
|
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.
|
Modifier and Type | Method and Description |
---|---|
DataAccessException |
ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(java.lang.RuntimeException ex) |
DataAccessException |
PersistenceExceptionTranslator.translateExceptionIfPossible(java.lang.RuntimeException ex)
Translate the given runtime exception thrown by a persistence framework to a
corresponding exception from Spring's generic
DataAccessException hierarchy, if possible. |
Modifier and Type | Class and Description |
---|---|
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 |
RecordTypeNotSupportedException
Exception thrown when the creating of a CCI Record failed because
the connector doesn't support the desired CCI Record type.
|
Modifier and Type | Method and Description |
---|---|
IndexedRecord |
CciTemplate.createIndexedRecord(java.lang.String name)
Create an indexed Record through the ConnectionFactory's RecordFactory.
|
MappedRecord |
CciTemplate.createMappedRecord(java.lang.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 <T> T |
CciTemplate.doExecute(InteractionSpec spec,
Record inputRecord,
Record outputRecord,
RecordExtractor<T> outputExtractor)
Execute the specified interaction on an EIS with CCI.
|
T |
ConnectionCallback.doInConnection(Connection connection,
ConnectionFactory connectionFactory)
Gets called by
CciTemplate.execute with an active CCI Connection. |
T |
InteractionCallback.doInInteraction(Interaction interaction,
ConnectionFactory connectionFactory)
Gets called by
CciTemplate.execute with an active CCI Interaction. |
<T> T |
CciOperations.execute(ConnectionCallback<T> action)
Execute a request on an EIS with CCI, implemented as callback action
working on a CCI Connection.
|
<T> T |
CciTemplate.execute(ConnectionCallback<T> action) |
<T> T |
CciOperations.execute(InteractionCallback<T> action)
Execute a request on an EIS with CCI, implemented as callback action
working on a CCI Interaction.
|
<T> T |
CciTemplate.execute(InteractionCallback<T> action) |
Record |
CciOperations.execute(InteractionSpec spec,
Record inputRecord)
Execute the specified interaction on an EIS with CCI.
|
Record |
CciTemplate.execute(InteractionSpec spec,
Record inputRecord) |
Record |
CciOperations.execute(InteractionSpec spec,
RecordCreator inputCreator)
Execute the specified interaction on an EIS with CCI.
|
Record |
CciTemplate.execute(InteractionSpec spec,
RecordCreator inputCreator) |
<T> T |
CciOperations.execute(InteractionSpec spec,
RecordCreator inputCreator,
RecordExtractor<T> outputExtractor)
Execute the specified interaction on an EIS with CCI.
|
<T> T |
CciTemplate.execute(InteractionSpec spec,
RecordCreator inputCreator,
RecordExtractor<T> outputExtractor) |
void |
CciOperations.execute(InteractionSpec spec,
Record inputRecord,
Record outputRecord)
Execute the specified interaction on an EIS with CCI.
|
void |
CciTemplate.execute(InteractionSpec spec,
Record inputRecord,
Record outputRecord) |
<T> T |
CciOperations.execute(InteractionSpec spec,
Record inputRecord,
RecordExtractor<T> outputExtractor)
Execute the specified interaction on an EIS with CCI.
|
<T> T |
CciTemplate.execute(InteractionSpec spec,
Record inputRecord,
RecordExtractor<T> outputExtractor) |
T |
RecordExtractor.extractData(Record record)
Process the data in the given Record, creating a corresponding result object.
|
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.Object |
MappingCommAreaOperation.bytesToObject(byte[] bytes)
Method used to convert the COMMAREA's bytes to an object.
|
protected abstract Record |
MappingRecordOperation.createInputRecord(RecordFactory recordFactory,
java.lang.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) |
java.lang.Object |
MappingRecordOperation.execute(java.lang.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.
|
java.lang.Object |
MappingRecordOperation.RecordExtractorImpl.extractData(Record record) |
protected java.lang.Object |
MappingCommAreaOperation.extractOutputData(Record record) |
protected abstract java.lang.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 abstract byte[] |
MappingCommAreaOperation.objectToBytes(java.lang.Object inObject)
Method used to convert an object into COMMAREA bytes.
|
Modifier and Type | Class and Description |
---|---|
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 |
InvalidResultSetAccessException
Exception thrown when a ResultSet has been accessed in an invalid fashion.
|
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.
|
Modifier and Type | Method and Description |
---|---|
protected DataAccessException |
JdbcTemplate.translateException(java.lang.String task,
java.lang.String sql,
java.sql.SQLException ex)
Translate the given
SQLException into a generic DataAccessException . |
Modifier and Type | Method and Description |
---|---|
int[] |
JdbcTemplate.batchUpdate(java.lang.String... sql) |
int[] |
JdbcOperations.batchUpdate(java.lang.String... sql)
Issue multiple SQL updates on a single JDBC Statement using batching.
|
int[] |
JdbcTemplate.batchUpdate(java.lang.String sql,
BatchPreparedStatementSetter pss) |
int[] |
JdbcOperations.batchUpdate(java.lang.String sql,
BatchPreparedStatementSetter pss)
Issue multiple update statements on a single PreparedStatement,
using batch updates and a BatchPreparedStatementSetter to set values.
|
<T> int[][] |
JdbcTemplate.batchUpdate(java.lang.String sql,
java.util.Collection<T> batchArgs,
int batchSize,
ParameterizedPreparedStatementSetter<T> pss) |
<T> int[][] |
JdbcOperations.batchUpdate(java.lang.String sql,
java.util.Collection<T> batchArgs,
int batchSize,
ParameterizedPreparedStatementSetter<T> pss)
Execute multiple batches using the supplied SQL statement with the collect of supplied arguments.
|
int[] |
JdbcTemplate.batchUpdate(java.lang.String sql,
java.util.List<java.lang.Object[]> batchArgs) |
int[] |
JdbcOperations.batchUpdate(java.lang.String sql,
java.util.List<java.lang.Object[]> batchArgs)
Execute a batch using the supplied SQL statement with the batch of supplied arguments.
|
int[] |
JdbcTemplate.batchUpdate(java.lang.String sql,
java.util.List<java.lang.Object[]> batchArgs,
int[] argTypes) |
int[] |
JdbcOperations.batchUpdate(java.lang.String sql,
java.util.List<java.lang.Object[]> batchArgs,
int[] argTypes)
Execute a batch using the supplied SQL statement with the batch of supplied arguments.
|
java.util.Map<java.lang.String,java.lang.Object> |
JdbcTemplate.call(CallableStatementCreator csc,
java.util.List<SqlParameter> declaredParameters) |
java.util.Map<java.lang.String,java.lang.Object> |
JdbcOperations.call(CallableStatementCreator csc,
java.util.List<SqlParameter> declaredParameters)
Execute a SQL call using a CallableStatementCreator to provide SQL and any
required parameters.
|
T |
CallableStatementCallback.doInCallableStatement(java.sql.CallableStatement cs)
Gets called by
JdbcTemplate.execute with an active JDBC
CallableStatement. |
T |
ConnectionCallback.doInConnection(java.sql.Connection con)
Gets called by
JdbcTemplate.execute with an active JDBC
Connection. |
T |
PreparedStatementCallback.doInPreparedStatement(java.sql.PreparedStatement ps)
Gets called by
JdbcTemplate.execute with an active JDBC
PreparedStatement. |
T |
StatementCallback.doInStatement(java.sql.Statement stmt)
Gets called by
JdbcTemplate.execute with an active JDBC
Statement. |
<T> T |
JdbcTemplate.execute(CallableStatementCreator csc,
CallableStatementCallback<T> action) |
<T> T |
JdbcOperations.execute(CallableStatementCreator csc,
CallableStatementCallback<T> action)
Execute a JDBC data access operation, implemented as callback action
working on a JDBC CallableStatement.
|
<T> T |
JdbcTemplate.execute(ConnectionCallback<T> action) |
<T> T |
JdbcOperations.execute(ConnectionCallback<T> action)
Execute a JDBC data access operation, implemented as callback action
working on a JDBC Connection.
|
<T> T |
JdbcTemplate.execute(PreparedStatementCreator psc,
PreparedStatementCallback<T> action) |
<T> T |
JdbcOperations.execute(PreparedStatementCreator psc,
PreparedStatementCallback<T> action)
Execute a JDBC data access operation, implemented as callback action
working on a JDBC PreparedStatement.
|
<T> T |
JdbcTemplate.execute(StatementCallback<T> action) |
<T> T |
JdbcOperations.execute(StatementCallback<T> action)
Execute a JDBC data access operation, implemented as callback action
working on a JDBC Statement.
|
void |
JdbcTemplate.execute(java.lang.String sql) |
void |
JdbcOperations.execute(java.lang.String sql)
Issue a single SQL execute, typically a DDL statement.
|
<T> T |
JdbcTemplate.execute(java.lang.String callString,
CallableStatementCallback<T> action) |
<T> T |
JdbcOperations.execute(java.lang.String callString,
CallableStatementCallback<T> action)
Execute a JDBC data access operation, implemented as callback action
working on a JDBC CallableStatement.
|
<T> T |
JdbcTemplate.execute(java.lang.String sql,
PreparedStatementCallback<T> action) |
<T> T |
JdbcOperations.execute(java.lang.String sql,
PreparedStatementCallback<T> action)
Execute a JDBC data access operation, implemented as callback action
working on a JDBC PreparedStatement.
|
T |
ResultSetExtractor.extractData(java.sql.ResultSet rs)
Implementations must implement this method to process the entire ResultSet.
|
<T> T |
JdbcTemplate.query(PreparedStatementCreator psc,
PreparedStatementSetter pss,
ResultSetExtractor<T> rse)
Query using a prepared statement, allowing for a PreparedStatementCreator
and a PreparedStatementSetter.
|
<T> T |
JdbcTemplate.query(PreparedStatementCreator psc,
ResultSetExtractor<T> rse) |
<T> T |
JdbcOperations.query(PreparedStatementCreator psc,
ResultSetExtractor<T> 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.
|
<T> java.util.List<T> |
JdbcTemplate.query(PreparedStatementCreator psc,
RowMapper<T> rowMapper) |
<T> java.util.List<T> |
JdbcOperations.query(PreparedStatementCreator psc,
RowMapper<T> rowMapper)
Query using a prepared statement, mapping each row to a Java object
via a RowMapper.
|
<T> T |
JdbcTemplate.query(java.lang.String sql,
java.lang.Object[] args,
int[] argTypes,
ResultSetExtractor<T> rse) |
<T> T |
JdbcOperations.query(java.lang.String sql,
java.lang.Object[] args,
int[] argTypes,
ResultSetExtractor<T> 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(java.lang.String sql,
java.lang.Object[] args,
int[] argTypes,
RowCallbackHandler rch) |
void |
JdbcOperations.query(java.lang.String sql,
java.lang.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.
|
<T> java.util.List<T> |
JdbcTemplate.query(java.lang.String sql,
java.lang.Object[] args,
int[] argTypes,
RowMapper<T> rowMapper) |
<T> java.util.List<T> |
JdbcOperations.query(java.lang.String sql,
java.lang.Object[] args,
int[] argTypes,
RowMapper<T> 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.
|
<T> T |
JdbcTemplate.query(java.lang.String sql,
java.lang.Object[] args,
ResultSetExtractor<T> rse) |
<T> T |
JdbcOperations.query(java.lang.String sql,
java.lang.Object[] args,
ResultSetExtractor<T> 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(java.lang.String sql,
java.lang.Object[] args,
RowCallbackHandler rch) |
void |
JdbcOperations.query(java.lang.String sql,
java.lang.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.
|
<T> java.util.List<T> |
JdbcTemplate.query(java.lang.String sql,
java.lang.Object[] args,
RowMapper<T> rowMapper) |
<T> java.util.List<T> |
JdbcOperations.query(java.lang.String sql,
java.lang.Object[] args,
RowMapper<T> 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.
|
<T> T |
JdbcTemplate.query(java.lang.String sql,
PreparedStatementSetter pss,
ResultSetExtractor<T> rse) |
<T> T |
JdbcOperations.query(java.lang.String sql,
PreparedStatementSetter pss,
ResultSetExtractor<T> rse)
Query using a prepared statement, reading the ResultSet with a
ResultSetExtractor.
|
void |
JdbcTemplate.query(java.lang.String sql,
PreparedStatementSetter pss,
RowCallbackHandler rch) |
void |
JdbcOperations.query(java.lang.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.
|
<T> java.util.List<T> |
JdbcTemplate.query(java.lang.String sql,
PreparedStatementSetter pss,
RowMapper<T> rowMapper) |
<T> java.util.List<T> |
JdbcOperations.query(java.lang.String sql,
PreparedStatementSetter pss,
RowMapper<T> 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.
|
<T> T |
JdbcTemplate.query(java.lang.String sql,
ResultSetExtractor<T> rse) |
<T> T |
JdbcOperations.query(java.lang.String sql,
ResultSetExtractor<T> rse)
Execute a query given static SQL, reading the ResultSet with a
ResultSetExtractor.
|
<T> T |
JdbcTemplate.query(java.lang.String sql,
ResultSetExtractor<T> rse,
java.lang.Object... args) |
<T> T |
JdbcOperations.query(java.lang.String sql,
ResultSetExtractor<T> rse,
java.lang.Object... args)
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(java.lang.String sql,
RowCallbackHandler rch) |
void |
JdbcOperations.query(java.lang.String sql,
RowCallbackHandler rch)
Execute a query given static SQL, reading the ResultSet on a per-row
basis with a RowCallbackHandler.
|
void |
JdbcTemplate.query(java.lang.String sql,
RowCallbackHandler rch,
java.lang.Object... args) |
void |
JdbcOperations.query(java.lang.String sql,
RowCallbackHandler rch,
java.lang.Object... args)
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.
|
<T> java.util.List<T> |
JdbcTemplate.query(java.lang.String sql,
RowMapper<T> rowMapper) |
<T> java.util.List<T> |
JdbcOperations.query(java.lang.String sql,
RowMapper<T> rowMapper)
Execute a query given static SQL, mapping each row to a Java object
via a RowMapper.
|
<T> java.util.List<T> |
JdbcTemplate.query(java.lang.String sql,
RowMapper<T> rowMapper,
java.lang.Object... args) |
<T> java.util.List<T> |
JdbcOperations.query(java.lang.String sql,
RowMapper<T> rowMapper,
java.lang.Object... args)
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.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
JdbcTemplate.queryForList(java.lang.String sql) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
JdbcOperations.queryForList(java.lang.String sql)
Execute a query for a result list, given static SQL.
|
<T> java.util.List<T> |
JdbcTemplate.queryForList(java.lang.String sql,
java.lang.Class<T> elementType) |
<T> java.util.List<T> |
JdbcOperations.queryForList(java.lang.String sql,
java.lang.Class<T> elementType)
Execute a query for a result list, given static SQL.
|
<T> java.util.List<T> |
JdbcTemplate.queryForList(java.lang.String sql,
java.lang.Class<T> elementType,
java.lang.Object... args) |
<T> java.util.List<T> |
JdbcOperations.queryForList(java.lang.String sql,
java.lang.Class<T> elementType,
java.lang.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.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
JdbcTemplate.queryForList(java.lang.String sql,
java.lang.Object... args) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
JdbcOperations.queryForList(java.lang.String sql,
java.lang.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.
|
<T> java.util.List<T> |
JdbcTemplate.queryForList(java.lang.String sql,
java.lang.Object[] args,
java.lang.Class<T> elementType) |
<T> java.util.List<T> |
JdbcOperations.queryForList(java.lang.String sql,
java.lang.Object[] args,
java.lang.Class<T> 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.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
JdbcTemplate.queryForList(java.lang.String sql,
java.lang.Object[] args,
int[] argTypes) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
JdbcOperations.queryForList(java.lang.String sql,
java.lang.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.
|
<T> java.util.List<T> |
JdbcTemplate.queryForList(java.lang.String sql,
java.lang.Object[] args,
int[] argTypes,
java.lang.Class<T> elementType) |
<T> java.util.List<T> |
JdbcOperations.queryForList(java.lang.String sql,
java.lang.Object[] args,
int[] argTypes,
java.lang.Class<T> 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.
|
java.util.Map<java.lang.String,java.lang.Object> |
JdbcTemplate.queryForMap(java.lang.String sql) |
java.util.Map<java.lang.String,java.lang.Object> |
JdbcOperations.queryForMap(java.lang.String sql)
Execute a query for a result Map, given static SQL.
|
java.util.Map<java.lang.String,java.lang.Object> |
JdbcTemplate.queryForMap(java.lang.String sql,
java.lang.Object... args) |
java.util.Map<java.lang.String,java.lang.Object> |
JdbcOperations.queryForMap(java.lang.String sql,
java.lang.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.
|
java.util.Map<java.lang.String,java.lang.Object> |
JdbcTemplate.queryForMap(java.lang.String sql,
java.lang.Object[] args,
int[] argTypes) |
java.util.Map<java.lang.String,java.lang.Object> |
JdbcOperations.queryForMap(java.lang.String sql,
java.lang.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 Map.
|
<T> T |
JdbcTemplate.queryForObject(java.lang.String sql,
java.lang.Class<T> requiredType) |
<T> T |
JdbcOperations.queryForObject(java.lang.String sql,
java.lang.Class<T> requiredType)
Execute a query for a result object, given static SQL.
|
<T> T |
JdbcTemplate.queryForObject(java.lang.String sql,
java.lang.Class<T> requiredType,
java.lang.Object... args) |
<T> T |
JdbcOperations.queryForObject(java.lang.String sql,
java.lang.Class<T> requiredType,
java.lang.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 object.
|
<T> T |
JdbcTemplate.queryForObject(java.lang.String sql,
java.lang.Object[] args,
java.lang.Class<T> requiredType) |
<T> T |
JdbcOperations.queryForObject(java.lang.String sql,
java.lang.Object[] args,
java.lang.Class<T> requiredType)
Query given SQL to create a prepared statement from SQL and a
list of arguments to bind to the query, expecting a result object.
|
<T> T |
JdbcTemplate.queryForObject(java.lang.String sql,
java.lang.Object[] args,
int[] argTypes,
java.lang.Class<T> requiredType) |
<T> T |
JdbcOperations.queryForObject(java.lang.String sql,
java.lang.Object[] args,
int[] argTypes,
java.lang.Class<T> requiredType)
Query given SQL to create a prepared statement from SQL and a
list of arguments to bind to the query, expecting a result object.
|
<T> T |
JdbcTemplate.queryForObject(java.lang.String sql,
java.lang.Object[] args,
int[] argTypes,
RowMapper<T> rowMapper) |
<T> T |
JdbcOperations.queryForObject(java.lang.String sql,
java.lang.Object[] args,
int[] argTypes,
RowMapper<T> rowMapper)
Query given SQL to create a prepared statement from SQL and a list
of arguments to bind to the query, mapping a single result row to a
Java object via a RowMapper.
|
<T> T |
JdbcTemplate.queryForObject(java.lang.String sql,
java.lang.Object[] args,
RowMapper<T> rowMapper) |
<T> T |
JdbcOperations.queryForObject(java.lang.String sql,
java.lang.Object[] args,
RowMapper<T> rowMapper)
Query given SQL to create a prepared statement from SQL and a list
of arguments to bind to the query, mapping a single result row to a
Java object via a RowMapper.
|
<T> T |
JdbcTemplate.queryForObject(java.lang.String sql,
RowMapper<T> rowMapper) |
<T> T |
JdbcOperations.queryForObject(java.lang.String sql,
RowMapper<T> rowMapper)
Execute a query given static SQL, mapping a single result row to a Java
object via a RowMapper.
|
<T> T |
JdbcTemplate.queryForObject(java.lang.String sql,
RowMapper<T> rowMapper,
java.lang.Object... args) |
<T> T |
JdbcOperations.queryForObject(java.lang.String sql,
RowMapper<T> rowMapper,
java.lang.Object... args)
Query given SQL to create a prepared statement from SQL and a list
of arguments to bind to the query, mapping a single result row to a
Java object via a RowMapper.
|
SqlRowSet |
JdbcTemplate.queryForRowSet(java.lang.String sql) |
SqlRowSet |
JdbcOperations.queryForRowSet(java.lang.String sql)
Execute a query for a SqlRowSet, given static SQL.
|
SqlRowSet |
JdbcTemplate.queryForRowSet(java.lang.String sql,
java.lang.Object... args) |
SqlRowSet |
JdbcOperations.queryForRowSet(java.lang.String sql,
java.lang.Object... args)
Query given SQL to create a prepared statement from SQL and a
list of arguments to bind to the query, expecting a SqlRowSet.
|
SqlRowSet |
JdbcTemplate.queryForRowSet(java.lang.String sql,
java.lang.Object[] args,
int[] argTypes) |
SqlRowSet |
JdbcOperations.queryForRowSet(java.lang.String sql,
java.lang.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 SqlRowSet.
|
int |
JdbcTemplate.update(PreparedStatementCreator psc) |
int |
JdbcOperations.update(PreparedStatementCreator psc)
Issue a single SQL update operation (such as an insert, update or delete statement)
using a PreparedStatementCreator to provide SQL and any required parameters.
|
int |
JdbcTemplate.update(PreparedStatementCreator psc,
KeyHolder generatedKeyHolder) |
int |
JdbcOperations.update(PreparedStatementCreator psc,
KeyHolder generatedKeyHolder)
Issue an update statement using a PreparedStatementCreator to provide SQL and
any required parameters.
|
protected int |
JdbcTemplate.update(PreparedStatementCreator psc,
PreparedStatementSetter pss) |
int |
JdbcTemplate.update(java.lang.String sql) |
int |
JdbcOperations.update(java.lang.String sql)
Issue a single SQL update operation (such as an insert, update or delete statement).
|
int |
JdbcTemplate.update(java.lang.String sql,
java.lang.Object... args) |
int |
JdbcOperations.update(java.lang.String sql,
java.lang.Object... args)
Issue a single SQL update operation (such as an insert, update or delete statement)
via a prepared statement, binding the given arguments.
|
int |
JdbcTemplate.update(java.lang.String sql,
java.lang.Object[] args,
int[] argTypes) |
int |
JdbcOperations.update(java.lang.String sql,
java.lang.Object[] args,
int[] argTypes)
Issue a single SQL update operation (such as an insert, update or delete statement)
via a prepared statement, binding the given arguments.
|
int |
JdbcTemplate.update(java.lang.String sql,
PreparedStatementSetter pss) |
int |
JdbcOperations.update(java.lang.String sql,
PreparedStatementSetter pss)
Issue an update statement using a PreparedStatementSetter to set bind parameters,
with given SQL.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
NamedParameterJdbcOperations.execute(java.lang.String sql,
java.util.Map<java.lang.String,?> paramMap,
PreparedStatementCallback<T> action)
Execute a JDBC data access operation, implemented as callback action
working on a JDBC PreparedStatement.
|
<T> T |
NamedParameterJdbcTemplate.execute(java.lang.String sql,
java.util.Map<java.lang.String,?> paramMap,
PreparedStatementCallback<T> action) |
<T> T |
NamedParameterJdbcOperations.execute(java.lang.String sql,
PreparedStatementCallback<T> action)
Execute a JDBC data access operation, implemented as callback action
working on a JDBC PreparedStatement.
|
<T> T |
NamedParameterJdbcTemplate.execute(java.lang.String sql,
PreparedStatementCallback<T> action) |
<T> T |
NamedParameterJdbcOperations.execute(java.lang.String sql,
SqlParameterSource paramSource,
PreparedStatementCallback<T> action)
Execute a JDBC data access operation, implemented as callback action
working on a JDBC PreparedStatement.
|
<T> T |
NamedParameterJdbcTemplate.execute(java.lang.String sql,
SqlParameterSource paramSource,
PreparedStatementCallback<T> action) |
<T> T |
NamedParameterJdbcOperations.query(java.lang.String sql,
java.util.Map<java.lang.String,?> paramMap,
ResultSetExtractor<T> 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.
|
<T> T |
NamedParameterJdbcTemplate.query(java.lang.String sql,
java.util.Map<java.lang.String,?> paramMap,
ResultSetExtractor<T> rse) |
void |
NamedParameterJdbcOperations.query(java.lang.String sql,
java.util.Map<java.lang.String,?> paramMap,
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.
|
void |
NamedParameterJdbcTemplate.query(java.lang.String sql,
java.util.Map<java.lang.String,?> paramMap,
RowCallbackHandler rch) |
<T> java.util.List<T> |
NamedParameterJdbcOperations.query(java.lang.String sql,
java.util.Map<java.lang.String,?> paramMap,
RowMapper<T> 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.
|
<T> java.util.List<T> |
NamedParameterJdbcTemplate.query(java.lang.String sql,
java.util.Map<java.lang.String,?> paramMap,
RowMapper<T> rowMapper) |
<T> T |
NamedParameterJdbcOperations.query(java.lang.String sql,
ResultSetExtractor<T> rse)
Query given SQL to create a prepared statement from SQL,
reading the ResultSet with a ResultSetExtractor.
|
<T> T |
NamedParameterJdbcTemplate.query(java.lang.String sql,
ResultSetExtractor<T> rse) |
void |
NamedParameterJdbcOperations.query(java.lang.String sql,
RowCallbackHandler rch)
Query given SQL to create a prepared statement from SQL,
reading the ResultSet on a per-row basis with a RowCallbackHandler.
|
void |
NamedParameterJdbcTemplate.query(java.lang.String sql,
RowCallbackHandler rch) |
<T> java.util.List<T> |
NamedParameterJdbcOperations.query(java.lang.String sql,
RowMapper<T> rowMapper)
Query given SQL to create a prepared statement from SQL,
mapping each row to a Java object via a RowMapper.
|
<T> java.util.List<T> |
NamedParameterJdbcTemplate.query(java.lang.String sql,
RowMapper<T> rowMapper) |
<T> T |
NamedParameterJdbcOperations.query(java.lang.String sql,
SqlParameterSource paramSource,
ResultSetExtractor<T> 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.
|
<T> T |
NamedParameterJdbcTemplate.query(java.lang.String sql,
SqlParameterSource paramSource,
ResultSetExtractor<T> rse) |
void |
NamedParameterJdbcOperations.query(java.lang.String sql,
SqlParameterSource paramSource,
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.
|
void |
NamedParameterJdbcTemplate.query(java.lang.String sql,
SqlParameterSource paramSource,
RowCallbackHandler rch) |
<T> java.util.List<T> |
NamedParameterJdbcOperations.query(java.lang.String sql,
SqlParameterSource paramSource,
RowMapper<T> 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.
|
<T> java.util.List<T> |
NamedParameterJdbcTemplate.query(java.lang.String sql,
SqlParameterSource paramSource,
RowMapper<T> rowMapper) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
NamedParameterJdbcOperations.queryForList(java.lang.String sql,
java.util.Map<java.lang.String,?> paramMap)
Query given SQL to create a prepared statement from SQL and a
list of arguments to bind to the query, expecting a result list.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
NamedParameterJdbcTemplate.queryForList(java.lang.String sql,
java.util.Map<java.lang.String,?> paramMap) |
<T> java.util.List<T> |
NamedParameterJdbcOperations.queryForList(java.lang.String sql,
java.util.Map<java.lang.String,?> paramMap,
java.lang.Class<T> 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.
|
<T> java.util.List<T> |
NamedParameterJdbcTemplate.queryForList(java.lang.String sql,
java.util.Map<java.lang.String,?> paramMap,
java.lang.Class<T> elementType) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
NamedParameterJdbcOperations.queryForList(java.lang.String sql,
SqlParameterSource paramSource)
Query given SQL to create a prepared statement from SQL and a
list of arguments to bind to the query, expecting a result list.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
NamedParameterJdbcTemplate.queryForList(java.lang.String sql,
SqlParameterSource paramSource) |
<T> java.util.List<T> |
NamedParameterJdbcOperations.queryForList(java.lang.String sql,
SqlParameterSource paramSource,
java.lang.Class<T> 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.
|
<T> java.util.List<T> |
NamedParameterJdbcTemplate.queryForList(java.lang.String sql,
SqlParameterSource paramSource,
java.lang.Class<T> elementType) |
java.util.Map<java.lang.String,java.lang.Object> |
NamedParameterJdbcOperations.queryForMap(java.lang.String sql,
java.util.Map<java.lang.String,?> paramMap)
Query given SQL to create a prepared statement from SQL and a
list of arguments to bind to the query, expecting a result Map.
|
java.util.Map<java.lang.String,java.lang.Object> |
NamedParameterJdbcTemplate.queryForMap(java.lang.String sql,
java.util.Map<java.lang.String,?> paramMap) |
java.util.Map<java.lang.String,java.lang.Object> |
NamedParameterJdbcOperations.queryForMap(java.lang.String sql,
SqlParameterSource paramSource)
Query given SQL to create a prepared statement from SQL and a
list of arguments to bind to the query, expecting a result Map.
|
java.util.Map<java.lang.String,java.lang.Object> |
NamedParameterJdbcTemplate.queryForMap(java.lang.String sql,
SqlParameterSource paramSource) |
<T> T |
NamedParameterJdbcOperations.queryForObject(java.lang.String sql,
java.util.Map<java.lang.String,?> paramMap,
java.lang.Class<T> requiredType)
Query given SQL to create a prepared statement from SQL and a
list of arguments to bind to the query, expecting a result object.
|
<T> T |
NamedParameterJdbcTemplate.queryForObject(java.lang.String sql,
java.util.Map<java.lang.String,?> paramMap,
java.lang.Class<T> requiredType) |
<T> T |
NamedParameterJdbcOperations.queryForObject(java.lang.String sql,
java.util.Map<java.lang.String,?> paramMap,
RowMapper<T> rowMapper)
Query given SQL to create a prepared statement from SQL and a list
of arguments to bind to the query, mapping a single result row to a
Java object via a RowMapper.
|
<T> T |
NamedParameterJdbcTemplate.queryForObject(java.lang.String sql,
java.util.Map<java.lang.String,?> paramMap,
RowMapper<T> rowMapper) |
<T> T |
NamedParameterJdbcOperations.queryForObject(java.lang.String sql,
SqlParameterSource paramSource,
java.lang.Class<T> requiredType)
Query given SQL to create a prepared statement from SQL and a
list of arguments to bind to the query, expecting a result object.
|
<T> T |
NamedParameterJdbcTemplate.queryForObject(java.lang.String sql,
SqlParameterSource paramSource,
java.lang.Class<T> requiredType) |
<T> T |
NamedParameterJdbcOperations.queryForObject(java.lang.String sql,
SqlParameterSource paramSource,
RowMapper<T> rowMapper)
Query given SQL to create a prepared statement from SQL and a list
of arguments to bind to the query, mapping a single result row to a
Java object via a RowMapper.
|
<T> T |
NamedParameterJdbcTemplate.queryForObject(java.lang.String sql,
SqlParameterSource paramSource,
RowMapper<T> rowMapper) |
SqlRowSet |
NamedParameterJdbcOperations.queryForRowSet(java.lang.String sql,
java.util.Map<java.lang.String,?> paramMap)
Query given SQL to create a prepared statement from SQL and a
list of arguments to bind to the query, expecting a SqlRowSet.
|
SqlRowSet |
NamedParameterJdbcTemplate.queryForRowSet(java.lang.String sql,
java.util.Map<java.lang.String,?> paramMap) |
SqlRowSet |
NamedParameterJdbcOperations.queryForRowSet(java.lang.String sql,
SqlParameterSource paramSource)
Query given SQL to create a prepared statement from SQL and a
list of arguments to bind to the query, expecting a SqlRowSet.
|
SqlRowSet |
NamedParameterJdbcTemplate.queryForRowSet(java.lang.String sql,
SqlParameterSource paramSource) |
int |
NamedParameterJdbcOperations.update(java.lang.String sql,
java.util.Map<java.lang.String,?> paramMap)
Issue an update via a prepared statement, binding the given arguments.
|
int |
NamedParameterJdbcTemplate.update(java.lang.String sql,
java.util.Map<java.lang.String,?> paramMap) |
int |
NamedParameterJdbcOperations.update(java.lang.String sql,
SqlParameterSource paramSource)
Issue an update via a prepared statement, binding the given arguments.
|
int |
NamedParameterJdbcTemplate.update(java.lang.String sql,
SqlParameterSource paramSource) |
int |
NamedParameterJdbcOperations.update(java.lang.String sql,
SqlParameterSource paramSource,
KeyHolder generatedKeyHolder)
Issue an update via a prepared statement, binding the given arguments,
returning generated keys.
|
int |
NamedParameterJdbcTemplate.update(java.lang.String sql,
SqlParameterSource paramSource,
KeyHolder generatedKeyHolder) |
int |
NamedParameterJdbcOperations.update(java.lang.String sql,
SqlParameterSource paramSource,
KeyHolder generatedKeyHolder,
java.lang.String[] keyColumnNames)
Issue an update via a prepared statement, binding the given arguments,
returning generated keys.
|
int |
NamedParameterJdbcTemplate.update(java.lang.String sql,
SqlParameterSource paramSource,
KeyHolder generatedKeyHolder,
java.lang.String[] keyColumnNames) |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
AbstractLobCreatingPreparedStatementCallback.doInPreparedStatement(java.sql.PreparedStatement ps) |
T |
AbstractLobStreamingResultSetExtractor.extractData(java.sql.ResultSet rs)
Delegates to handleNoRowFound, handleMultipleRowsFound and streamData,
according to the ResultSet state.
|
protected void |
AbstractLobStreamingResultSetExtractor.handleMultipleRowsFound()
Handle the case where the ResultSet contains multiple rows.
|
protected void |
AbstractLobStreamingResultSetExtractor.handleNoRowFound()
Handle the case where the ResultSet does not contain a row.
|
protected abstract void |
AbstractLobCreatingPreparedStatementCallback.setValues(java.sql.PreparedStatement ps,
LobCreator lobCreator)
Set values on the given PreparedStatement, using the given
LobCreator for BLOB/CLOB arguments.
|
protected abstract void |
AbstractLobStreamingResultSetExtractor.streamData(java.sql.ResultSet rs)
Stream LOB content from the given ResultSet to some OutputStream.
|
Modifier and Type | Class and Description |
---|---|
class |
CannotReadScriptException
Thrown by
ScriptUtils if an SQL script cannot be read. |
class |
ScriptException
Root of the hierarchy of data access exceptions that are related to processing
of SQL scripts.
|
class |
ScriptParseException
Thrown by
ScriptUtils if an SQL script cannot be properly parsed. |
class |
ScriptStatementFailedException
Thrown by
ScriptUtils if a statement in an SQL script failed when
executing it against the target database. |
class |
UncategorizedScriptException
Thrown when we cannot determine anything more specific than "something went
wrong while processing an SQL script": for example, a
SQLException
from JDBC that we cannot pinpoint more precisely. |
Modifier and Type | Method and Description |
---|---|
static void |
DatabasePopulatorUtils.execute(DatabasePopulator populator,
javax.sql.DataSource dataSource)
Execute the given
DatabasePopulator against the given DataSource . |
Modifier and Type | Class and Description |
---|---|
class |
DataSourceLookupFailureException
Exception to be thrown by a DataSourceLookup implementation,
indicating that the specified DataSource could not be obtained.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<T> |
SqlQuery.execute()
Convenient method to execute without parameters nor context.
|
java.util.List<T> |
SqlQuery.execute(int p1)
Convenient method to execute with a single int parameter.
|
java.util.List<T> |
SqlQuery.execute(int p1,
int p2)
Convenient method to execute with two int parameters.
|
java.util.List<T> |
SqlQuery.execute(int p1,
int p2,
java.util.Map<?,?> context)
Convenient method to execute with two int parameters and context.
|
java.util.List<T> |
SqlQuery.execute(int p1,
java.util.Map<?,?> context)
Convenient method to execute with a single int parameter and context.
|
java.util.List<T> |
SqlQuery.execute(long p1)
Convenient method to execute with a single long parameter.
|
java.util.List<T> |
SqlQuery.execute(long p1,
java.util.Map<?,?> context)
Convenient method to execute with a single long parameter and context.
|
java.util.List<T> |
SqlQuery.execute(java.util.Map<?,?> context)
Convenient method to execute without parameters.
|
java.util.Map<java.lang.String,java.lang.Object> |
StoredProcedure.execute(java.util.Map<java.lang.String,?> inParams)
Execute the stored procedure.
|
java.util.List<T> |
SqlQuery.execute(java.lang.Object... params)
Convenient method to execute without context.
|
java.util.List<T> |
SqlQuery.execute(java.lang.Object[] params,
java.util.Map<?,?> context)
Central execution method.
|
java.util.Map<java.lang.String,java.lang.Object> |
StoredProcedure.execute(ParameterMapper inParamMapper)
Execute the stored procedure.
|
java.util.List<T> |
SqlQuery.execute(java.lang.String p1)
Convenient method to execute with a single String parameter.
|
java.util.List<T> |
SqlQuery.execute(java.lang.String p1,
java.util.Map<?,?> context)
Convenient method to execute with a single String parameter and context.
|
java.util.List<T> |
SqlQuery.executeByNamedParam(java.util.Map<java.lang.String,?> paramMap)
Convenient method to execute without context.
|
java.util.List<T> |
SqlQuery.executeByNamedParam(java.util.Map<java.lang.String,?> paramMap,
java.util.Map<?,?> context)
Central execution method.
|
T |
SqlQuery.findObject(int p1)
Convenient method to find a single object given a single int parameter.
|
T |
SqlQuery.findObject(int p1,
int p2)
Convenient method to find a single object given two int parameters.
|
T |
SqlQuery.findObject(int p1,
int p2,
java.util.Map<?,?> context)
Convenient method to find a single object given two int parameters
and a context.
|
T |
SqlQuery.findObject(int p1,
java.util.Map<?,?> context)
Convenient method to find a single object given a single int parameter
and a context.
|
T |
SqlQuery.findObject(long p1)
Convenient method to find a single object given a single long parameter.
|
T |
SqlQuery.findObject(long p1,
java.util.Map<?,?> context)
Convenient method to find a single object given a single long parameter
and a context.
|
T |
SqlQuery.findObject(java.lang.Object... params)
Convenient method to find a single object without context.
|
T |
SqlQuery.findObject(java.lang.Object[] params,
java.util.Map<?,?> context)
Generic object finder method, used by all other
findObject methods. |
T |
SqlQuery.findObject(java.lang.String p1)
Convenient method to find a single object given a single String parameter.
|
T |
SqlQuery.findObject(java.lang.String p1,
java.util.Map<?,?> context)
Convenient method to find a single object given a single String parameter
and a context.
|
T |
SqlQuery.findObjectByNamedParam(java.util.Map<java.lang.String,?> paramMap)
Convenient method to execute without context.
|
T |
SqlQuery.findObjectByNamedParam(java.util.Map<java.lang.String,?> paramMap,
java.util.Map<?,?> context)
Generic object finder method for named parameters.
|
int |
SqlUpdate.update()
Convenience method to execute an update with no parameters.
|
int |
SqlUpdate.update(int p1)
Convenient method to execute an update given one int arg.
|
int |
SqlUpdate.update(int p1,
int p2)
Convenient method to execute an update given two int args.
|
int |
SqlUpdate.update(long p1)
Convenient method to execute an update given one long arg.
|
int |
SqlUpdate.update(long p1,
long p2)
Convenient method to execute an update given two long args.
|
int |
SqlUpdate.update(java.lang.Object... params)
Generic method to execute the update given parameters.
|
int |
BatchSqlUpdate.update(java.lang.Object... params)
Overridden version of
update that adds the given statement
parameters to the queue rather than executing them immediately. |
int |
SqlUpdate.update(java.lang.Object[] params,
KeyHolder generatedKeyHolder)
Method to execute the update given arguments and
retrieve the generated keys using a KeyHolder.
|
int |
SqlUpdate.update(java.lang.String p)
Convenient method to execute an update given one String arg.
|
int |
SqlUpdate.update(java.lang.String p1,
java.lang.String p2)
Convenient method to execute an update given two String args.
|
int |
SqlUpdate.updateByNamedParam(java.util.Map<java.lang.String,?> paramMap)
Generic method to execute the update given named parameters.
|
int |
SqlUpdate.updateByNamedParam(java.util.Map<java.lang.String,?> paramMap,
KeyHolder generatedKeyHolder)
Method to execute the update given arguments and
retrieve the generated keys using a KeyHolder.
|
Modifier and Type | Method and Description |
---|---|
protected DataAccessException |
SQLErrorCodeSQLExceptionTranslator.createCustomException(java.lang.String task,
java.lang.String sql,
java.sql.SQLException sqlEx,
java.lang.Class<?> exceptionClass)
Create a custom DataAccessException, based on a given exception
class from a CustomSQLErrorCodesTranslation definition.
|
protected DataAccessException |
SQLErrorCodeSQLExceptionTranslator.customTranslate(java.lang.String task,
java.lang.String sql,
java.sql.SQLException sqlEx)
Subclasses can override this method to attempt a custom mapping from SQLException
to DataAccessException.
|
protected DataAccessException |
SQLErrorCodeSQLExceptionTranslator.doTranslate(java.lang.String task,
java.lang.String sql,
java.sql.SQLException ex) |
protected DataAccessException |
SQLExceptionSubclassTranslator.doTranslate(java.lang.String task,
java.lang.String sql,
java.sql.SQLException ex) |
protected DataAccessException |
SQLStateSQLExceptionTranslator.doTranslate(java.lang.String task,
java.lang.String sql,
java.sql.SQLException ex) |
protected abstract DataAccessException |
AbstractFallbackSQLExceptionTranslator.doTranslate(java.lang.String task,
java.lang.String sql,
java.sql.SQLException ex)
Template method for actually translating the given exception.
|
DataAccessException |
SQLExceptionTranslator.translate(java.lang.String task,
java.lang.String sql,
java.sql.SQLException ex)
Translate the given
SQLException into a generic DataAccessException . |
DataAccessException |
AbstractFallbackSQLExceptionTranslator.translate(java.lang.String task,
java.lang.String sql,
java.sql.SQLException ex)
Pre-checks the arguments, calls
AbstractFallbackSQLExceptionTranslator.doTranslate(java.lang.String, java.lang.String, java.sql.SQLException) , and invokes the
fallback translator if necessary. |
Modifier and Type | Method and Description |
---|---|
protected long |
AbstractIdentityColumnMaxValueIncrementer.getNextKey() |
protected long |
MySQLMaxValueIncrementer.getNextKey() |
protected long |
AbstractSequenceMaxValueIncrementer.getNextKey()
Executes the SQL as specified by
AbstractSequenceMaxValueIncrementer.getSequenceQuery() . |
int |
AbstractDataFieldMaxValueIncrementer.nextIntValue() |
int |
DataFieldMaxValueIncrementer.nextIntValue()
Increment the data store field's max value as int.
|
long |
AbstractDataFieldMaxValueIncrementer.nextLongValue() |
long |
DataFieldMaxValueIncrementer.nextLongValue()
Increment the data store field's max value as long.
|
java.lang.String |
AbstractDataFieldMaxValueIncrementer.nextStringValue() |
java.lang.String |
DataFieldMaxValueIncrementer.nextStringValue()
Increment the data store field's max value as String.
|
Modifier and Type | Class and Description |
---|---|
class |
SqlXmlFeatureNotImplementedException
Exception thrown when the underlying implementation does not support the
requested feature of the API.
|
Modifier and Type | Class and Description |
---|---|
class |
ObjectOptimisticLockingFailureException
Exception thrown on an optimistic locking violation for a mapped object.
|
class |
ObjectRetrievalFailureException
Exception thrown if a mapped object could not be retrieved via its identifier.
|
Modifier and Type | Class and Description |
---|---|
class |
HibernateJdbcException
Hibernate-specific subclass of UncategorizedDataAccessException,
for JDBC exceptions that Hibernate wrapped.
|
class |
HibernateObjectRetrievalFailureException
Hibernate-specific subclass of ObjectRetrievalFailureException.
|
class |
HibernateOptimisticLockingFailureException
Hibernate-specific subclass of ObjectOptimisticLockingFailureException.
|
class |
HibernateQueryException
Hibernate-specific subclass of InvalidDataAccessResourceUsageException,
thrown on invalid HQL query syntax.
|
class |
HibernateSystemException
Hibernate-specific subclass of UncategorizedDataAccessException,
for Hibernate system errors that do not match any concrete
org.springframework.dao exceptions. |
Modifier and Type | Method and Description |
---|---|
protected DataAccessException |
HibernateTransactionManager.convertHibernateAccessException(HibernateException ex)
Convert the given HibernateException to an appropriate exception
from the
org.springframework.dao hierarchy. |
protected DataAccessException |
HibernateExceptionTranslator.convertHibernateAccessException(HibernateException ex)
Convert the given HibernateException to an appropriate exception from the
org.springframework.dao hierarchy. |
static DataAccessException |
SessionFactoryUtils.convertHibernateAccessException(HibernateException ex)
Convert the given HibernateException to an appropriate exception
from the
org.springframework.dao hierarchy. |
DataAccessException |
HibernateExceptionTranslator.translateExceptionIfPossible(java.lang.RuntimeException ex) |
Modifier and Type | Method and Description |
---|---|
void |
SpringSessionSynchronization.beforeCommit(boolean readOnly) |
int |
HibernateTemplate.bulkUpdate(java.lang.String queryString,
java.lang.Object... values)
Deprecated.
|
int |
HibernateOperations.bulkUpdate(java.lang.String queryString,
java.lang.Object... values)
Deprecated.
as of 5.0.4, in favor of a custom
HibernateCallback
lambda code block passed to the general HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>) method |
void |
HibernateTemplate.clear() |
void |
HibernateOperations.clear()
Remove all objects from the
Session cache, and
cancel all pending saves, updates and deletes. |
void |
HibernateTemplate.closeIterator(java.util.Iterator<?> it)
Deprecated.
|
void |
HibernateOperations.closeIterator(java.util.Iterator<?> it)
Deprecated.
as of 5.0.4, in favor of a custom
HibernateCallback
lambda code block passed to the general HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>) method |
boolean |
HibernateTemplate.contains(java.lang.Object entity) |
boolean |
HibernateOperations.contains(java.lang.Object entity)
Check whether the given object is in the Session cache.
|
void |
HibernateTemplate.delete(java.lang.Object entity) |
void |
HibernateOperations.delete(java.lang.Object entity)
Delete the given persistent instance.
|
void |
HibernateTemplate.delete(java.lang.Object entity,
LockMode lockMode) |
void |
HibernateOperations.delete(java.lang.Object entity,
LockMode lockMode)
Delete the given persistent instance.
|
void |
HibernateTemplate.delete(java.lang.String entityName,
java.lang.Object entity) |
void |
HibernateOperations.delete(java.lang.String entityName,
java.lang.Object entity)
Delete the given persistent instance.
|
void |
HibernateTemplate.delete(java.lang.String entityName,
java.lang.Object entity,
LockMode lockMode) |
void |
HibernateOperations.delete(java.lang.String entityName,
java.lang.Object entity,
LockMode lockMode)
Delete the given persistent instance.
|
void |
HibernateTemplate.deleteAll(java.util.Collection<?> entities) |
void |
HibernateOperations.deleteAll(java.util.Collection<?> entities)
Delete all given persistent instances.
|
protected <T> T |
HibernateTemplate.doExecute(HibernateCallback<T> action,
boolean enforceNativeSession)
Execute the action specified by the given action object within a Session.
|
void |
HibernateTemplate.evict(java.lang.Object entity) |
void |
HibernateOperations.evict(java.lang.Object entity)
Remove the given object from the
Session cache. |
<T> T |
HibernateTemplate.execute(HibernateCallback<T> action) |
<T> T |
HibernateOperations.execute(HibernateCallback<T> action)
Execute the action specified by the given action object within a
Session . |
java.util.List<?> |
HibernateTemplate.find(java.lang.String queryString,
java.lang.Object... values)
Deprecated.
|
java.util.List<?> |
HibernateOperations.find(java.lang.String queryString,
java.lang.Object... values)
Deprecated.
as of 5.0.4, in favor of a custom
HibernateCallback
lambda code block passed to the general HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>) method |
java.util.List<?> |
HibernateTemplate.findByCriteria(DetachedCriteria criteria) |
java.util.List<?> |
HibernateOperations.findByCriteria(DetachedCriteria criteria)
Execute a query based on a given Hibernate criteria object.
|
java.util.List<?> |
HibernateTemplate.findByCriteria(DetachedCriteria criteria,
int firstResult,
int maxResults) |
java.util.List<?> |
HibernateOperations.findByCriteria(DetachedCriteria criteria,
int firstResult,
int maxResults)
Execute a query based on the given Hibernate criteria object.
|
<T> java.util.List<T> |
HibernateTemplate.findByExample(java.lang.String entityName,
T exampleEntity) |
<T> java.util.List<T> |
HibernateOperations.findByExample(java.lang.String entityName,
T exampleEntity)
Execute a query based on the given example entity object.
|
<T> java.util.List<T> |
HibernateTemplate.findByExample(java.lang.String entityName,
T exampleEntity,
int firstResult,
int maxResults) |
<T> java.util.List<T> |
HibernateOperations.findByExample(java.lang.String entityName,
T exampleEntity,
int firstResult,
int maxResults)
Execute a query based on a given example entity object.
|
<T> java.util.List<T> |
HibernateTemplate.findByExample(T exampleEntity) |
<T> java.util.List<T> |
HibernateOperations.findByExample(T exampleEntity)
Execute a query based on the given example entity object.
|
<T> java.util.List<T> |
HibernateTemplate.findByExample(T exampleEntity,
int firstResult,
int maxResults) |
<T> java.util.List<T> |
HibernateOperations.findByExample(T exampleEntity,
int firstResult,
int maxResults)
Execute a query based on a given example entity object.
|
java.util.List<?> |
HibernateTemplate.findByNamedParam(java.lang.String queryString,
java.lang.String[] paramNames,
java.lang.Object[] values)
Deprecated.
|
java.util.List<?> |
HibernateOperations.findByNamedParam(java.lang.String queryString,
java.lang.String[] paramNames,
java.lang.Object[] values)
Deprecated.
as of 5.0.4, in favor of a custom
HibernateCallback
lambda code block passed to the general HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>) method |
java.util.List<?> |
HibernateTemplate.findByNamedParam(java.lang.String queryString,
java.lang.String paramName,
java.lang.Object value)
Deprecated.
|
java.util.List<?> |
HibernateOperations.findByNamedParam(java.lang.String queryString,
java.lang.String paramName,
java.lang.Object value)
Deprecated.
as of 5.0.4, in favor of a custom
HibernateCallback
lambda code block passed to the general HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>) method |
java.util.List<?> |
HibernateTemplate.findByNamedQuery(java.lang.String queryName,
java.lang.Object... values)
Deprecated.
|
java.util.List<?> |
HibernateOperations.findByNamedQuery(java.lang.String queryName,
java.lang.Object... values)
Deprecated.
as of 5.0.4, in favor of a custom
HibernateCallback
lambda code block passed to the general HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>) method |
java.util.List<?> |
HibernateTemplate.findByNamedQueryAndNamedParam(java.lang.String queryName,
java.lang.String[] paramNames,
java.lang.Object[] values)
Deprecated.
|
java.util.List<?> |
HibernateOperations.findByNamedQueryAndNamedParam(java.lang.String queryName,
java.lang.String[] paramNames,
java.lang.Object[] values)
Deprecated.
as of 5.0.4, in favor of a custom
HibernateCallback
lambda code block passed to the general HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>) method |
java.util.List<?> |
HibernateTemplate.findByNamedQueryAndNamedParam(java.lang.String queryName,
java.lang.String paramName,
java.lang.Object value)
Deprecated.
|
java.util.List<?> |
HibernateOperations.findByNamedQueryAndNamedParam(java.lang.String queryName,
java.lang.String paramName,
java.lang.Object value)
Deprecated.
as of 5.0.4, in favor of a custom
HibernateCallback
lambda code block passed to the general HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>) method |
java.util.List<?> |
HibernateTemplate.findByNamedQueryAndValueBean(java.lang.String queryName,
java.lang.Object valueBean)
Deprecated.
|
java.util.List<?> |
HibernateOperations.findByNamedQueryAndValueBean(java.lang.String queryName,
java.lang.Object valueBean)
Deprecated.
as of 5.0.4, in favor of a custom
HibernateCallback
lambda code block passed to the general HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>) method |
java.util.List<?> |
HibernateTemplate.findByValueBean(java.lang.String queryString,
java.lang.Object valueBean)
Deprecated.
|
java.util.List<?> |
HibernateOperations.findByValueBean(java.lang.String queryString,
java.lang.Object valueBean)
Deprecated.
as of 5.0.4, in favor of a custom
HibernateCallback
lambda code block passed to the general HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>) method |
void |
HibernateTemplate.flush() |
void |
HibernateOperations.flush()
Flush all pending saves, updates and deletes to the database.
|
<T> T |
HibernateTemplate.get(java.lang.Class<T> entityClass,
java.io.Serializable id) |
<T> T |
HibernateOperations.get(java.lang.Class<T> entityClass,
java.io.Serializable id)
Return the persistent instance of the given entity class
with the given identifier, or
null if not found. |
<T> T |
HibernateTemplate.get(java.lang.Class<T> entityClass,
java.io.Serializable id,
LockMode lockMode) |
<T> T |
HibernateOperations.get(java.lang.Class<T> entityClass,
java.io.Serializable id,
LockMode lockMode)
Return the persistent instance of the given entity class
with the given identifier, or
null if not found. |
java.lang.Object |
HibernateTemplate.get(java.lang.String entityName,
java.io.Serializable id) |
java.lang.Object |
HibernateOperations.get(java.lang.String entityName,
java.io.Serializable id)
Return the persistent instance of the given entity class
with the given identifier, or
null if not found. |
java.lang.Object |
HibernateTemplate.get(java.lang.String entityName,
java.io.Serializable id,
LockMode lockMode) |
java.lang.Object |
HibernateOperations.get(java.lang.String entityName,
java.io.Serializable id,
LockMode lockMode)
Return the persistent instance of the given entity class
with the given identifier, or
null if not found. |
void |
HibernateTemplate.initialize(java.lang.Object proxy) |
void |
HibernateOperations.initialize(java.lang.Object proxy)
Force initialization of a Hibernate proxy or persistent collection.
|
java.util.Iterator<?> |
HibernateTemplate.iterate(java.lang.String queryString,
java.lang.Object... values)
Deprecated.
|
java.util.Iterator<?> |
HibernateOperations.iterate(java.lang.String queryString,
java.lang.Object... values)
Deprecated.
as of 5.0.4, in favor of a custom
HibernateCallback
lambda code block passed to the general HibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>) method |
<T> T |
HibernateTemplate.load(java.lang.Class<T> entityClass,
java.io.Serializable id) |
<T> T |
HibernateOperations.load(java.lang.Class<T> entityClass,
java.io.Serializable id)
Return the persistent instance of the given entity class
with the given identifier, throwing an exception if not found.
|
<T> T |
HibernateTemplate.load(java.lang.Class<T> entityClass,
java.io.Serializable id,
LockMode lockMode) |
<T> T |
HibernateOperations.load(java.lang.Class<T> entityClass,
java.io.Serializable id,
LockMode lockMode)
Return the persistent instance of the given entity class
with the given identifier, throwing an exception if not found.
|
void |
HibernateTemplate.load(java.lang.Object entity,
java.io.Serializable id) |
void |
HibernateOperations.load(java.lang.Object entity,
java.io.Serializable id)
Load the persistent instance with the given identifier
into the given object, throwing an exception if not found.
|
java.lang.Object |
HibernateTemplate.load(java.lang.String entityName,
java.io.Serializable id) |
java.lang.Object |
HibernateOperations.load(java.lang.String entityName,
java.io.Serializable id)
Return the persistent instance of the given entity class
with the given identifier, throwing an exception if not found.
|
java.lang.Object |
HibernateTemplate.load(java.lang.String entityName,
java.io.Serializable id,
LockMode lockMode) |
java.lang.Object |
HibernateOperations.load(java.lang.String entityName,
java.io.Serializable id,
LockMode lockMode)
Return the persistent instance of the given entity class
with the given identifier, throwing an exception if not found.
|
<T> java.util.List<T> |
HibernateTemplate.loadAll(java.lang.Class<T> entityClass) |
<T> java.util.List<T> |
HibernateOperations.loadAll(java.lang.Class<T> entityClass)
Return all persistent instances of the given entity class.
|
void |
HibernateTemplate.lock(java.lang.Object entity,
LockMode lockMode) |
void |
HibernateOperations.lock(java.lang.Object entity,
LockMode lockMode)
Obtain the specified lock level upon the given object, implicitly
checking whether the corresponding database entry still exists.
|
void |
HibernateTemplate.lock(java.lang.String entityName,
java.lang.Object entity,
LockMode lockMode) |
void |
HibernateOperations.lock(java.lang.String entityName,
java.lang.Object entity,
LockMode lockMode)
Obtain the specified lock level upon the given object, implicitly
checking whether the corresponding database entry still exists.
|
<T> T |
HibernateTemplate.merge(java.lang.String entityName,
T entity) |
<T> T |
HibernateOperations.merge(java.lang.String entityName,
T entity)
Copy the state of the given object onto the persistent object
with the same identifier.
|
<T> T |
HibernateTemplate.merge(T entity) |
<T> T |
HibernateOperations.merge(T entity)
Copy the state of the given object onto the persistent object
with the same identifier.
|
void |
HibernateTemplate.persist(java.lang.Object entity) |
void |
HibernateOperations.persist(java.lang.Object entity)
Persist the given transient instance.
|
void |
HibernateTemplate.persist(java.lang.String entityName,
java.lang.Object entity) |
void |
HibernateOperations.persist(java.lang.String entityName,
java.lang.Object entity)
Persist the given transient instance.
|
void |
HibernateTemplate.refresh(java.lang.Object entity) |
void |
HibernateOperations.refresh(java.lang.Object entity)
Re-read the state of the given persistent instance.
|
void |
HibernateTemplate.refresh(java.lang.Object entity,
LockMode lockMode) |
void |
HibernateOperations.refresh(java.lang.Object entity,
LockMode lockMode)
Re-read the state of the given persistent instance.
|
void |
HibernateTemplate.replicate(java.lang.Object entity,
ReplicationMode replicationMode) |
void |
HibernateOperations.replicate(java.lang.Object entity,
ReplicationMode replicationMode)
Persist the state of the given detached instance according to the
given replication mode, reusing the current identifier value.
|
void |
HibernateTemplate.replicate(java.lang.String entityName,
java.lang.Object entity,
ReplicationMode replicationMode) |
void |
HibernateOperations.replicate(java.lang.String entityName,
java.lang.Object entity,
ReplicationMode replicationMode)
Persist the state of the given detached instance according to the
given replication mode, reusing the current identifier value.
|
java.io.Serializable |
HibernateTemplate.save(java.lang.Object entity) |
java.io.Serializable |
HibernateOperations.save(java.lang.Object entity)
Persist the given transient instance.
|
java.io.Serializable |
HibernateTemplate.save(java.lang.String entityName,
java.lang.Object entity) |
java.io.Serializable |
HibernateOperations.save(java.lang.String entityName,
java.lang.Object entity)
Persist the given transient instance.
|
void |
HibernateTemplate.saveOrUpdate(java.lang.Object entity) |
void |
HibernateOperations.saveOrUpdate(java.lang.Object entity)
Save or update the given persistent instance,
according to its id (matching the configured "unsaved-value"?).
|
void |
HibernateTemplate.saveOrUpdate(java.lang.String entityName,
java.lang.Object entity) |
void |
HibernateOperations.saveOrUpdate(java.lang.String entityName,
java.lang.Object entity)
Save or update the given persistent instance,
according to its id (matching the configured "unsaved-value"?).
|
void |
HibernateTemplate.update(java.lang.Object entity) |
void |
HibernateOperations.update(java.lang.Object entity)
Update the given persistent instance,
associating it with the current Hibernate
Session . |
void |
HibernateTemplate.update(java.lang.Object entity,
LockMode lockMode) |
void |
HibernateOperations.update(java.lang.Object entity,
LockMode lockMode)
Update the given persistent instance,
associating it with the current Hibernate
Session . |
void |
HibernateTemplate.update(java.lang.String entityName,
java.lang.Object entity) |
void |
HibernateOperations.update(java.lang.String entityName,
java.lang.Object entity)
Update the given persistent instance,
associating it with the current Hibernate
Session . |
void |
HibernateTemplate.update(java.lang.String entityName,
java.lang.Object entity,
LockMode lockMode) |
void |
HibernateOperations.update(java.lang.String entityName,
java.lang.Object entity,
LockMode lockMode)
Update the given persistent instance,
associating it with the current Hibernate
Session . |
Modifier and Type | Method and Description |
---|---|
void |
OpenSessionInViewInterceptor.afterCompletion(WebRequest request,
java.lang.Exception ex)
Unbind the Hibernate
Session from the thread and close it). |
void |
OpenSessionInViewInterceptor.preHandle(WebRequest request)
Open a new Hibernate
Session according and bind it to the thread via the
TransactionSynchronizationManager . |
Modifier and Type | Class and Description |
---|---|
class |
JpaObjectRetrievalFailureException
JPA-specific subclass of ObjectRetrievalFailureException.
|
class |
JpaOptimisticLockingFailureException
JPA-specific subclass of ObjectOptimisticLockingFailureException.
|
class |
JpaSystemException
JPA-specific subclass of UncategorizedDataAccessException,
for JPA system errors that do not match any concrete
org.springframework.dao exceptions. |
Modifier and Type | Method and Description |
---|---|
static DataAccessException |
EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(java.lang.RuntimeException ex)
Convert the given runtime exception to an appropriate exception from the
org.springframework.dao hierarchy. |
DataAccessException |
DefaultJpaDialect.translateExceptionIfPossible(java.lang.RuntimeException ex)
This implementation delegates to EntityManagerFactoryUtils.
|
DataAccessException |
AbstractEntityManagerFactoryBean.translateExceptionIfPossible(java.lang.RuntimeException ex)
Implementation of the PersistenceExceptionTranslator interface, as
autodetected by Spring's PersistenceExceptionTranslationPostProcessor.
|
Modifier and Type | Method and Description |
---|---|
void |
OpenEntityManagerInViewInterceptor.afterCompletion(WebRequest request,
java.lang.Exception ex) |
void |
OpenEntityManagerInViewInterceptor.preHandle(WebRequest request) |
Modifier and Type | Method and Description |
---|---|
protected DataAccessException |
HibernateJpaDialect.convertHibernateAccessException(HibernateException ex)
Convert the given HibernateException to an appropriate exception
from the
org.springframework.dao hierarchy. |
DataAccessException |
HibernateJpaDialect.translateExceptionIfPossible(java.lang.RuntimeException ex) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractTransactionalJUnit4SpringContextTests.executeSqlScript(java.lang.String sqlResourcePath,
boolean continueOnError)
Execute the given SQL script.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractTransactionalTestNGSpringContextTests.executeSqlScript(java.lang.String sqlResourcePath,
boolean continueOnError)
Execute the given SQL script.
|