Class JPAEntityCacheDAO
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractDAO<Entity>
-
- org.apache.syncope.core.persistence.jpa.dao.JPAEntityCacheDAO
-
- All Implemented Interfaces:
DAO<Entity>
,EntityCacheDAO
public class JPAEntityCacheDAO extends AbstractDAO<Entity> implements EntityCacheDAO
-
-
Field Summary
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
LOG
-
-
Constructor Summary
Constructors Constructor Description JPAEntityCacheDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
detach, entityManager, entityManagerFactory, isOracle, refresh
-
-
-
-
Method Detail
-
cacheStatisticsSPI
protected org.apache.openjpa.datacache.CacheStatisticsSPI cacheStatisticsSPI()
-
queryStatistics
protected org.apache.openjpa.kernel.QueryStatistics<org.apache.openjpa.datacache.QueryKey> queryStatistics()
-
getStatistics
public Map<String,Object> getStatistics()
- Specified by:
getStatistics
in interfaceEntityCacheDAO
-
enableStatistics
public void enableStatistics()
- Specified by:
enableStatistics
in interfaceEntityCacheDAO
-
disableStatistics
public void disableStatistics()
- Specified by:
disableStatistics
in interfaceEntityCacheDAO
-
resetStatistics
public void resetStatistics()
- Specified by:
resetStatistics
in interfaceEntityCacheDAO
-
evict
public void evict(Class<? extends Entity> entityClass, String key)
- Specified by:
evict
in interfaceEntityCacheDAO
-
clearCache
public void clearCache()
- Specified by:
clearCache
in interfaceEntityCacheDAO
-
-