|
EclipseLink 2.4.2, build 'v20130514-5956486' 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<CacheType>
org.eclipse.persistence.annotations.CacheType
public enum CacheType
The CacheType enum is used with the Cache annotation for a persistent class. It defines the type of cache (IdentityMap) used for the class. By default the SOFT_WEAK cache type is used.
Cache
Enum Constant Summary | |
---|---|
CACHE
A cache identity map maintains a fixed number of objects specified by the application. |
|
FULL
Provides full caching and guaranteed identity. |
|
HARD_WEAK
Identical to the soft cache weak (SOFT_WEAK) identity map except that it uses hard references in the sub-cache. |
|
NONE
WARNING: Does not preserve object identity and does not cache objects. |
|
SOFT
Similar to the FULL identity map except that the map holds the objects using soft references. |
|
SOFT_WEAK
Similar to the WEAK identity map except that it maintains a most-frequently-used sub-cache. |
|
WEAK
Similar to the FULL identity map except that the map holds the objects using weak references. |
Method Summary | |
---|---|
static CacheType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static CacheType[] |
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 CacheType FULL
public static final CacheType WEAK
public static final CacheType SOFT
public static final CacheType SOFT_WEAK
public static final CacheType HARD_WEAK
public static final CacheType CACHE
public static final CacheType NONE
Method Detail |
---|
public static CacheType[] values()
for (CacheType c : CacheType.values()) System.out.println(c);
public static CacheType 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 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |