boolean contains(
Class cls,
Object primaryKey
)
Whether the cache contains data for the given entity.
- Parameters:
cls
- entity classprimaryKey
- primary key
- Return:
- boolean indicating whether the entity is in the cache
- Since:
- JPA 2.0