public class JtxTransactionMode
extends java.lang.Object
propagation behavior
,
isolation level
and read-only flag.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_TIMEOUT |
static JtxTransactionMode |
PROPAGATION_SUPPORTS_READ_ONLY |
protected JtxPropagationBehavior |
propagationBehavior |
static boolean |
READ_ONLY |
static boolean |
READ_WRITE |
Constructor and Description |
---|
JtxTransactionMode(JtxPropagationBehavior propagationBehavior,
boolean readOnly) |
JtxTransactionMode(JtxPropagationBehavior propagationBehavior,
JtxIsolationLevel isolationLevel,
boolean readOnly,
int timeout) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
JtxIsolationLevel |
getIsolationLevel() |
JtxPropagationBehavior |
getPropagationBehavior() |
int |
getTransactionTimeout()
Returns transaction timeout in seconds.
|
int |
hashCode() |
boolean |
isReadOnly() |
java.lang.String |
toString()
Returns tx description for debugging purposes.
|
protected final JtxPropagationBehavior propagationBehavior
public static final boolean READ_ONLY
public static final boolean READ_WRITE
public static final int DEFAULT_TIMEOUT
public static final JtxTransactionMode PROPAGATION_SUPPORTS_READ_ONLY
public JtxTransactionMode(JtxPropagationBehavior propagationBehavior, JtxIsolationLevel isolationLevel, boolean readOnly, int timeout)
public JtxTransactionMode(JtxPropagationBehavior propagationBehavior, boolean readOnly)
public JtxPropagationBehavior getPropagationBehavior()
public JtxIsolationLevel getIsolationLevel()
public boolean isReadOnly()
public int getTransactionTimeout()
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2003-present Jodd Team