protected class DefaultEntityProxyFactory.EntityProxyCache
extends java.lang.Object
WeakHashMap cache for Entity proxies.Collections.synchronizedMap(Map)| Modifier and Type | Method and Description |
|---|---|
<T extends Entity> |
getOrNew(Entity e,
java.lang.Class<T> type)
Either retrieves a proxy from the cache or creates (and caches) a new entity proxy.
|
void |
invalidateAll()
Uncaches all proxies.
|
void |
invalidateEntity(Entity e)
Uncaches all proxies for an entity.
|
void |
invalidateType(Entity e,
java.lang.Class<? extends Entity> type)
Uncaches a the proxy of the specified type for the entity.
|
public <T extends Entity> T getOrNew(Entity e, java.lang.Class<T> type)
e - Entity to cache type for.type - Entity type to proxy.DefaultEntityProxyFactory.EntityProxyHandlerpublic void invalidateAll()
public void invalidateEntity(Entity e)
e - Entity key.