ObjectDB ObjectDB

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

Method
javax.persistence.Cache
void evict(
  Class cls,
  Object primaryKey
)

Remove the data for the given entity from the cache.
Parameters:
cls - entity class
primaryKey - primary key
Since:
JPA 2.0