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 StoreCache
public boolean contains(Class cls, Object oid)
StoreCache
contains
in interface javax.persistence.Cache
contains
in interface StoreCache
public boolean containsAll(Class cls, Object... oids)
StoreCache
containsAll
in interface StoreCache
public boolean containsAll(Class cls, Collection oids)
StoreCache
containsAll
in interface StoreCache
public void pin(Class cls, Object oid)
StoreCache
pin
in interface StoreCache
public void pinAll(Class cls, Object... oids)
StoreCache
pinAll
in interface StoreCache
public void pinAll(Class cls, Collection oids)
StoreCache
pinAll
in interface StoreCache
public void unpin(Class cls, Object oid)
StoreCache
unpin
in interface StoreCache
public void unpinAll(Class cls, Object... oids)
StoreCache
unpinAll
in interface StoreCache
public void unpinAll(Class cls, Collection oids)
StoreCache
unpinAll
in interface StoreCache
public void evict(Class cls, Object oid)
StoreCache
evict
in interface javax.persistence.Cache
evict
in interface StoreCache
public void evictAll(Class cls, Object... oids)
StoreCache
evictAll
in interface StoreCache
public void evictAll(Class cls, Collection oids)
StoreCache
evictAll
in interface StoreCache
public void evictAll()
StoreCache
evictAll
in interface javax.persistence.Cache
evictAll
in interface StoreCache
public <T> T unwrap(Class<T> cls)
unwrap
in interface javax.persistence.Cache
public CacheStatistics getStatistics()
StoreCache
getStatistics
in interface StoreCache
public void evict(Class cls)
evict
in interface javax.persistence.Cache
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.