persistence.xml
shared-cache-mode element, and returned as the result of
PersistenceUnitInfo#getSharedCacheMode().
| Modifier and Type | Field and Description |
|---|---|
| public static final SharedCacheMode | ALL
All entities and entity-related state and data are cached. |
| public static final SharedCacheMode | DISABLE_SELECTIVE
Caching is enabled for all entities except those for which
|
| public static final SharedCacheMode | ENABLE_SELECTIVE
Caching is enabled for all entities for which
|
| public static final SharedCacheMode | NONE
Caching is disabled for the persistence unit. |
| public static final SharedCacheMode | UNSPECIFIED
Caching behavior is undefined: provider-specific defaults may apply. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static SharedCacheMode | |
| public static SharedCacheMode[] |
| ALL | back to summary |
|---|---|
| public static final SharedCacheMode ALL All entities and entity-related state and data are cached. | |
| DISABLE_SELECTIVE | back to summary |
|---|---|
| public static final SharedCacheMode DISABLE_SELECTIVE Caching is enabled for all entities except those for which
| |
| ENABLE_SELECTIVE | back to summary |
|---|---|
| public static final SharedCacheMode ENABLE_SELECTIVE Caching is enabled for all entities for which
| |
| NONE | back to summary |
|---|---|
| public static final SharedCacheMode NONE Caching is disabled for the persistence unit. | |
| UNSPECIFIED | back to summary |
|---|---|
| public static final SharedCacheMode UNSPECIFIED Caching behavior is undefined: provider-specific defaults may apply. | |
| SharedCacheMode | back to summary |
|---|---|
| private SharedCacheMode() | |
| valueOf | back to summary |
|---|---|
| public static SharedCacheMode valueOf(String name) | |
| values | back to summary |
|---|---|
| public static SharedCacheMode[] values() | |