public static enum Session.TransactionMode extends Enum<Session.TransactionMode>
| Enum Constant and Description |
|---|
AUTO
Creates a new transaction for every request, and commits (or rolls back)
the transaction at the end of that request
|
QUERY
Creates a read-only query transaction to group requests.
|
UPDATE
Creates an updating transaction to group requests.
|
| Modifier and Type | Method and Description |
|---|---|
static Session.TransactionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Session.TransactionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Session.TransactionMode AUTO
public static final Session.TransactionMode QUERY
public static final Session.TransactionMode UPDATE
public static Session.TransactionMode[] values()
for (Session.TransactionMode c : Session.TransactionMode.values()) System.out.println(c);
public static Session.TransactionMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016 MarkLogic Corporation. All Rights Reserved.
Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com