public enum DataCacheMode extends Enum<DataCacheMode>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 nameNullPointerException
- if the argument is nullCopyright © 2006–2020 Apache Software Foundation. All rights reserved.