org.springframework.jdbc.datasource
Class DataSourceTransactionManager.DataSourceTransactionObject

java.lang.Object
  extended by org.springframework.jdbc.datasource.JdbcTransactionObjectSupport
      extended by 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.


Field Summary
private  boolean mustRestoreAutoCommit
           
private  boolean newConnectionHolder
           
 
Constructor Summary
private DataSourceTransactionManager.DataSourceTransactionObject()
           
 
Method Summary
 boolean hasTransaction()
           
 boolean isMustRestoreAutoCommit()
           
 boolean isNewConnectionHolder()
           
 boolean isRollbackOnly()
          Return whether the transaction is internally marked as rollback-only.
 void setConnectionHolder(ConnectionHolder connectionHolder, boolean newConnectionHolder)
           
 void setMustRestoreAutoCommit(boolean mustRestoreAutoCommit)
           
 void setRollbackOnly()
           
 
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
 

Field Detail

newConnectionHolder

private boolean newConnectionHolder

mustRestoreAutoCommit

private boolean mustRestoreAutoCommit
Constructor Detail

DataSourceTransactionManager.DataSourceTransactionObject

private DataSourceTransactionManager.DataSourceTransactionObject()
Method Detail

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