|
Oracle® Fusion Middleware Java API Reference for EclipseLink 11g Release 1 (11.1.1) E26376-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Object
java.lang.Enum<ReferenceMode>
org.eclipse.persistence.config.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_WEAKSame as weak reference except Objects that can not be changed tracked (Deferred Change Detection) will not be prevented from being garbage collected. |
|
HARDReferences to Objects will be through hard references. |
|
WEAKReferences 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 AttributeChangeTrackingPolicypublic 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 namejava.lang.NullPointerException - if the argument is null
|
Oracle® Fusion Middleware Java API Reference for EclipseLink 11g Release 1 (11.1.1) E26376-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||