com.jpattern.orm.transaction
Interface TransactionDefinition

All Superinterfaces:
Serializable
All Known Implementing Classes:
OrmTransactionDefinition

public interface TransactionDefinition
extends Serializable

Author:
cinafr

Field Summary
static TransactionIsolation ISOLATION_DEFAULT
           
static TransactionPropagation PROPAGATION_DEFAULT
           
static boolean READ_ONLY_DEFAULT
           
static int TIMEOUT_DEFAULT
          Use the default timeout of the underlying transaction system, or none if timeouts are not supported.
 
Method Summary
 TransactionIsolation getIsolationLevel()
          Return the isolation level.
 TransactionPropagation getPropagation()
          Return the propagation behavior.
 int getTimeout()
          Return the transaction timeout.
 boolean isReadOnly()
          Return whether to optimize as a read-only transaction.
 

Field Detail

TIMEOUT_DEFAULT

static final int TIMEOUT_DEFAULT
Use the default timeout of the underlying transaction system, or none if timeouts are not supported.

See Also:
Constant Field Values

PROPAGATION_DEFAULT

static final TransactionPropagation PROPAGATION_DEFAULT

ISOLATION_DEFAULT

static final TransactionIsolation ISOLATION_DEFAULT

READ_ONLY_DEFAULT

static final boolean READ_ONLY_DEFAULT
See Also:
Constant Field Values
Method Detail

getPropagation

TransactionPropagation getPropagation()
Return the propagation behavior.


getIsolationLevel

TransactionIsolation getIsolationLevel()
Return the isolation level.


getTimeout

int getTimeout()
Return the transaction timeout.


isReadOnly

boolean isReadOnly()
Return whether to optimize as a read-only transaction.



Copyright © 2013. All Rights Reserved.