public class StoreCacheImpl extends Object implements StoreCache
NAME_DEFAULT| Constructor and Description |
|---|
StoreCacheImpl(EntityManagerFactoryImpl emf,
DataCache cache)
Constructor; supply delegate.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Class cls,
Object oid)
Whether the cache contains data for the given oid.
|
boolean |
containsAll(Class cls,
Collection oids)
Whether the cache contains data for the given oids.
|
boolean |
containsAll(Class cls,
Object... oids)
Whether the cache contains data for the given oids.
|
boolean |
equals(Object other) |
void |
evict(Class cls) |
void |
evict(Class cls,
Object oid)
Remove data for the given oid from the cache.
|
void |
evictAll()
Clear the cache.
|
void |
evictAll(Class cls,
Collection oids)
Remove data for the given oids from the cache.
|
void |
evictAll(Class cls,
Object... oids)
Remove data for the given oids from the cache.
|
DataCache |
getDelegate()
Delegate.
|
CacheStatistics |
getStatistics()
Gets the number of read/write/hit on this receiver in total and per
class basis.
|
int |
hashCode() |
void |
pin(Class cls,
Object oid)
Pin the data for the given oid to the cache.
|
void |
pinAll(Class cls,
Collection oids)
Pin the data for the given oids to the cache.
|
void |
pinAll(Class cls,
Object... oids)
Pin the data for the given oids to the cache.
|
void |
unpin(Class cls,
Object oid)
Unpin the data for the given oid from the cache.
|
void |
unpinAll(Class cls,
Collection oids)
Unpin the data for the given oids from the cache.
|
void |
unpinAll(Class cls,
Object... oids)
Unpin the data for the given oids from the cache.
|
<T> T |
unwrap(Class<T> cls) |
public StoreCacheImpl(EntityManagerFactoryImpl emf, DataCache cache)
public DataCache getDelegate()
getDelegate in interface StoreCachepublic boolean contains(Class cls, Object oid)
StoreCachecontains in interface javax.persistence.Cachecontains in interface StoreCachepublic boolean containsAll(Class cls, Object... oids)
StoreCachecontainsAll in interface StoreCachepublic boolean containsAll(Class cls, Collection oids)
StoreCachecontainsAll in interface StoreCachepublic void pin(Class cls, Object oid)
StoreCachepin in interface StoreCachepublic void pinAll(Class cls, Object... oids)
StoreCachepinAll in interface StoreCachepublic void pinAll(Class cls, Collection oids)
StoreCachepinAll in interface StoreCachepublic void unpin(Class cls, Object oid)
StoreCacheunpin in interface StoreCachepublic void unpinAll(Class cls, Object... oids)
StoreCacheunpinAll in interface StoreCachepublic void unpinAll(Class cls, Collection oids)
StoreCacheunpinAll in interface StoreCachepublic void evict(Class cls, Object oid)
StoreCacheevict in interface javax.persistence.Cacheevict in interface StoreCachepublic void evictAll(Class cls, Object... oids)
StoreCacheevictAll in interface StoreCachepublic void evictAll(Class cls, Collection oids)
StoreCacheevictAll in interface StoreCachepublic void evictAll()
StoreCacheevictAll in interface javax.persistence.CacheevictAll in interface StoreCachepublic <T> T unwrap(Class<T> cls)
unwrap in interface javax.persistence.Cachepublic CacheStatistics getStatistics()
StoreCachegetStatistics in interface StoreCachepublic void evict(Class cls)
evict in interface javax.persistence.CacheCopyright © 2006–2022 Apache Software Foundation. All rights reserved.