org.springframework.jdbc.datasource
Class DataSourceTransactionManager.DataSourceTransactionObject
java.lang.Object
org.springframework.jdbc.datasource.JdbcTransactionObjectSupport
org.springframework.jdbc.datasource.DataSourceTransactionManager.DataSourceTransactionObject
- All Implemented Interfaces:
- SavepointManager, SmartTransactionObject
- Enclosing class:
- DataSourceTransactionManager
private static class DataSourceTransactionManager.DataSourceTransactionObject
- extends JdbcTransactionObjectSupport
DataSource transaction object, representing a ConnectionHolder.
Used as transaction object by DataSourceTransactionManager.
Methods inherited from class org.springframework.jdbc.datasource.JdbcTransactionObjectSupport |
createSavepoint, flush, getConnectionHolder, getConnectionHolderForSavepoint, getPreviousIsolationLevel, hasConnectionHolder, isSavepointAllowed, releaseSavepoint, rollbackToSavepoint, setConnectionHolder, setPreviousIsolationLevel, setSavepointAllowed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
newConnectionHolder
private boolean newConnectionHolder
mustRestoreAutoCommit
private boolean mustRestoreAutoCommit
DataSourceTransactionManager.DataSourceTransactionObject
private DataSourceTransactionManager.DataSourceTransactionObject()
setConnectionHolder
public void setConnectionHolder(ConnectionHolder connectionHolder,
boolean newConnectionHolder)
isNewConnectionHolder
public boolean isNewConnectionHolder()
hasTransaction
public boolean hasTransaction()
setMustRestoreAutoCommit
public void setMustRestoreAutoCommit(boolean mustRestoreAutoCommit)
isMustRestoreAutoCommit
public boolean isMustRestoreAutoCommit()
setRollbackOnly
public void setRollbackOnly()
isRollbackOnly
public boolean isRollbackOnly()
- Description copied from interface:
SmartTransactionObject
- Return whether the transaction is internally marked as rollback-only.
Can, for example, check the JTA UserTransaction.
- See Also:
javax.transaction.UserTransaction#getStatus
,
javax.transaction.Status#STATUS_MARKED_ROLLBACK