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 protectedDefaultTransaction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearRollbackOnly()Made public for special callers.voidflush()FromSmartTransactionObject..booleanisRollbackOnly()FromSmartTransactionObject..booleanuseCacheInternal(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:Transactionby implementing this method subclasses can influence the result ofTransaction.useCache(AbstractCacheUnit)- Specified by:
useCacheInternalin classTransaction
-
clearRollbackOnly
public void clearRollbackOnly()
Made public for special callers. Please do not use it generally!- Overrides:
clearRollbackOnlyin classTransaction
-
isRollbackOnly
public final boolean isRollbackOnly()
FromSmartTransactionObject..- Specified by:
isRollbackOnlyin interfaceorg.springframework.transaction.support.SmartTransactionObject- Overrides:
isRollbackOnlyin classTransaction
-
flush
public void flush()
FromSmartTransactionObject..- Specified by:
flushin interfacejava.io.Flushable- Specified by:
flushin interfaceorg.springframework.transaction.support.SmartTransactionObject
-
-