|
EclipseLink 1.1.0_ 1.1.0.r3634 API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ReferenceMode>
org.eclipse.persistence.sessions.factories.ReferenceMode
public enum ReferenceMode
Purpose: This class is a configuration property used to specify What type of Referenes EclipseLink will use when referencing Entities within the Persistence Context / UnitOfWork. Depending on the configured ReferenceMode some Entities may be garbage collected.
| Enum Constant Summary | |
|---|---|
FORCE_WEAK
Same as weak reference except Objects that can not be changed tracked (Deferred Change Detection) will not be prevented from being garbage collected. |
|
HARD
References to Objects will be through hard references. |
|
WEAK
References to Objects that support active attribute change tracking (enabled through weaving or by the developer)will be held by weak references. |
|
| Method Summary | |
|---|---|
static ReferenceMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ReferenceMode[] |
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 |
|---|
public static final ReferenceMode HARD
public static final ReferenceMode WEAK
WeakReference
AttributeChangeTrackingPolicy
public static final ReferenceMode FORCE_WEAK
| Method Detail |
|---|
public static ReferenceMode[] values()
for (ReferenceMode c : ReferenceMode.values()) System.out.println(c);
public static ReferenceMode 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
|
EclipseLink 1.1.0_ 1.1.0.r3634 API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||