|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<PersistencePrioritizationDefinition> net.sourceforge.domian.repository.PersistencePrioritizationDefinition
@Deprecated 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 |
---|
public static final PersistencePrioritizationDefinition DIRECTION
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.
public static final PersistencePrioritizationDefinition TIMESTAMP
public static final PersistencePrioritizationDefinition REFERENCE
Method Detail |
---|
public static PersistencePrioritizationDefinition[] values()
for (PersistencePrioritizationDefinition c : PersistencePrioritizationDefinition.values()) System.out.println(c);
public static PersistencePrioritizationDefinition valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |