Package org.apache.openjpa.datacache
Enum DataCacheMode
- All Implemented Interfaces:
Serializable
,Comparable<DataCacheMode>
-
Enum Constant Summary
Enum ConstantDescriptionAll entities are cached regardless of annotations or xml configuration.All entities except those which are explicitly excluded will be cached.Only the entities which are configured to be in the cache will be cached.No entities are cached regardless of annotations or xml configuration.Default value. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataCacheMode
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.
-
Enum Constant Details
-
ALL
All entities are cached regardless of annotations or xml configuration.
-
NONE
No entities are cached regardless of annotations or xml configuration.
-
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.
-
DISABLE_SELECTIVE
All entities except those which are explicitly excluded will be cached.
AKA opt-out
-
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
openjpa.DataCache configuration property.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-