Package org.teiid.dqp.service
Interface TransactionService
-
- All Known Implementing Classes:
TransactionServerImpl
public interface TransactionService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransactionContext
begin(String threadId)
void
begin(TransactionContext context)
void
cancelTransactions(String threadId, boolean requestOnly)
void
commit(String threadId)
void
commit(String threadId, XidImpl xid, boolean onePhase, boolean singleTM)
void
commit(TransactionContext context)
void
end(String threadId, XidImpl xid, int flags, boolean singleTM)
void
forget(String threadId, XidImpl xid, boolean singleTM)
TransactionContext
getOrCreateTransactionContext(String threadId)
Collection<TransactionMetadata>
getTransactions()
int
prepare(String threadId, XidImpl xid, boolean singleTM)
Xid[]
recover(int flag, boolean singleTM)
void
resume(TransactionContext context)
void
rollback(String threadId)
void
rollback(String threadId, XidImpl xid, boolean singleTM)
void
rollback(TransactionContext context)
void
start(String threadId, XidImpl xid, int flags, int timeout, boolean singleTM)
void
suspend(TransactionContext context)
void
terminateTransaction(String threadId)
-
-
-
Method Detail
-
begin
void begin(TransactionContext context) throws XATransactionException
- Throws:
XATransactionException
-
commit
void commit(TransactionContext context) throws XATransactionException
- Throws:
XATransactionException
-
rollback
void rollback(TransactionContext context) throws XATransactionException
- Throws:
XATransactionException
-
getOrCreateTransactionContext
TransactionContext getOrCreateTransactionContext(String threadId)
-
suspend
void suspend(TransactionContext context) throws XATransactionException
- Throws:
XATransactionException
-
resume
void resume(TransactionContext context) throws XATransactionException
- Throws:
XATransactionException
-
begin
TransactionContext begin(String threadId) throws XATransactionException
- Throws:
XATransactionException
-
commit
void commit(String threadId) throws XATransactionException
- Throws:
XATransactionException
-
rollback
void rollback(String threadId) throws XATransactionException
- Throws:
XATransactionException
-
cancelTransactions
void cancelTransactions(String threadId, boolean requestOnly) throws XATransactionException
- Throws:
XATransactionException
-
prepare
int prepare(String threadId, XidImpl xid, boolean singleTM) throws XATransactionException
- Throws:
XATransactionException
-
commit
void commit(String threadId, XidImpl xid, boolean onePhase, boolean singleTM) throws XATransactionException
- Throws:
XATransactionException
-
rollback
void rollback(String threadId, XidImpl xid, boolean singleTM) throws XATransactionException
- Throws:
XATransactionException
-
recover
Xid[] recover(int flag, boolean singleTM) throws XATransactionException
- Throws:
XATransactionException
-
forget
void forget(String threadId, XidImpl xid, boolean singleTM) throws XATransactionException
- Throws:
XATransactionException
-
start
void start(String threadId, XidImpl xid, int flags, int timeout, boolean singleTM) throws XATransactionException
- Throws:
XATransactionException
-
end
void end(String threadId, XidImpl xid, int flags, boolean singleTM) throws XATransactionException
- Throws:
XATransactionException
-
getTransactions
Collection<TransactionMetadata> getTransactions()
-
terminateTransaction
void terminateTransaction(String threadId) throws AdminException
- Throws:
AdminException
-
-