org.deegree.protocol.wfs.transaction
Enum Transaction.ReleaseAction

java.lang.Object
  extended by java.lang.Enum<Transaction.ReleaseAction>
      extended by org.deegree.protocol.wfs.transaction.Transaction.ReleaseAction
All Implemented Interfaces:
Serializable, Comparable<Transaction.ReleaseAction>
Enclosing class:
Transaction

public static enum Transaction.ReleaseAction
extends Enum<Transaction.ReleaseAction>

Controls how locked features are treated when a transaction request is completed.


Enum Constant Summary
ALL
          Indicates that the locks on all feature instances locked using the associated lockId should be released when the transaction completes, regardless of whether or not a particular feature instance in the locked set was actually operated upon.
SOME
          Indicates that only the locks on feature instances modified by the transaction should be released.
 
Method Summary
static Transaction.ReleaseAction valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Transaction.ReleaseAction[] 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

ALL

public static final Transaction.ReleaseAction ALL
Indicates that the locks on all feature instances locked using the associated lockId should be released when the transaction completes, regardless of whether or not a particular feature instance in the locked set was actually operated upon.


SOME

public static final Transaction.ReleaseAction SOME
Indicates that only the locks on feature instances modified by the transaction should be released. The other, unmodified, feature instances should remain locked using the same lockId so that subsequent transactions can operate on those feature instances. If an expiry period was specified, the expiry counter must be reset to zero after each transaction unless all feature instances in the locked set have been operated upon.

Method Detail

values

public static Transaction.ReleaseAction[] 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 (Transaction.ReleaseAction c : Transaction.ReleaseAction.values())
    System.out.println(c);

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

valueOf

public static Transaction.ReleaseAction 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


Copyright © 2011. All Rights Reserved.