@Deprecated public static enum Session.TransactionMode extends java.lang.Enum<Session.TransactionMode>
Enum Constant and Description |
---|
AUTO
Deprecated.
Creates a new transaction for every
request.
|
MULTI_AUTO
Deprecated.
Creates a transaction to group requests.
|
QUERY
Deprecated.
Creates a read-only query transaction to group
requests.
|
QUERY_SINGLE_STATEMENT
Deprecated.
Every request is in its own transaction.
|
UPDATE
Deprecated.
Creates an updating transaction to group
requests.
|
UPDATE_AUTO_COMMIT
Deprecated.
Creates a new transaction for every request, and
commits (or rolls back) the transaction at the end of that
request.
|
Modifier and Type | Method and Description |
---|---|
abstract Session.Update |
getUpdate()
Deprecated.
|
boolean |
isAutoCommit()
Deprecated.
|
boolean |
isRetryable()
Deprecated.
|
abstract Session.TransactionMode |
setAutoCommit(boolean autoCommit)
Deprecated.
|
abstract Session.TransactionMode |
setUpdate(Session.Update update)
Deprecated.
|
abstract java.lang.String |
toString()
Deprecated.
|
static Session.TransactionMode |
valueOf(java.lang.String name)
Deprecated.
Returns the enum constant of this type with the
specified name.
|
static Session.TransactionMode[] |
values()
Deprecated.
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 final Session.TransactionMode UPDATE_AUTO_COMMIT
public static final Session.TransactionMode QUERY_SINGLE_STATEMENT
public static final Session.TransactionMode MULTI_AUTO
public static Session.TransactionMode[] values()
for (Session.TransactionMode c : Session.TransactionMode.values()) System.out.println(c);
public static Session.TransactionMode valueOf(java.lang.String name)
name
- the name of the enum constant to be
returned.java.lang.IllegalArgumentException
- if this enum
type has no constant with the specified namejava.lang.NullPointerException
- if the argument
is nullpublic abstract java.lang.String toString()
toString
in
class java.lang.Enum<Session.TransactionMode>
public boolean isRetryable()
public boolean isAutoCommit()
public abstract Session.TransactionMode setAutoCommit(boolean autoCommit)
public abstract Session.Update getUpdate()
public abstract Session.TransactionMode setUpdate(Session.Update update)
Copyright © 2024 MarkLogic
Corporation
Complete online documentation for MarkLogic Server,
XQuery and related components may
be found at
developer.marklogic.com