net.sourceforge.domian.repository
Enum PersistencePrioritizationDefinition

java.lang.Object
  extended by java.lang.Enum<PersistencePrioritizationDefinition>
      extended by net.sourceforge.domian.repository.PersistencePrioritizationDefinition
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PersistencePrioritizationDefinition>

Deprecated.

@Deprecated
 enum PersistencePrioritizationDefinition
extends java.lang.Enum<PersistencePrioritizationDefinition>

Enum defining how to prioritize between the different entity versions (in-memory/persisted) when persisting.


Enum Constant Summary
DIRECTION
          Deprecated. Here, load means purging in-memory entities and replacing it with the persisted entities, while persist means purging persisted entities and replacing them with your in-memory entities.
REFERENCE
          Deprecated. The entity are always kept in memory, which are the latest versions by definition.
TIMESTAMP
          Deprecated. The time when entities were last modified determines which version being the valid one.
 
Method Summary
static PersistencePrioritizationDefinition valueOf(java.lang.String name)
          Deprecated. Returns the enum constant of this type with the specified name.
static PersistencePrioritizationDefinition[] values()
          Deprecated. 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

DIRECTION

public static final PersistencePrioritizationDefinition DIRECTION
Deprecated. 
Here, load means purging in-memory entities and replacing it with the persisted entities, while persist means purging persisted entities and replacing them with your in-memory entities.

The repository should populate memory from persistent medium when instansiated (load), It should further be considered prohibiting the use of the load method beyond this.


TIMESTAMP

public static final PersistencePrioritizationDefinition TIMESTAMP
Deprecated. 
The time when entities were last modified determines which version being the valid one.


REFERENCE

public static final PersistencePrioritizationDefinition REFERENCE
Deprecated. 
The entity are always kept in memory, which are the latest versions by definition.

Method Detail

values

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

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

valueOf

public static PersistencePrioritizationDefinition valueOf(java.lang.String name)
Deprecated. 
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


Copyright © 2006-2009. All Rights Reserved.