public class LaTransaction extends Object implements ExtendedTransaction, SynchronizationRegister
| 修飾子とタイプ | クラスと説明 |
|---|---|
protected static class |
LaTransaction.DetachedSubResult |
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected int |
branchId |
protected List<Synchronization> |
interposedSynchronizations |
protected Map<Object,Object> |
resourceMap |
protected int |
status |
protected boolean |
suspended |
protected List<Synchronization> |
synchronizations |
protected List<org.lastaflute.jta.core.XAResourceWrapper> |
xaResourceWrappers |
protected Xid |
xid |
| コンストラクタと説明 |
|---|
LaTransaction() |
protected Xid xid
protected int status
protected final List<org.lastaflute.jta.core.XAResourceWrapper> xaResourceWrappers
protected final List<Synchronization> synchronizations
protected final List<Synchronization> interposedSynchronizations
protected boolean suspended
protected int branchId
public void begin()
throws NotSupportedException,
SystemException
begin インタフェース内 ExtendedTransactionNotSupportedExceptionSystemExceptionprotected void init()
public void suspend()
throws SystemException
suspend インタフェース内 ExtendedTransactionSystemExceptionprotected void assertNotSuspended()
throws IllegalStateException
protected void assertActive()
throws IllegalStateException
protected void throwIllegalStateException()
throws IllegalStateException
protected int getXAResourceWrapperSize()
protected org.lastaflute.jta.core.XAResourceWrapper getXAResourceWrapper(int index)
public void resume()
throws SystemException
resume インタフェース内 ExtendedTransactionSystemExceptionprotected void assertSuspended()
throws IllegalStateException
public void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
protected LaTransaction.DetachedSubResult beforeCompletion(LaTransaction.DetachedSubResult subResult)
protected void beforeCompletion(Synchronization sync, LaTransaction.DetachedSubResult subResult)
protected void endResources(int flag,
LaTransaction.DetachedSubResult subResult)
protected void commitOnePhase(LaTransaction.DetachedSubResult subResult)
protected int prepareResources(LaTransaction.DetachedSubResult subResult)
protected void commitTwoPhase(LaTransaction.DetachedSubResult subResult)
protected void rollbackForVoteOK(LaTransaction.DetachedSubResult subResult)
protected void afterCompletion(LaTransaction.DetachedSubResult subResult)
protected void afterCompletion(int status,
Synchronization sync,
LaTransaction.DetachedSubResult subResult)
protected int getSynchronizationSize()
protected Synchronization getSynchronization(int index)
protected int getInterposedSynchronizationSize()
protected Synchronization getInterposedSynchronization(int index)
protected void throwCommitRollbackException(LaTransaction.DetachedSubResult subResult) throws LjtRollbackException
public void rollback()
throws IllegalStateException,
SecurityException,
SystemException
rollback インタフェース内 TransactionIllegalStateExceptionSecurityExceptionSystemExceptionprotected void assertActiveOrMarkedRollback()
throws IllegalStateException
protected void rollbackResources(LaTransaction.DetachedSubResult subResult)
protected void handleRollbackFailure(LaTransaction.DetachedSubResult subResult)
public void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly インタフェース内 TransactionIllegalStateExceptionSystemExceptionprotected void assertActiveOrPreparingOrPrepared()
throws IllegalStateException
public boolean enlistResource(XAResource xaResource) throws RollbackException, IllegalStateException, SystemException
enlistResource インタフェース内 TransactionRollbackExceptionIllegalStateExceptionSystemExceptionprotected Xid createXidBranch()
public boolean delistResource(XAResource xaResource, int flag) throws IllegalStateException, SystemException
delistResource インタフェース内 TransactionIllegalStateExceptionSystemExceptionpublic int getStatus()
getStatus インタフェース内 Transactionpublic void registerSynchronization(Synchronization sync) throws RollbackException, IllegalStateException, SystemException
public void registerInterposedSynchronization(Synchronization sync) throws IllegalStateException
public void putResource(Object key, Object value) throws IllegalStateException
putResource インタフェース内 SynchronizationRegisterIllegalStateExceptionpublic Object getResource(Object key) throws IllegalStateException
getResource インタフェース内 SynchronizationRegisterIllegalStateExceptionprotected void destroy()
protected void setupDetachedCausePart(LjtExceptionMessageBuilder br, List<Throwable> detachedCauseList)
public Xid getXid()
public boolean isSuspended()
public List<Synchronization> getSynchronizations()
public List<Synchronization> getInterposedSynchronizations()
Copyright © 2015–2020 The DBFlute Project. All rights reserved.