Home » Search

About cache

1-10 of 200Refresh
Manual
342

Shared (L2) Entity Cache

that it manages. The persistence context serves as a first level cache. An attempt to retrieve ... is one EntityManager. This section describes a level 2  (L2) cache of entity objects, which is managed ... of this cache makes it useful in applications that use many short term EntityManager instances.  In addition
Manual
90

Database Management Settings

="." mode="write" />   cache="64mb" max-threads="10" synchronized="false" />    cache results ... . The element cache="64mb" max-threads="10" /> The element
Manual
75

Entity Management Settings

: <cache ref="weak" level2="0mb ... " - reflection is used even for enhanced classes (for troubleshooting). The <cache> element <cache ref="weak" level2="0mb" /> The <cache> element specifies settings of the two cache mechanisms
JPA Doc
73

javax.persistence.Cache

javax.persistence Interface Cache Interface used to interact with the second-level cache. If a cache is not in use, the methods of this interface have no effect, except for contains, which returns false. Since: JPA 2.0 Learn how to use Cache in Chapter 3 of the ObjectDB/JPA manual. boolean contains
JPA Doc
66

contains(cls, primaryKey)

Method javax.persistence.Cache boolean contains(   Class cls,   Object primaryKey ) Whether the cache contains data for the given entity. Parameters: cls - entity class primaryKey - primary key Returns: boolean indicating whether the entity is in the cache Since: JPA 2.0
JDO Doc
65

Constants.PMF_ATTRIBUTE_IGNORE_CACHE

Static Field javax.jdo.Constants String PMF_ATTRIBUTE_IGNORE_CACHE The name of the persistence manager factory element's "ignore-cache" attribute. Since: JDO 2.1
JPA Doc
65

evict(cls)

Method javax.persistence.Cache void evict(   Class cls ) Remove the data for entities of the specified class (and its subclasses) from the cache. Parameters: cls - entity class Since: JPA 2.0
JPA Doc
65

evict(cls, primaryKey)

Method javax.persistence.Cache void evict(   Class cls,   Object primaryKey ) Remove the data for the given entity from the cache. Parameters: cls - entity class primaryKey - primary key Since: JPA 2.0
JPA Doc
65

evictAll()

Method javax.persistence.Cache void evictAll() Clear the cache. Since: JPA 2.0
JDO Doc
64

Constants.PROPERTY_IGNORE_CACHE

Static Field javax.jdo.Constants String PROPERTY_IGNORE_CACHE "javax.jdo.option.IgnoreCache" Since: JDO 2.1 See Also: PersistenceManagerFactory.getIgnoreCache()