XCC/J 6.0-3

com.marklogic.xcc
Enum Session.TransactionMode

java.lang.Object
  extended by java.lang.Enum<Session.TransactionMode>
      extended by com.marklogic.xcc.Session.TransactionMode
All Implemented Interfaces:
Serializable, Comparable<Session.TransactionMode>
Enclosing interface:
Session

public static enum Session.TransactionMode
extends Enum<Session.TransactionMode>

The transaction mode for the session, which governs how transactions are created, and whether they are automatically committed.


Enum Constant Summary
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.
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AUTO

public static final Session.TransactionMode AUTO
Creates a new transaction for every request, and commits (or rolls back) the transaction at the end of that request


QUERY

public static final Session.TransactionMode QUERY
Creates a read-only query transaction to group requests. The transaction must be committed or rolled back explicitly.


UPDATE

public static final Session.TransactionMode UPDATE
Creates an updating transaction to group requests. The transaction must be committed or rolled back explicitly.

Method Detail

values

public static Session.TransactionMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Session.TransactionMode c : Session.TransactionMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Session.TransactionMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

XCC/J 6.0-3

Copyright © 2013 MarkLogic Corporation. All Rights Reserved.

Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com