public class DbTransactionMode
extends java.lang.Object
DbSession
transactions.Modifier and Type | Field and Description |
---|---|
static int |
ISOLATION_DEFAULT
Default isolation.
|
static int |
ISOLATION_NONE |
static int |
ISOLATION_READ_COMMITTED |
static int |
ISOLATION_READ_UNCOMMITTED |
static int |
ISOLATION_REPEATABLE_READ |
static int |
ISOLATION_SERIALIZABLE |
static boolean |
READ_ONLY |
static DbTransactionMode |
READ_ONLY_TX |
static boolean |
READ_WRITE |
static DbTransactionMode |
READ_WRITE_TX |
Constructor and Description |
---|
DbTransactionMode(int isolation,
boolean readOnlyMode) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
int |
getIsolation()
Returns isolation level.
|
int |
hashCode() |
boolean |
isReadOnly()
Returns
true if transaction is read-only. |
public static final int ISOLATION_DEFAULT
public static final int ISOLATION_NONE
Connection.TRANSACTION_NONE
,
Constant Field Valuespublic static final int ISOLATION_READ_UNCOMMITTED
Connection.TRANSACTION_READ_UNCOMMITTED
,
Constant Field Valuespublic static final int ISOLATION_READ_COMMITTED
Connection.TRANSACTION_READ_COMMITTED
,
Constant Field Valuespublic static final int ISOLATION_REPEATABLE_READ
Connection.TRANSACTION_REPEATABLE_READ
,
Constant Field Valuespublic static final int ISOLATION_SERIALIZABLE
Connection.TRANSACTION_SERIALIZABLE
,
Constant Field Valuespublic static final boolean READ_ONLY
public static final boolean READ_WRITE
public static final DbTransactionMode READ_ONLY_TX
public static final DbTransactionMode READ_WRITE_TX
public int getIsolation()
public boolean isReadOnly()
true
if transaction is read-only.public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2003-present Jodd Team