Package de.hybris.platform.tx
Class DefaultTransaction
- java.lang.Object
-
- de.hybris.platform.tx.Transaction
-
- de.hybris.platform.tx.DefaultTransaction
-
- All Implemented Interfaces:
java.io.Flushable
,org.springframework.transaction.support.SmartTransactionObject
public class DefaultTransaction extends Transaction implements org.springframework.transaction.support.SmartTransactionObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.tx.Transaction
Transaction.TransactionAwareExecution, Transaction.TransactionFactory, Transaction.TxInvalidationSet
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.tx.Transaction
attachedObjects, captureInvalidationStackTraces, CFG_ENABLE_TX_CACHE, CFG_ROLLBACK_ON_COMMIT_ERROR, lastStartTL
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultTransaction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearRollbackOnly()
Made public for special callers.void
flush()
FromSmartTransactionObject
..boolean
isRollbackOnly()
FromSmartTransactionObject
..boolean
useCacheInternal(AbstractCacheUnit unit)
by implementing this method subclasses can influence the result ofTransaction.useCache(AbstractCacheUnit)
-
Methods inherited from class de.hybris.platform.tx.Transaction
activateAsCurrentTransaction, activateCache, addDelayedConstraint, addToDelayedRemoval, addToDelayedRollbackLocalInvalidations, assertNoCurrentTransactionRunning, attach, begin, beginOuter, bindConnection, calculatedUserTAEnabled, checkBeforeCommit, checkBeforeRollback, checkDelayedConstrains, checkForOtherCurrentTxRunning, clearDelayedConstrains, clearTxBoundConnectionAndNotify, clearTxBoundConnectionAndNotifyCommit, clearTxBoundConnectionAndNotifyRollback, commit, commitConnectionAndClearAndUnsetAsCurrent, createNew, current, decreaseOpenTransactionCount, dettach, enableDelayedStore, enableTxCache, enableUserTransactionForThread, execute, execute, executeOnCommit, executeOnRollback, executeOrDelayStore, finishExecute, flushDelayedStore, flushDelayedStore, getAfterSaveEventListenerRegistry, getAttached, getAttachedEntityInstance, getBeginTransactionStack, getConnectionToBind, getContextEntry, getCurrentIfExists, getEntityChangesCollector, getObjectID, getOpenTransactionCount, getOrCreateGlobalCacheAdapter, getOrCreateLegacyCacheAdapter, getOrCreateTxLocalCacheAdapter, getOrLoadTxBoundEntityInstance, getTransactionAwareCache, getTransactionsFactory, getTXBoundConnection, increaseOpenTransactionCount, invalidate, invalidate, invalidate, invalidate, invalidateAndNotifyCommit, invalidateAndNotifyRollback, invalidateFromDirectPersistence, isCurrent, isDelayedStoreEnabled, isExceptionIsPermitted, isInCommitOrRollback, isInvalidated, isNested, isRollbackOnCommitError, isRunning, isTxCacheEnabled, isUserTransactionEnabled, loadAfterSaveListenerRegistry, lock, logBeforeBegin, logBeforeCommit, logBeforeRollback, notifyCommit, notifyRollback, onNestedBeginError, onOuterBeginError, performCommitBeginEvery, printContextInfo, registerEntityInstance, reloadEntityInstance, removeFromEntityMap, rollback, rollbackConnection, rollbackConnection, rollbackOuter, setAsCurrent, setContextEntry, setRollbackOnCommitError, setRollbackOnly, setTransactionFactory, setTransactionIsolationLevel, toException, unsetTransactionFactory, unsetTxBoundConnection, useCache
-
-
-
-
Method Detail
-
useCacheInternal
public boolean useCacheInternal(AbstractCacheUnit unit)
Description copied from class:Transaction
by implementing this method subclasses can influence the result ofTransaction.useCache(AbstractCacheUnit)
- Specified by:
useCacheInternal
in classTransaction
-
clearRollbackOnly
public void clearRollbackOnly()
Made public for special callers. Please do not use it generally!- Overrides:
clearRollbackOnly
in classTransaction
-
isRollbackOnly
public final boolean isRollbackOnly()
FromSmartTransactionObject
..- Specified by:
isRollbackOnly
in interfaceorg.springframework.transaction.support.SmartTransactionObject
- Overrides:
isRollbackOnly
in classTransaction
-
flush
public void flush()
FromSmartTransactionObject
..- Specified by:
flush
in interfacejava.io.Flushable
- Specified by:
flush
in interfaceorg.springframework.transaction.support.SmartTransactionObject
-
-