ConnectionHolder with a JDBC Connection, and implements the
SavepointManager interface based on that ConnectionHolder.
Allows for programmatic management of JDBC Savepoints.
Spring's org.
automatically delegates to this, as it autodetects transaction objects which
implement the SavepointManager interface.
DataSourceTransactionManager
| Modifier and Type | Field and Description |
|---|---|
| private ConnectionHolder | |
| private static final Log | |
| private Integer | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | createSavepoint()
Implements org. This implementation creates a JDBC Savepoint and returns it. |
| public ConnectionHolder | |
| protected ConnectionHolder | |
| public Integer | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | releaseSavepoint(Object
the savepoint to release savepoint)Implements org. This implementation releases the given JDBC Savepoint. |
| public void | rollbackToSavepoint(Object
the savepoint to roll back to savepoint)Implements org. This implementation rolls back to the given JDBC Savepoint. |
| public void | setConnectionHolder(ConnectionHolder connectionHolder)
Set the ConnectionHolder for this transaction object. |
| public void | setPreviousIsolationLevel(Integer previousIsolationLevel)
Set the previous isolation level to retain, if any. |
| public void | |
| public void | setSavepointAllowed(boolean savepointAllowed)
Set whether savepoints are allowed within this transaction. |
| connectionHolder | back to summary |
|---|---|
| private ConnectionHolder connectionHolder
| |
| logger | back to summary |
|---|---|
| private static final Log logger | |
| previousIsolationLevel | back to summary |
|---|---|
| private Integer previousIsolationLevel
| |
| readOnly | back to summary |
|---|---|
| private boolean readOnly | |
| savepointAllowed | back to summary |
|---|---|
| private boolean savepointAllowed | |
| JdbcTransactionObjectSupport | back to summary |
|---|---|
| public JdbcTransactionObjectSupport() | |
| createSavepoint | back to summary |
|---|---|
| public Object createSavepoint() throws TransactionException Implements org. This implementation creates a JDBC Savepoint and returns it.
| |
| getConnectionHolder | back to summary |
|---|---|
| public ConnectionHolder getConnectionHolder() Return the ConnectionHolder for this transaction object. | |
| getConnectionHolderForSavepoint | back to summary |
|---|---|
| protected ConnectionHolder getConnectionHolderForSavepoint() throws TransactionException | |
| getPreviousIsolationLevel | back to summary |
|---|---|
| public Integer getPreviousIsolationLevel() Return the retained previous isolation level, if any.
| |
| hasConnectionHolder | back to summary |
|---|---|
| public boolean hasConnectionHolder() Check whether this transaction object has a ConnectionHolder. | |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly() Return the read-only status of this transaction.
| |
| isSavepointAllowed | back to summary |
|---|---|
| public boolean isSavepointAllowed() Return whether savepoints are allowed within this transaction. | |
| releaseSavepoint | back to summary |
|---|---|
| public void releaseSavepoint(Object savepoint) throws TransactionException Implements org. This implementation releases the given JDBC Savepoint.
| |
| rollbackToSavepoint | back to summary |
|---|---|
| public void rollbackToSavepoint(Object savepoint) throws TransactionException Implements org. This implementation rolls back to the given JDBC Savepoint.
| |
| setConnectionHolder | back to summary |
|---|---|
| public void setConnectionHolder(ConnectionHolder connectionHolder) Set the ConnectionHolder for this transaction object. | |
| setPreviousIsolationLevel | back to summary |
|---|---|
| public void setPreviousIsolationLevel(Integer previousIsolationLevel) Set the previous isolation level to retain, if any. | |
| setReadOnly | back to summary |
|---|---|
| public void setReadOnly(boolean readOnly) Set the read-only status of this transaction.
The default is
| |
| setSavepointAllowed | back to summary |
|---|---|
| public void setSavepointAllowed(boolean savepointAllowed) Set whether savepoints are allowed within this transaction.
The default is | |