|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.mim.lib.AbstractStateImpl
org.objectweb.speedo.genclass.GenClassAccessor
org.objectweb.speedo.genclass.map.MapAccessor
public class MapAccessor
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary | |
---|---|
protected java.util.Map |
map
A map containing the indexed elements of the genclass. |
Fields inherited from class org.objectweb.speedo.genclass.GenClassAccessor |
---|
deltaForMerge, elements, gcpo, logger, supportDelta, tmpelem |
Fields inherited from class org.objectweb.speedo.mim.lib.AbstractStateImpl |
---|
detachedStatus, hasBeenFlush, isToMerge, jdoStatus, speedoPO |
Constructor Summary | |
---|---|
MapAccessor(SpeedoGenClassPO apo)
Instanciates and initializes a new map with an initial size. |
Method Summary | |
---|---|
void |
attachCopy(POManagerItf pm,
java.util.Map attachCtx,
StateItf fieldsClone)
This method is used during the attach operation. |
void |
clear()
|
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
org.objectweb.jorm.api.PIndexedElem |
createPIndexedElem(GenClassAccessor gca)
|
void |
deletePersistent(POManagerItf pm)
Deletes persistent all inner elements of the persistent instance. |
void |
detachCopy(POManagerItf pm,
java.util.Map detachCtx,
StateItf fieldsClone,
java.util.Collection fgHints)
This method is used during the detach operation. |
java.util.Set |
entrySet()
|
void |
forceDetachedDirty()
Force the detached status to DETACHED_DIRTY and all the xxxLoaded to true |
java.lang.Object |
get(java.lang.Object key)
|
boolean |
isEmpty()
|
java.util.Set |
keySet()
|
void |
loadFieldsFromAccessor(StateItf sa)
|
void |
makePersistent(POManagerItf pm)
Makes persistent all inner elements of the persistent instance. |
void |
makePersistentOnAttach(POManagerItf pm,
java.util.Map map)
makes persistent on attach, taking into account the map representing the attch context. |
void |
paAdd(org.objectweb.jorm.api.PIndexedElem elem,
java.lang.Object conn)
|
int |
paGetNbElem()
|
java.util.Iterator |
paIterator()
|
void |
paSetNbElem(int nbelem)
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value,
boolean withCoherence)
|
void |
putAll(java.util.Map t)
|
void |
refresh(POManagerItf pm,
java.util.Map refreshCtx,
java.util.Collection fgHints)
This method is used during the refresh operation. |
java.lang.Object |
remove(java.lang.Object key)
|
java.lang.Object |
remove(java.lang.Object key,
boolean withCoherence)
|
void |
restoreDetachedNone()
Restore the detached status to DETACHED_NONE and all the xxxLoaded to false |
void |
retrieve(POManagerItf pm,
java.util.Map retrieveCtx,
java.util.Collection fgHints)
This method is used during the retrieve operation. |
void |
setElements(java.lang.Object o)
|
int |
size()
|
boolean |
speedoAdd(java.lang.Object elemToAdd,
java.lang.Object hints)
Askes the adding of an element into a generic class. |
boolean |
speedoRemove(java.lang.Object elemToRemove,
java.lang.Object hints)
Askes the removing of an element from a generic class. |
java.util.Collection |
values()
|
Methods inherited from class org.objectweb.speedo.genclass.GenClassAccessor |
---|
createPIndexedElem, getLogger, getMemoryInstance, loadFields, makeToMerge, merge, paDeltaSupported, setFlushed, unSwizzle, workingSetClosed |
Methods inherited from class org.objectweb.speedo.mim.lib.AbstractStateImpl |
---|
checkVersion, getCacheEntry, getDetachedStatus, getSpeedoPO, getUserKey, getVersion, hasBeenFlush, indexFieldModified, isToMerge, prepareWrite, setCacheEntry, setDetachedStatus, setSpeedoPO, speedoChangeStatus, speedoChangeVersion, speedoGetStatus, speedoSetStatus |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Field Detail |
---|
protected java.util.Map map
Constructor Detail |
---|
public MapAccessor(SpeedoGenClassPO apo)
Method Detail |
---|
public void makePersistent(POManagerItf pm)
StateItf
makePersistent
in interface StateItf
makePersistent
in class GenClassAccessor
pm
- is the po manager for making persistent inner element.public void deletePersistent(POManagerItf pm)
StateItf
deletePersistent
in interface StateItf
deletePersistent
in class GenClassAccessor
pm
- is the po manager for making persistent inner element.public void setElements(java.lang.Object o)
setElements
in class GenClassAccessor
public void loadFieldsFromAccessor(StateItf sa)
loadFieldsFromAccessor
in class GenClassAccessor
public boolean speedoAdd(java.lang.Object elemToAdd, java.lang.Object hints)
SpeedoGenClassCoherence
speedoAdd
in interface SpeedoGenClassCoherence
speedoAdd
in class GenClassAccessor
elemToAdd
- is the element to addpublic boolean speedoRemove(java.lang.Object elemToRemove, java.lang.Object hints)
SpeedoGenClassCoherence
speedoRemove
in interface SpeedoGenClassCoherence
speedoRemove
in class GenClassAccessor
elemToRemove
- is the element to removepublic void detachCopy(POManagerItf pm, java.util.Map detachCtx, StateItf fieldsClone, java.util.Collection fgHints)
StateItf
detachCopy
in interface StateItf
detachCopy
in class GenClassAccessor
pm
- is the po manager used during the detach operationdetachCtx
- is the map of the detached object. The use of this map permits
to support cycle in the object graph.fieldsClone
- is a clone of the current statefgHints
- represents the fetch plan.public void attachCopy(POManagerItf pm, java.util.Map attachCtx, StateItf fieldsClone)
StateItf
attachCopy
in interface StateItf
attachCopy
in class GenClassAccessor
pm
- is the po manager used during the attach operationattachCtx
- is the map of the atttached object. The use of this map permits
to support cycle in the object graph.fieldsClone
- is the detached state used to update the current statepublic void refresh(POManagerItf pm, java.util.Map refreshCtx, java.util.Collection fgHints)
StateItf
refresh
in interface StateItf
refresh
in class GenClassAccessor
pm
- is the po manager used during the refresh operationrefreshCtx
- is the map of the refreshed object. The use of this map permits
to support cycle in the object graph.fgHints
- represents the fetch plan.public void retrieve(POManagerItf pm, java.util.Map retrieveCtx, java.util.Collection fgHints)
StateItf
retrieve
in interface StateItf
retrieve
in class GenClassAccessor
pm
- is the po manager used during the retrieve operationretrieveCtx
- is the map of the retrieved object. The use of this map permits
to support cycle in the object graph.fgHints
- represents the fetch plan.public java.lang.Object put(java.lang.Object key, java.lang.Object value, boolean withCoherence)
public java.lang.Object remove(java.lang.Object key, boolean withCoherence)
public int size()
size
in interface java.util.Map
public boolean isEmpty()
isEmpty
in interface java.util.Map
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map
public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map
public void putAll(java.util.Map t)
putAll
in interface java.util.Map
public void clear()
clear
in interface java.util.Map
public java.util.Set keySet()
keySet
in interface java.util.Map
public java.util.Collection values()
values
in interface java.util.Map
public java.util.Set entrySet()
entrySet
in interface java.util.Map
public org.objectweb.jorm.api.PIndexedElem createPIndexedElem(GenClassAccessor gca)
createPIndexedElem
in class GenClassAccessor
public void paAdd(org.objectweb.jorm.api.PIndexedElem elem, java.lang.Object conn) throws org.objectweb.jorm.api.PExceptionIO
paAdd
in interface org.objectweb.jorm.api.PGenClassAccessor
paAdd
in class GenClassAccessor
org.objectweb.jorm.api.PExceptionIO
public int paGetNbElem()
paGetNbElem
in interface org.objectweb.jorm.api.PGenClassAccessor
paGetNbElem
in class GenClassAccessor
public java.util.Iterator paIterator()
paIterator
in interface org.objectweb.jorm.api.PGenClassAccessor
paIterator
in class GenClassAccessor
public void paSetNbElem(int nbelem)
paSetNbElem
in interface org.objectweb.jorm.api.PGenClassAccessor
paSetNbElem
in class GenClassAccessor
public void forceDetachedDirty()
StateItf
forceDetachedDirty
in interface StateItf
public void restoreDetachedNone()
StateItf
restoreDetachedNone
in interface StateItf
public void makePersistentOnAttach(POManagerItf pm, java.util.Map map)
StateItf
makePersistentOnAttach
in interface StateItf
makePersistentOnAttach
in class GenClassAccessor
pm
- is the po manager for making persistent inner element.map
- is the context of the attachment process.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |