|
||||||||||
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.collection.CollectionAccessor
public class CollectionAccessor
Field Summary | |
---|---|
protected java.util.Collection |
collection
is the internal collection used when the gen class is not active. |
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 | |
---|---|
CollectionAccessor(SpeedoGenClassPO thepo)
Instanciates and initializes a new collection with an initial size. |
Method Summary | |
---|---|
boolean |
add(java.lang.Object o)
|
boolean |
addAll(java.util.Collection c)
|
void |
attachCopy(POManagerItf pm,
java.util.Map map,
StateItf fieldsClone)
This method is used during the attach operation. |
void |
clear()
|
boolean |
contains(java.lang.Object o)
|
boolean |
containsAll(java.util.Collection c)
|
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 map,
StateItf fieldsClone,
java.util.Collection fgHints)
This method is used during the detach operation. |
protected boolean |
duplicatAllowed()
|
boolean |
equals(java.lang.Object o)
|
void |
forceDetachedDirty()
Force the detached status to DETACHED_DIRTY and all the xxxLoaded to true |
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
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 |
refresh(POManagerItf pm,
java.util.Map map,
java.util.Collection fgHints)
This method is used during the refresh operation. |
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection c)
|
void |
restoreDetachedNone()
Restore the detached status to DETACHED_NONE and all the xxxLoaded to false |
boolean |
retainAll(java.util.Collection c)
|
void |
retrieve(POManagerItf pm,
java.util.Map map,
java.util.Collection fgHints)
This method is used during the retrieve operation. |
void |
setElements(java.lang.Object o)
|
int |
size()
|
protected GenClassElement |
speedoAdd(java.lang.Object o,
boolean allowDuplicates)
|
boolean |
speedoAdd(java.lang.Object o,
java.lang.Object hints)
Askes the adding of an element into a generic class. |
protected GenClassElement |
speedoAddOnAttach(java.lang.Object o,
boolean allowDuplicates)
|
boolean |
speedoRemove(java.lang.Object o,
java.lang.Object hints)
Askes the removing of an element from a generic class. |
GenClassElement |
speedoRemove2(java.lang.Object o)
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
|
java.lang.String |
toString()
|
Methods inherited from class org.objectweb.speedo.genclass.GenClassAccessor |
---|
createPIndexedElem, getLogger, getMemoryInstance, loadFields, makeToMerge, merge, paAdd, paDeltaSupported, paGetNbElem, paIterator, paSetNbElem, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
---|
hashCode |
Field Detail |
---|
protected java.util.Collection collection
Constructor Detail |
---|
public CollectionAccessor(SpeedoGenClassPO thepo)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
protected boolean duplicatAllowed()
public GenClassElement speedoRemove2(java.lang.Object o)
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 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.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 void detachCopy(POManagerItf pm, java.util.Map map, StateItf fieldsClone, java.util.Collection fgHints)
StateItf
detachCopy
in interface StateItf
detachCopy
in class GenClassAccessor
pm
- is the po manager used during the detach operationmap
- 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 map, StateItf fieldsClone)
StateItf
attachCopy
in interface StateItf
attachCopy
in class GenClassAccessor
pm
- is the po manager used during the attach operationmap
- 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 map, java.util.Collection fgHints)
StateItf
refresh
in interface StateItf
refresh
in class GenClassAccessor
pm
- is the po manager used during the refresh operationmap
- 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 map, java.util.Collection fgHints)
StateItf
retrieve
in interface StateItf
retrieve
in class GenClassAccessor
pm
- is the po manager used during the retrieve operationmap
- 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 boolean add(java.lang.Object o)
add
in interface java.util.Collection
public boolean addAll(java.util.Collection c)
addAll
in interface java.util.Collection
public void clear()
clear
in interface java.util.Collection
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.Collection
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection
equals
in class java.lang.Object
public boolean isEmpty()
isEmpty
in interface java.util.Collection
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.Collection
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.Collection
public int size()
size
in interface java.util.Collection
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
public java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.Collection
public org.objectweb.jorm.api.PIndexedElem createPIndexedElem(GenClassAccessor gca)
createPIndexedElem
in class GenClassAccessor
public boolean speedoAdd(java.lang.Object o, java.lang.Object hints)
SpeedoGenClassCoherence
speedoAdd
in interface SpeedoGenClassCoherence
speedoAdd
in class GenClassAccessor
o
- is the element to addprotected GenClassElement speedoAdd(java.lang.Object o, boolean allowDuplicates)
protected GenClassElement speedoAddOnAttach(java.lang.Object o, boolean allowDuplicates)
public boolean speedoRemove(java.lang.Object o, java.lang.Object hints)
SpeedoGenClassCoherence
speedoRemove
in interface SpeedoGenClassCoherence
speedoRemove
in class GenClassAccessor
o
- is the element to removepublic void forceDetachedDirty()
StateItf
forceDetachedDirty
in interface StateItf
public void restoreDetachedNone()
StateItf
restoreDetachedNone
in interface StateItf
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |