public class Tx
extends java.lang.Object
implements javax.transaction.Transaction
Constructor and Description |
---|
Tx() |
Modifier and Type | Method and Description |
---|---|
void |
commit() |
boolean |
delistResource(javax.transaction.xa.XAResource xares,
int xastatus) |
boolean |
enlistResource(javax.transaction.xa.XAResource xares) |
int |
getStatus() |
void |
registerSynchronization(javax.transaction.Synchronization arg0) |
void |
rollback() |
void |
setRollbackOnly() |
void |
setStatus(int status) |
public Tx() throws java.lang.InterruptedException
java.lang.InterruptedException
public void commit() throws javax.transaction.RollbackException, javax.transaction.HeuristicMixedException, javax.transaction.HeuristicRollbackException, java.lang.SecurityException, javax.transaction.SystemException
commit
in interface javax.transaction.Transaction
javax.transaction.RollbackException
javax.transaction.HeuristicMixedException
javax.transaction.HeuristicRollbackException
java.lang.SecurityException
javax.transaction.SystemException
public boolean delistResource(javax.transaction.xa.XAResource xares, int xastatus) throws java.lang.IllegalStateException, javax.transaction.SystemException
delistResource
in interface javax.transaction.Transaction
java.lang.IllegalStateException
javax.transaction.SystemException
public boolean enlistResource(javax.transaction.xa.XAResource xares) throws javax.transaction.RollbackException, java.lang.IllegalStateException, javax.transaction.SystemException
enlistResource
in interface javax.transaction.Transaction
javax.transaction.RollbackException
java.lang.IllegalStateException
javax.transaction.SystemException
public int getStatus() throws javax.transaction.SystemException
getStatus
in interface javax.transaction.Transaction
javax.transaction.SystemException
public void setStatus(int status)
public void registerSynchronization(javax.transaction.Synchronization arg0) throws javax.transaction.RollbackException, java.lang.IllegalStateException, javax.transaction.SystemException
registerSynchronization
in interface javax.transaction.Transaction
javax.transaction.RollbackException
java.lang.IllegalStateException
javax.transaction.SystemException
public void rollback() throws java.lang.IllegalStateException, javax.transaction.SystemException
rollback
in interface javax.transaction.Transaction
java.lang.IllegalStateException
javax.transaction.SystemException
public void setRollbackOnly() throws java.lang.IllegalStateException, javax.transaction.SystemException
setRollbackOnly
in interface javax.transaction.Transaction
java.lang.IllegalStateException
javax.transaction.SystemException
Copyright © 2021. All Rights Reserved.