IT. Expert System.

Java Enterprise Edition (EE)

Cache


javax.persistence
Interface Cache

public 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:
Java Persistence 2.0

Method Summary
 boolean contains(java.lang.Class cls, java.lang.Object primaryKey)
          Whether the cache contains data for the given entity.
 void evict(java.lang.Class cls)
          Remove the data for entities of the specified class (and its subclasses) from the cache.
 void evict(java.lang.Class cls, java.lang.Object primaryKey)
          Remove the data for the given entity from the cache.
 void evictAll()
          Clear the cache.
 

Method Detail

contains

boolean contains(java.lang.Class cls,
                 java.lang.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

evict

void evict(java.lang.Class cls,
           java.lang.Object primaryKey)
Remove the data for the given entity from the cache.

Parameters:
cls - entity class
primaryKey - primary key

evict

void evict(java.lang.Class cls)
Remove the data for entities of the specified class (and its subclasses) from the cache.

Parameters:
cls - entity class

evictAll

void evictAll()
Clear the cache.



Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 2002 / . Delta: 0.02014 с