org.eclipse.jpt.jpa.eclipselink.core.context.persistence.caching
Enum CacheType
java.lang.Object
java.lang.Enum<CacheType>
org.eclipse.jpt.jpa.eclipselink.core.context.persistence.caching.CacheType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<CacheType>
public enum CacheType
- extends java.lang.Enum<CacheType>
CacheType
|
Field Summary |
static java.lang.String |
FULL
|
static java.lang.String |
HARD_WEAK
|
static java.lang.String |
NONE
|
static java.lang.String |
SOFT
|
static java.lang.String |
SOFT_WEAK
|
static java.lang.String |
WEAK
|
|
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 |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
soft_weak
public static final CacheType soft_weak
hard_weak
public static final CacheType hard_weak
weak
public static final CacheType weak
soft
public static final CacheType soft
full
public static final CacheType full
none
public static final CacheType none
FULL
public static final java.lang.String FULL
- See Also:
- Constant Field Values
HARD_WEAK
public static final java.lang.String HARD_WEAK
- See Also:
- Constant Field Values
NONE
public static final java.lang.String NONE
- See Also:
- Constant Field Values
SOFT
public static final java.lang.String SOFT
- See Also:
- Constant Field Values
SOFT_WEAK
public static final java.lang.String SOFT_WEAK
- See Also:
- Constant Field Values
WEAK
public static final java.lang.String WEAK
- See Also:
- Constant Field Values
values
public static CacheType[] values()
- 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 (CacheType c : CacheType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CacheType valueOf(java.lang.String name)
- 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