com.interface21.transaction
Interface TransactionDefinition

All Known Subinterfaces:
TransactionAttribute
All Known Implementing Classes:
DefaultTransactionDefinition

public interface TransactionDefinition

Interface for classes that define transaction properties. Base interface for TransactionAttribute.

Since:
08.05.2003
Author:
Juergen Hoeller
See Also:
DefaultTransactionDefinition, TransactionAttribute

Field Summary
static java.lang.String ISOLATION_CONSTANT_PREFIX
           
static int ISOLATION_DEFAULT
          Default isolation level, all other according to java.sql.Connection levels.
static int ISOLATION_READ_COMMITTED
           
static int ISOLATION_READ_UNCOMMITTED
           
static int ISOLATION_REPEATABLE_READ
           
static int ISOLATION_SERIALIZABLE
           
static java.lang.String PROPAGATION_CONSTANT_PREFIX
           
static int PROPAGATION_MANDATORY
          Support a current transaction, throw an exception if none exists.
static int PROPAGATION_REQUIRED
          Support a current transaction, create a new one if none exists.
static int PROPAGATION_SUPPORTS
          Support a current transaction, execute non-transactional if none exists.
static int TIMEOUT_DEFAULT
          Default transaction timeout
 
Method Summary
 int getIsolationLevel()
          Return the isolation level.
 int getPropagationBehavior()
          Return the propagation behavior.
 int getTimeout()
          Return the transaction timeout.
 

Field Detail

PROPAGATION_CONSTANT_PREFIX

public static final java.lang.String PROPAGATION_CONSTANT_PREFIX

ISOLATION_CONSTANT_PREFIX

public static final java.lang.String ISOLATION_CONSTANT_PREFIX

PROPAGATION_REQUIRED

public static final int PROPAGATION_REQUIRED
Support a current transaction, create a new one if none exists. Analogous to EJB transaction attribute of the same name.

PROPAGATION_SUPPORTS

public static final int PROPAGATION_SUPPORTS
Support a current transaction, execute non-transactional if none exists. Analogous to EJB transaction attribute of the same name.

PROPAGATION_MANDATORY

public static final int PROPAGATION_MANDATORY
Support a current transaction, throw an exception if none exists. Analogous to EJB transaction attribute of the same name.

ISOLATION_DEFAULT

public static final int ISOLATION_DEFAULT
Default isolation level, all other according to java.sql.Connection levels.
See Also:
Connection

ISOLATION_READ_UNCOMMITTED

public static final int ISOLATION_READ_UNCOMMITTED

ISOLATION_READ_COMMITTED

public static final int ISOLATION_READ_COMMITTED

ISOLATION_REPEATABLE_READ

public static final int ISOLATION_REPEATABLE_READ

ISOLATION_SERIALIZABLE

public static final int ISOLATION_SERIALIZABLE

TIMEOUT_DEFAULT

public static final int TIMEOUT_DEFAULT
Default transaction timeout
Method Detail

getPropagationBehavior

public int getPropagationBehavior()
Return the propagation behavior. Must return of the constants in PlatformTransactionManager.
See Also:
PlatformTransactionManager

getIsolationLevel

public int getIsolationLevel()
Return the isolation level. Must return of the constants in PlatformTransactionManager.
See Also:
PlatformTransactionManager

getTimeout

public int getTimeout()
Return the transaction timeout. Must return a number of seconds, or TIMEOUT_DEFAULT.
See Also:
TIMEOUT_DEFAULT


Rod Johnson and Spring contributors 2001-2003.