|
||||||||||
| 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 manager| Method Detail |
|---|
public void putResource(Object key,
Object resource)
putResource in interface TransactionSynchronizationRegistrypublic Object getResource(Object key)
getResource in interface TransactionSynchronizationRegistrypublic void setRollbackOnly()
setRollbackOnly in interface TransactionSynchronizationRegistrypublic boolean getRollbackOnly()
getRollbackOnly in interface TransactionSynchronizationRegistrypublic Object getTransactionKey()
getTransactionKey in interface TransactionSynchronizationRegistrypublic int getTransactionStatus()
getTransactionStatus in interface TransactionSynchronizationRegistrypublic void registerInterposedSynchronization(Synchronization sync)
registerInterposedSynchronization in interface TransactionSynchronizationRegistryprotected TransactionSynchronizationRegistryImpl.SynchronizationContext getContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||