| java.lang.Object org.objectweb.speedo.mim.lib.MemoryInstanceManagerImpl
MemoryInstanceManagerImpl | public class MemoryInstanceManagerImpl implements MemoryInstanceManager,MemoryInstanceManagerAttribute,StateManager,CacheEntryFactory,BindingController(Code) | | This class is an implementation of the MemoryInstanceManager provided by the
persistence framwork availlable in perseus. This implementation depends on
the identifier used, and the way to instanciate user objects. This
implementation supports only the jorm object identifier: PName.
This implementation supports also the instanciation of the Jorm generic
class. To do this it is needed to specify for each jorm generic class used
the name of the class which must be instanciated. This configuration is done
via the GenClassNames attribute.
This implementation does not used a pool, then the instance are created at
each newInstance call.
author: S.Chassande-Barrioz |
JORM_FACTORY_BINDING | final public static String JORM_FACTORY_BINDING(Code) | | |
logger | protected Logger logger(Code) | | |
MemoryInstanceManagerImpl | public MemoryInstanceManagerImpl()(Code) | | |
create | public FixableCacheEntry create(Object id, Object obj)(Code) | | binds the PersistentObjectItf to its identifier (PName) if it does not have
already one.
Parameters: id - is the PName of the PersistentObjectItf Parameters: obj - is the PersistentObjectItf instance added into the cache the PersistentObjectItf instance |
createState | public State createState(CacheEntry ce)(Code) | | |
createState | public State createState(State s)(Code) | | |
destroyState | public void destroyState(State state)(Code) | | |
entryBound | public void entryBound(CacheEvent event)(Code) | | Parameters: event - |
entryUnbound | public void entryUnbound(CacheEvent event)(Code) | | Parameters: event - |
getCachingStrategy | public int getCachingStrategy(Object o)(Code) | | |
getGenClassNames | public String getGenClassNames()(Code) | | a String describing the genclass names with the following format:"(jorm_name,java_name),(jorm_name,java_name),(jorm_name,java_name)}" |
getReferenceState | public State getReferenceState(CacheEntry ce)(Code) | | |
isBound | public boolean isBound(CacheEntry ce)(Code) | | |
isDirty | public boolean isDirty(State state)(Code) | | |
isExported | public boolean isExported(State state)(Code) | | |
isFlushed | public boolean isFlushed(State state)(Code) | | |
isObjectSharing | public boolean isObjectSharing(Object o)(Code) | | |
isToMerge | public boolean isToMerge(State state)(Code) | | |
isUnexported | public boolean isUnexported(State state)(Code) | | |
makeBound | public void makeBound(CacheEntry ce, Object oid)(Code) | | |
makeClean | public void makeClean(State state)(Code) | | |
makeDirty | public void makeDirty(State state)(Code) | | |
makeExported | public void makeExported(State state)(Code) | | |
makeFlushed | public void makeFlushed(State state)(Code) | | |
makeToMerge | public void makeToMerge(State state, Object thinLock)(Code) | | |
makeUnbound | public void makeUnbound(CacheEntry ce)(Code) | | |
makeUnexported | public void makeUnexported(State state)(Code) | | |
merge | public State merge(State oldState, State newState)(Code) | | |
newInstance | public Object newInstance(Object oid, ConnectionHolder context) throws PersistenceException(Code) | | It creates an instance since an identifier
Parameters: oid - is the identifier of the futur object a memory instance |
setGenClassNames | public void setGenClassNames(String gcname)(Code) | | It assignes a description of the gen class names.
Parameters: gcname - is the desciption which must follow this format:"(jorm_name,java_name),(jorm_name,java_name),(jorm_name,java_name)}" |
setReferenceState | public void setReferenceState(CacheEntry ce, State state)(Code) | | |
stateNoMoreUsed | public void stateNoMoreUsed(State state)(Code) | | |
|
|