ObjectDB ObjectDB

contains(cls, primaryKey) - JPA Cache's method

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