org.jboss.metadata.web.jboss
Enum ReplicationTrigger

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

public enum ReplicationTrigger
extends Enum<ReplicationTrigger>


Enum Constant Summary
ACCESS
          Merely accessing the session marks the session as dirty
SET
          Only calling setAttribute() marks the session as dirty
SET_AND_GET
          Calling setAttribute() or getAttribute() marks the session as dirty
SET_AND_NON_PRIMITIVE_GET
          Calling setAttribute() marks the session as dirty, as does getAttribute() if the returned type is not String or Number
 
Method Summary
static ReplicationTrigger fromInt(int ordinal)
           
static ReplicationTrigger fromString(String policy)
           
static ReplicationTrigger valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ReplicationTrigger[] 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

ACCESS

public static final ReplicationTrigger ACCESS
Merely accessing the session marks the session as dirty


SET_AND_GET

public static final ReplicationTrigger SET_AND_GET
Calling setAttribute() or getAttribute() marks the session as dirty


SET_AND_NON_PRIMITIVE_GET

public static final ReplicationTrigger SET_AND_NON_PRIMITIVE_GET
Calling setAttribute() marks the session as dirty, as does getAttribute() if the returned type is not String or Number


SET

public static final ReplicationTrigger SET
Only calling setAttribute() marks the session as dirty

Method Detail

values

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

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

valueOf

public static ReplicationTrigger 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 ReplicationTrigger fromString(String policy)

fromInt

public static ReplicationTrigger fromInt(int ordinal)


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