Home » Search

About CacheRetrieveMode

1-9 of 9Refresh
Manual
147

Shared (L2) Entity Cache

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

javax.persistence.CacheRetrieveMode

javax.persistence Enum CacheRetrieveMode java.lang.Object java.lang.EnumCacheRetrieveMode> javax.persistence.CacheRetrieveMode Implemented Interfaces: Serializable, Comparable<CacheRetrieveMode> Used as the value of the javax.persistence.cache.retrieveMode
JPA Doc
101

values()

Static Method javax.persistence.CacheRetrieveMode CacheRetrieveMode[] values() Returns an array containing the constants of this enum type. This method may be used to iterate over the constants as follows: for (CacheRetrieveMode c : CacheRetrieveMode.values()) System.out.println(c) Returns
JPA Doc
95

valueOf(name)

Static Method javax.persistence.CacheRetrieveMode CacheRetrieveMode valueOf(   String name ) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. Parameters: name - the name of the enum constant
JPA Doc
93

JPA Miscellaneous

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:
JPA Doc
91

CacheRetrieveMode.BYPASS

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

CacheRetrieveMode.USE

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

java.io.Serializable

java.io Interface Serializable Subinterfaces: PersistenceManagerFactory, Query Implementing Classes: AccessType, PersistentAttributeType, BasicPermission, BindableType, ByteIdentity, CacheRetrieveMode, CacheStoreMode, CascadeType, CharIdentity, Trimspec, DiscriminatorStrategy, DiscriminatorType
Result
9

java.lang.Comparable

java.lang Interface Comparable Implementing Classes: AccessType, PersistentAttributeType, BindableType, ByteIdentity, CacheRetrieveMode, CacheStoreMode, CascadeType, CharIdentity, Trimspec, DiscriminatorStrategy, DiscriminatorType, Enum, EnumType, FetchType, FlushModeType, ForeignKeyAction