|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<DataCacheMode> org.apache.openjpa.datacache.DataCacheMode
public enum DataCacheMode
Enum Constant Summary | |
---|---|
ALL
All entities are cached regardless of annotations or xml configuration. |
|
DISABLE_SELECTIVE
All entities except those which are explicitly excluded will be cached. |
|
ENABLE_SELECTIVE
Only the entities which are configured to be in the cache will be cached. |
|
NONE
No entities are cached regardless of annotations or xml configuration. |
|
UNSPECIFIED
Default value. |
Method Summary | |
---|---|
static DataCacheMode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DataCacheMode[] |
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 DataCacheMode ALL
All entities are cached regardless of annotations or xml configuration.
public static final DataCacheMode NONE
No entities are cached regardless of annotations or xml configuration.
public static final DataCacheMode ENABLE_SELECTIVE
Only the entities which are configured to be in the cache will be cached. Entities which do not specify whether they are cacheable will be excluded
AKA opt-in.
public static final DataCacheMode DISABLE_SELECTIVE
All entities except those which are explicitly excluded will be cached.
AKA opt-out
public static final DataCacheMode UNSPECIFIED
Default value. In this case OpenJPA will behave as it did in previous
releases, and will take into account the includedTypes and excludedTypes
optional parameters on the
Method Detail |
---|
public static DataCacheMode[] values()
for (DataCacheMode c : DataCacheMode.values()) System.out.println(c);
public static DataCacheMode valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |