java.lang.Object | |
↳ | org.springframework.jdbc.datasource.JdbcTransactionObjectSupport |
Convenient base class for JDBC-aware transaction objects.
Can contain a ConnectionHolder
, and implements the
SavepointManager
interface based on that ConnectionHolder.
Allows for programmatic management of JDBC 3.0
Savepoints
. Spring's
DefaultTransactionStatus
will automatically delegate to this, as it autodetects transaction
objects that implement the SavepointManager interface.
Note that savepoints are only supported for drivers which support JDBC 3.0 or higher.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This implementation creates a JDBC 3.0 Savepoint and returns it.
| |||||||||||
Flush the underlying sessions to the datastore, if applicable:
for example, all affected Hibernate/JPA sessions.
| |||||||||||
This implementation releases the given JDBC 3.0 Savepoint.
| |||||||||||
This implementation rolls back to the given JDBC 3.0 Savepoint.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.transaction.SavepointManager
| |||||||||||
From interface
org.springframework.transaction.support.SmartTransactionObject
|
This implementation creates a JDBC 3.0 Savepoint and returns it.
TransactionException |
---|
Flush the underlying sessions to the datastore, if applicable: for example, all affected Hibernate/JPA sessions.
This implementation releases the given JDBC 3.0 Savepoint.
savepoint | the savepoint to release |
---|
TransactionException |
---|
This implementation rolls back to the given JDBC 3.0 Savepoint.
savepoint | the savepoint to roll back to |
---|
TransactionException |
---|