| java.lang.Object org.springframework.transaction.support.AbstractTransactionStatus org.springframework.transaction.support.DefaultTransactionStatus
Constructor Summary | |
public | DefaultTransactionStatus(Object transaction, boolean newTransaction, boolean newSynchronization, boolean readOnly, boolean debug, Object suspendedResources) Create a new DefaultTransactionStatus instance. |
Method Summary | |
protected SavepointManager | getSavepointManager() This implementation exposes the SavepointManager interface
of the underlying transaction object, if any. | public Object | getSuspendedResources() Return the holder for resources that have been suspended for this transaction,
if any. | public Object | getTransaction() Return the underlying transaction object. | public boolean | hasTransaction() Return whether there is an actual transaction active. | public boolean | isDebug() Return whether the progress of this transaction is debugged. | public boolean | isGlobalRollbackOnly() Determine the rollback-only flag via checking both the transaction object,
provided that the latter implements the SmartTransactionObject interface. | public boolean | isNewSynchronization() Return if a new transaction synchronization has been opened
for this transaction. | public boolean | isNewTransaction() | public boolean | isReadOnly() Return if this transaction is defined as read-only transaction. | public boolean | isTransactionSavepointManager() Return whether the underlying transaction implements the
SavepointManager interface. |
DefaultTransactionStatus | public DefaultTransactionStatus(Object transaction, boolean newTransaction, boolean newSynchronization, boolean readOnly, boolean debug, Object suspendedResources)(Code) | | Create a new DefaultTransactionStatus instance.
Parameters: transaction - underlying transaction object that can holdstate for the internal transaction implementation Parameters: newTransaction - if the transaction is new,else participating in an existing transaction Parameters: newSynchronization - if a new transaction synchronizationhas been opened for the given transaction Parameters: readOnly - whether the transaction is read-only Parameters: debug - should debug logging be enabled for the handling of this transaction?Caching it in here can prevent repeated calls to ask the logging system whetherdebug logging should be enabled. Parameters: suspendedResources - a holder for resources that have been suspendedfor this transaction, if any |
getSavepointManager | protected SavepointManager getSavepointManager()(Code) | | This implementation exposes the SavepointManager interface
of the underlying transaction object, if any.
|
getSuspendedResources | public Object getSuspendedResources()(Code) | | Return the holder for resources that have been suspended for this transaction,
if any.
|
getTransaction | public Object getTransaction()(Code) | | Return the underlying transaction object.
|
hasTransaction | public boolean hasTransaction()(Code) | | Return whether there is an actual transaction active.
|
isDebug | public boolean isDebug()(Code) | | Return whether the progress of this transaction is debugged. This is used
by AbstractPlatformTransactionManager as an optimization, to prevent repeated
calls to logger.isDebug(). Not really intended for client code.
|
isGlobalRollbackOnly | public boolean isGlobalRollbackOnly()(Code) | | Determine the rollback-only flag via checking both the transaction object,
provided that the latter implements the SmartTransactionObject interface.
Will return "true" if the transaction itself has been marked rollback-only
by the transaction coordinator, for example in case of a timeout.
See Also: SmartTransactionObject.isRollbackOnly |
isNewSynchronization | public boolean isNewSynchronization()(Code) | | Return if a new transaction synchronization has been opened
for this transaction.
|
isNewTransaction | public boolean isNewTransaction()(Code) | | |
isReadOnly | public boolean isReadOnly()(Code) | | Return if this transaction is defined as read-only transaction.
|
|
|