com.softwareag.centrasite.appl.framework.persistence
Enum PersistenceMode

java.lang.Object
  extended by java.lang.Enum<PersistenceMode>
      extended by com.softwareag.centrasite.appl.framework.persistence.PersistenceMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PersistenceMode>

public enum PersistenceMode
extends java.lang.Enum<PersistenceMode>

Contains the available persistence modes for the mapper. The mode can be set in the Configuration for the application.


Enum Constant Summary
FULL
          Maps beans to RegistryObject instances and persists them to the registry.
MAP_ONLY
          The BeanPool will only map the beans to RegistryObject instances and will not send any data to the registry.
 
Method Summary
static PersistenceMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PersistenceMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FULL

public static final PersistenceMode FULL
Maps beans to RegistryObject instances and persists them to the registry.


MAP_ONLY

public static final PersistenceMode MAP_ONLY
The BeanPool will only map the beans to RegistryObject instances and will not send any data to the registry. This mode is useful when you have other framework taking care of the persistence of the RegistryObject instances.

Method Detail

values

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

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

valueOf

public static PersistenceMode valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null