Internal Website Search

1-5 of 5 results

Shared (L2) Entity Cache

of the CacheRetrieveMode enum: CacheRetrieveMode . USE - cache is used. CacheRetrieveMode . BYPASS - cache is not ... ( "javax.persistence.cache.retrieveMode", CacheRetrieveMode . BYPASS ); Setting ... ("javax.persistence.cache.retrieveMode",   CacheRetrieveMode . BYPASS ); // For retrieval by type

javax.persistence.CacheRetrieveMode

JPA Enum CacheRetrieveMode java.lang.Object ∟  java.lang.Enum ∟  javax.persistence. CacheRetrieveMode Used as the value of the javax.persistence.cache.retrieveMode property to specify ... ) Entity Cache article explains how to use CacheRetrieveMode . Enum Constants BYPASS Bypass the cache

javax.persistence.CacheRetrieveMode.BYPASS

JPA Enum Constant in javax.persistence. CacheRetrieveMode BYPASS Bypass the cache: get data directly from the database. Since: JPA 2.0

javax.persistence.CacheRetrieveMode.USE

JPA Enum Constant in javax.persistence. CacheRetrieveMode USE Read entity data from the cache: this is the default behavior. Since: JPA 2.0

Control and Setting

This section contains miscellaneous JPA types. The PersistenceUtil and PersistenceUnitUtil interfaces provide general utility methods: The Cache interface and the CacheRetrieveMode and CacheStoreMode enum types serve in managing the EntityManagerFactory's shared (level 2) cache: Other enum types are provided for setting of various JPA operations: