org.jboss.metadata.web.jboss
Enum SnapshotMode

java.lang.Object
  extended by java.lang.Enum<SnapshotMode>
      extended by org.jboss.metadata.web.jboss.SnapshotMode
All Implemented Interfaces:
Serializable, Comparable<SnapshotMode>

public enum SnapshotMode
extends Enum<SnapshotMode>


Enum Constant Summary
INSTANT
          Merely accessing the session marks the session as dirty
INTERVAL
          Calling setAttribute() or getAttribute() marks the session as dirty
 
Method Summary
static SnapshotMode fromInt(int ordinal)
           
static SnapshotMode fromString(String mode)
           
static SnapshotMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SnapshotMode[] 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

INSTANT

public static final SnapshotMode INSTANT
Merely accessing the session marks the session as dirty


INTERVAL

public static final SnapshotMode INTERVAL
Calling setAttribute() or getAttribute() marks the session as dirty

Method Detail

values

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

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

valueOf

public static SnapshotMode 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

fromString

public static SnapshotMode fromString(String mode)

fromInt

public static SnapshotMode fromInt(int ordinal)


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.