ObjectDB Database Search

1-16 of 16 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

StoredProcedureQuery.setCacheRetrieveMode(cacheRetrieveMode) - JPA Method

JPA Method in jakarta.persistence.StoredProcedureQuery StoredProcedureQuery setCacheRetrieveMode (    CacheRetrieveMode   cacheRetrieveMode ) Set the cache retrieval mode that is in ... the entity manager. Parameters: cacheRetrieveMode - cache retrieval mode Return: the same query instance Since: JPA 3.2

TypedQuery.setCacheRetrieveMode(cacheRetrieveMode) - JPA Method

JPA Method in jakarta.persistence.TypedQuery TypedQuery setCacheRetrieveMode (    CacheRetrieveMode   cacheRetrieveMode ) Set the cache retrieval mode that is in effect during query ... . Parameters: cacheRetrieveMode - cache retrieval mode Return: the same query instance Since: JPA 3.2

EntityManager.setCacheRetrieveMode(cacheRetrieveMode) - JPA Method

JPA Method in jakarta.persistence.EntityManager void setCacheRetrieveMode (    CacheRetrieveMode   cacheRetrieveMode ) Set the default plain for this persistence context. Parameters: cacheRetrieveMode - cache retrieval mode Since: JPA 3.2

EnumRef jakarta.persistence.CacheRetrieveMode

JPA Enum CacheRetrieveMode java.lang.Object ∟  java.lang.Enum ∟  jakarta.persistence. CacheRetrieveMode Implemented Interfaces: FindOption Specifies how the EntityManager interacts ... .setCacheRetrieveMode Since: JPA 2.0 The Shared (L2) Entity Cache article explains how to use CacheRetrieveMode

Query.setCacheRetrieveMode(cacheRetrieveMode) - JPA Method

JPA Method in jakarta.persistence.Query Query setCacheRetrieveMode (    CacheRetrieveMode   cacheRetrieveMode ) Set the cache retrieval mode that is in effect during query execution ... : cacheRetrieveMode - cache retrieval mode Return: the same query instance Since: JPA 3.2

EnumConstRef jakarta.persistence.CacheRetrieveMode.BYPASS

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

EnumConstRef jakarta.persistence.CacheRetrieveMode.USE

JPA Enum Constant in jakarta.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:

InterfaceRef jakarta.persistence.Query

and the transaction is rolled back Since: JPA 1.0 CacheRetrieveMode getCacheRetrieveMode () The cache retrieval mode ... setCacheRetrieveMode ( CacheRetrieveMode   cacheRetrieveMode ) Set the cache retrieval mode ... use by the entity manager. Parameters: cacheRetrieveMode - cache retrieval mode Return: the same

InterfaceRef jakarta.persistence.TypedQuery

Since: JPA 1.0 CacheRetrieveMode getCacheRetrieveMode () The cache retrieval mode that will be in ... setCacheRetrieveMode ( CacheRetrieveMode   cacheRetrieveMode ) Set the cache retrieval mode that is in effect ... the entity manager. Parameters: cacheRetrieveMode - cache retrieval mode Return: the same query instance

InterfaceRef jakarta.persistence.EntityManager

CacheRetrieveMode getCacheRetrieveMode () The cache retrieval mode for this persistence context. Since: JPA 3.2 ... #accept} , if any Since: JPA 3.2 void setCacheRetrieveMode ( CacheRetrieveMode   cacheRetrieveMode ) Set the default plain for this persistence context. Parameters: cacheRetrieveMode - cache retrieval

InterfaceRef jakarta.persistence.StoredProcedureQuery

the query timeout value set and the transaction is rolled back Since: JPA 2.1 CacheRetrieveMode ... ( CacheRetrieveMode   cacheRetrieveMode ) Set the cache retrieval mode that is in effect ... manager. Parameters: cacheRetrieveMode - cache retrieval mode Return: the same query instance Since: JPA

EntityManager.getCacheRetrieveMode() - JPA Method

JPA Method in jakarta.persistence.EntityManager CacheRetrieveMode getCacheRetrieveMode () The cache retrieval mode for this persistence context. Since: JPA 3.2

InterfaceRef jakarta.persistence.FindOption

PessimisticLockScope CacheRetrieveMode CacheStoreMode Timeout EntityManager.find EntityManager.find Since: JPA 3.2

Query.getCacheRetrieveMode() - JPA Method

JPA Method in jakarta.persistence.Query CacheRetrieveMode getCacheRetrieveMode () The cache retrieval mode that will be in effect during query execution. Since: JPA 3.2