javax.persistence
Interface Cache


public interface Cache

Cache for objects

Since:
JPA 2.0

Method Summary
 boolean contains(java.lang.Class cl, java.lang.Object key)
          Returns true if the cache contains data for the entity
 void evict(java.lang.Class cl)
          Evict call members of the given class
 void evict(java.lang.Class cl, java.lang.Object key)
          Evict the data
 void evictAll()
          Clears the cache
 

Method Detail

contains

boolean contains(java.lang.Class cl,
                 java.lang.Object key)
Returns true if the cache contains data for the entity

Since:
JPA 2.0

evict

void evict(java.lang.Class cl,
           java.lang.Object key)
Evict the data

Since:
JPA 2.0

evict

void evict(java.lang.Class cl)
Evict call members of the given class

Since:
JPA 2.0

evictAll

void evictAll()
Clears the cache

Since:
JPA 2.0