|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.slim3.transaction.jta.TransactionSynchronizationRegistryImpl
public class TransactionSynchronizationRegistryImpl
An implementation class for TransactionSynchronizationRegistry
.
Nested Class Summary | |
---|---|
protected class |
TransactionSynchronizationRegistryImpl.SynchronizationContext
The synchronization context attached to transaction. |
Field Summary | |
---|---|
protected ThreadLocal<TransactionSynchronizationRegistryImpl.SynchronizationContext> |
contexts
The synchronization context for thread. |
protected Log |
log
The log. |
protected TransactionManager |
tm
The transaction manager. |
Constructor Summary | |
---|---|
TransactionSynchronizationRegistryImpl(TransactionManager tm)
Constructor. |
Method Summary | |
---|---|
protected TransactionSynchronizationRegistryImpl.SynchronizationContext |
getContext()
Returns the synchronization context attached to transaction. |
Object |
getResource(Object key)
|
boolean |
getRollbackOnly()
|
Object |
getTransactionKey()
|
int |
getTransactionStatus()
|
void |
putResource(Object key,
Object resource)
|
void |
registerInterposedSynchronization(Synchronization sync)
|
void |
setRollbackOnly()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Log log
protected TransactionManager tm
protected ThreadLocal<TransactionSynchronizationRegistryImpl.SynchronizationContext> contexts
Constructor Detail |
---|
public TransactionSynchronizationRegistryImpl(TransactionManager tm)
tm
- The transaction managerMethod Detail |
---|
public void putResource(Object key, Object resource)
putResource
in interface TransactionSynchronizationRegistry
public Object getResource(Object key)
getResource
in interface TransactionSynchronizationRegistry
public void setRollbackOnly()
setRollbackOnly
in interface TransactionSynchronizationRegistry
public boolean getRollbackOnly()
getRollbackOnly
in interface TransactionSynchronizationRegistry
public Object getTransactionKey()
getTransactionKey
in interface TransactionSynchronizationRegistry
public int getTransactionStatus()
getTransactionStatus
in interface TransactionSynchronizationRegistry
public void registerInterposedSynchronization(Synchronization sync)
registerInterposedSynchronization
in interface TransactionSynchronizationRegistry
protected TransactionSynchronizationRegistryImpl.SynchronizationContext getContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |