@NotStorableClass public class ObjectStateMap extends Object implements Runnable
Constructor and Description |
---|
ObjectStateMap()
empty object state informations at construction
|
public ObjectStateMap()
public void close()
public void setTrackingOfAccessedObjectEnabled(boolean trackingOfAccessedObjectEnabled)
public void setExclusiveAccessSession(boolean exclusiveAccessSession)
public ObjectAndPersistInfo getObjectPersistenceStateByObjectIdentityKey(IObjectIdentityKey objectIdentityKey)
public void clearObjectAndPersistInfoByDataRecordIdentifier(DataRecordIdentifier dataRecordIdentifier)
public void putToObjectAndPersistInfoByDataRecordIdentifier(ObjectAndPersistInfo objectAndPersistInfo)
public ObjectAndPersistInfo getObjectAndPersistInfoByIdentifier(DataRecordIdentifier identifier)
identifier
- data record identifierpublic ObjectAndPersistInfo getObjectAndPersistInfoOfObject(Object object)
object
- the object which for object and its persistence information is
ask forpublic ObjectAndPersistInfo createObjectAndPersistInfoOfObject(Object object, boolean proxyInstance, ClassInfo objectClassInfo) throws ObjectIOException
object
- the object which for object and its persistence information is
to createproxyInstance
- true if object is a proxy instanceobjectClassInfo
- the class information of the objectObjectIOException
public ObjectAndPersistInfo createSubstitutedObjectAndPersistInfoOfObject(Object object, ClassInfo objectClassInfo, ObjectAndPersistInfo substituteObjectAndPersistInfo) throws ObjectIOException
ObjectIOException
public boolean objectHasPersistenceState(ObjectAndPersistInfo objectAndPersistInfo)
objectAndPersistInfo
- object info which for persistence state looking forpublic void clear() throws ObjectIOException
ObjectIOException
public void weakReferenceOnObject() throws ObjectIOException
ObjectIOException
public void unWeakReferenceOnObject(ObjectAndPersistInfo toUnWeak)
public int getNumberOfObjectState()
public int getNumberOfWeakReference()
public int getNumberOfReferenced()
public Collection<ObjectAndPersistInfo> getObjectHavingStateSet()
public void objectIsAccessed(ObjectAndPersistInfo objectAndPersistInfoOfObject)
objectAndPersistInfoOfObject
- ObjectIOException
public Set<ObjectAndPersistInfo> mostAccessedObject(int quota)
quota
- @Fortest public List<ObjectAndPersistInfo> getObjectAndPersistInfoOfObjectFromQueue()
@Fortest public ObjectAndPersistInfo getObjectAndPersistInfoOfObjectFromQueue(Object object)
@Fortest public void listenStateMapClean(IObjectStateMapCLeanListener listener)
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.