@Repository public class JPAEntityCacheDAO extends AbstractDAO<Entity> implements EntityCacheDAO
LOG
Constructor and Description |
---|
JPAEntityCacheDAO() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.openjpa.datacache.CacheStatisticsSPI |
cacheStatisticsSPI() |
void |
clearCache() |
void |
disableStatistics() |
void |
enableStatistics() |
void |
evict(Class<? extends Entity> entityClass,
String key) |
Map<String,Object> |
getStatistics() |
protected org.apache.openjpa.kernel.QueryStatistics<org.apache.openjpa.datacache.QueryKey> |
queryStatistics() |
void |
resetStatistics() |
clear, detach, entityManager, entityManagerFactory, refresh
protected org.apache.openjpa.datacache.CacheStatisticsSPI cacheStatisticsSPI()
protected org.apache.openjpa.kernel.QueryStatistics<org.apache.openjpa.datacache.QueryKey> queryStatistics()
public Map<String,Object> getStatistics()
getStatistics
in interface EntityCacheDAO
public void enableStatistics()
enableStatistics
in interface EntityCacheDAO
public void disableStatistics()
disableStatistics
in interface EntityCacheDAO
public void resetStatistics()
resetStatistics
in interface EntityCacheDAO
public void evict(Class<? extends Entity> entityClass, String key)
evict
in interface EntityCacheDAO
public void clearCache()
clearCache
in interface EntityCacheDAO
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.