public class CacheInstance extends Object implements Serializable
| Constructor and Description |
|---|
CacheInstance(CacheImpl cache,
ManagedInstance<?> managedInstance) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyTo(CacheImpl cache,
ManagedInstance<?> managedInstance)
Copies the instance state to the given managed instance.
|
Collection<?> |
getCollection(ManagedInstance<?> managedInstance,
PluralAssociationMapping<?,?,?> mapping) |
String |
getEntityName()
Returns the name of the entity of the cache instance.
|
String |
toString() |
boolean |
updateCollection(MetamodelImpl metamodel,
CacheImpl cache,
PluralMapping<?,?,?> mapping,
Object instance)
Updates the cache instance's collection mapping
|
public CacheInstance(CacheImpl cache, ManagedInstance<?> managedInstance)
cache - the cachemanagedInstance - the managed instancepublic void copyTo(CacheImpl cache, ManagedInstance<?> managedInstance)
cache - the cachemanagedInstance - the managed instance to copy topublic Collection<?> getCollection(ManagedInstance<?> managedInstance, PluralAssociationMapping<?,?,?> mapping)
managedInstance - the managed instancemapping - the mappingpublic String getEntityName()
public boolean updateCollection(MetamodelImpl metamodel, CacheImpl cache, PluralMapping<?,?,?> mapping, Object instance)
metamodel - the metamodelcache - the cachemapping - the mappinginstance - the instanceCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.