public class TransactionMode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static TransactionMode |
READONLY |
static TransactionMode |
UPDATE |
Modifier and Type | Method and Description |
---|---|
static TransactionMode |
getTransactionMode(boolean readOnly)
Gets The appropriate TransactionMode object for the given read-only setting
|
boolean |
isReadOnly()
Gets the readOnly status of this transaction mode
|
public static final TransactionMode READONLY
public static final TransactionMode UPDATE
public static TransactionMode getTransactionMode(boolean readOnly)
readOnly
- The read-only statuspublic final boolean isReadOnly()