cuba.wired
Interface WiredTransactionI

All Superinterfaces:
javax.transaction.Transaction
All Known Implementing Classes:
PrimitiveTransaction

public interface WiredTransactionI
extends javax.transaction.Transaction

Author:
Jan Lessner

Field Summary
static int CLIENT_MANAGED
           
static int COMPONENT_MANAGED
           
static int CONTAINER_MANAGED
           
 
Method Summary
 CubaEntityManager allocateEntityManager(ResourceFactoryI resource)
           
 WiredManagedConnection allocateResource(ResourceFactoryI resource)
           
 int beginTransaction()
           
 int commitTransaction()
           
 int getManagerType()
           
 void registerStateSynchronization(StateSynchronizationI sync)
           
 void releaseResource(ResourceFactoryI resource, WiredManagedConnection con)
           
 int rollbackTransaction()
           
 void separate()
          Markes this transaction manager to work as a separator between the current transaction and potential following ones.
 
Methods inherited from interface javax.transaction.Transaction
commit, delistResource, enlistResource, getStatus, registerSynchronization, rollback, setRollbackOnly
 

Field Detail

CONTAINER_MANAGED

static final int CONTAINER_MANAGED
See Also:
Constant Field Values

COMPONENT_MANAGED

static final int COMPONENT_MANAGED
See Also:
Constant Field Values

CLIENT_MANAGED

static final int CLIENT_MANAGED
See Also:
Constant Field Values
Method Detail

allocateResource

WiredManagedConnection allocateResource(ResourceFactoryI resource)
                                        throws java.sql.SQLException
Throws:
java.sql.SQLException

allocateEntityManager

CubaEntityManager allocateEntityManager(ResourceFactoryI resource)
                                        throws ConstructionException
Throws:
ConstructionException

releaseResource

void releaseResource(ResourceFactoryI resource,
                     WiredManagedConnection con)

registerStateSynchronization

void registerStateSynchronization(StateSynchronizationI sync)
                                  throws javax.transaction.SystemException
Throws:
javax.transaction.SystemException

getManagerType

int getManagerType()

beginTransaction

int beginTransaction()
                     throws javax.transaction.SystemException
Throws:
javax.transaction.SystemException

commitTransaction

int commitTransaction()
                      throws javax.transaction.SystemException
Throws:
javax.transaction.SystemException

rollbackTransaction

int rollbackTransaction()
                        throws javax.transaction.SystemException
Throws:
javax.transaction.SystemException

separate

void separate()
              throws javax.transaction.SystemException
Markes this transaction manager to work as a separator between the current transaction and potential following ones. This function is used to provide propper NotSupported semantic.

Throws:
javax.transaction.SystemException