Class DefaultTransaction

java.lang.Object
cloud.piranha.transaction.nonxa.DefaultTransaction
All Implemented Interfaces:
Transaction

public class DefaultTransaction
extends java.lang.Object
implements Transaction
The default Transaction.
Author:
Manfred Riem ([email protected])
  • Constructor Summary

    Constructors 
    Constructor Description
    DefaultTransaction()
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    void commit()
    Commit the transaction.
    boolean delistResource​(javax.transaction.xa.XAResource xaResource, int flags)
    Delist the resource.
    boolean enlistResource​(javax.transaction.xa.XAResource xaResource)
    Enlist the resource.
    int getStatus()
    Get the status.
    void registerSynchronization​(Synchronization synchronization)
    Register a synchronization.
    void rollback()
    Rollback the transaction.
    void setRollbackOnly()
    Set rollback only.
    void setTimeout​(int timeout)
    Set the timeout.
    void setTransactionManager​(TransactionManager transactionManager)
    Set the transaction manager.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait