public abstract class AbstractTxInvocationContext extends AbstractInvocationContext implements TxInvocationContext
TxInvocationContext.AbstractInvocationContext.ContextFlagcontextFlags, flags| Constructor and Description |
|---|
AbstractTxInvocationContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAffectedKey(Object key) |
void |
addAllAffectedKeys(Collection<Object> keys)
Registers a new participant with the transaction.
|
void |
clearLockedKeys() |
Set<Object> |
getAffectedKeys()
Returns the set of keys that are affected by this transaction.
|
abstract AbstractCacheTransaction |
getCacheTransaction() |
Transaction |
getTransaction()
Returns the tx associated with the current thread.
|
boolean |
hasModifications()
Were there any modifications performed within the tx's scope?
|
boolean |
isImplicitTransaction() |
boolean |
isInTxScope()
Returns true if this call is performed in the context of an transaction, false otherwise.
|
void |
reset() |
void |
setImplicitTransaction(boolean implicit)
Marks this transaction as implicit; implicit transactions are started for transactional caches that have the autoCommit enabled.
|
TxInvocationContext |
setTransaction(Transaction transaction) |
clone, getClassLoader, getFlags, getOrigin, hasFlag, hasLockedKey, isContextFlagSet, isFlagsUninitialized, isUseFutureReturnType, setClassLoader, setContextFlag, setContextFlag, setFlags, setFlags, setOrigin, setUseFutureReturnType, toString, unsetContextFlagequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetGlobalTransaction, getModifications, isTransactionValidaddLockedKey, clone, getClassLoader, getLockedKeys, getLockOwner, getOrigin, hasLockedKey, isOriginLocal, isUseFutureReturnType, setClassLoader, setUseFutureReturnTypeclearLookedUpEntries, getLookedUpEntries, lookupEntry, putLookedUpEntries, putLookedUpEntry, removeLookedUpEntrygetFlags, hasFlag, setFlags, setFlagspublic boolean hasModifications()
TxInvocationContexthasModifications in interface TxInvocationContextpublic Set<Object> getAffectedKeys()
TxInvocationContextgetAffectedKeys in interface TxInvocationContextpublic void addAllAffectedKeys(Collection<Object> keys)
TxInvocationContextaddAllAffectedKeys in interface TxInvocationContextpublic void addAffectedKey(Object key)
addAffectedKey in interface TxInvocationContextpublic void setImplicitTransaction(boolean implicit)
TxInvocationContextsetImplicitTransaction in interface TxInvocationContextpublic boolean isImplicitTransaction()
isImplicitTransaction in interface TxInvocationContextpublic void reset()
reset in interface FlagContainerreset in class AbstractInvocationContextpublic boolean isInTxScope()
InvocationContextisInTxScope in interface InvocationContextpublic TxInvocationContext setTransaction(Transaction transaction)
public Transaction getTransaction()
TxInvocationContextInvocationContext.isOriginLocal(), as Transaction are not propagated from the node where tx was
started.getTransaction in interface TxInvocationContextpublic final void clearLockedKeys()
clearLockedKeys in interface InvocationContextpublic abstract AbstractCacheTransaction getCacheTransaction()
getCacheTransaction in interface TxInvocationContextCopyright © 2012 JBoss by Red Hat. All Rights Reserved.