JPA Method
in 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
Return:
boolean indicating whether the entity is in the cache
Since:
JPA 2.0