javax.persistence.cache.storeMode property to specify
the behavior when data is read from the database and when data is
committed into the database.
| Modifier and Type | Field and Description |
|---|---|
| public static final CacheStoreMode | BYPASS
Don't insert into cache. |
| public static final CacheStoreMode | REFRESH
Insert/update entity data into cache when read from database and when committed into database. |
| public static final CacheStoreMode | USE
Insert entity data into cache when read from database and insert/update entity data when committed into database: this is the default behavior. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static CacheStoreMode | |
| public static CacheStoreMode[] |
| BYPASS | back to summary |
|---|---|
| public static final CacheStoreMode BYPASS Don't insert into cache. | |
| REFRESH | back to summary |
|---|---|
| public static final CacheStoreMode REFRESH Insert/update entity data into cache when read from database and when committed into database. Forces refresh of cache for items read from database. | |
| USE | back to summary |
|---|---|
| public static final CacheStoreMode USE Insert entity data into cache when read from database and insert/update entity data when committed into database: this is the default behavior. Does not force refresh of already cached items when reading from database. | |
| CacheStoreMode | back to summary |
|---|---|
| private CacheStoreMode() | |
| valueOf | back to summary |
|---|---|
| public static CacheStoreMode valueOf(String name) | |
| values | back to summary |
|---|---|
| public static CacheStoreMode[] values() | |