org.objectweb.speedo.genclass.collection
Class SetAccessor

java.lang.Object
  extended by org.objectweb.speedo.mim.lib.AbstractStateImpl
      extended by org.objectweb.speedo.genclass.GenClassAccessor
          extended by org.objectweb.speedo.genclass.collection.CollectionAccessor
              extended by org.objectweb.speedo.genclass.collection.SetAccessor
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.Set, org.objectweb.jorm.api.PAccessor, org.objectweb.jorm.api.PGenClassAccessor, org.objectweb.jorm.api.PIndexedElemFactory, State, SpeedoGenClassCoherence, StateItf

public class SetAccessor
extends CollectionAccessor
implements java.util.Set

Author:
Sebastien Chassande-Barrioz
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.speedo.genclass.collection.CollectionAccessor
collection
 
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
SetAccessor(SpeedoGenClassPO apo)
          Instanciates and initializes a new set with an initial set size.
 
Method Summary
 org.objectweb.jorm.api.PIndexedElem createPIndexedElem(GenClassAccessor gca)
           
protected  boolean duplicatAllowed()
           
 GenClassElement speedoAdd(java.lang.Object o, boolean allowDuplicates)
           
 
Methods inherited from class org.objectweb.speedo.genclass.collection.CollectionAccessor
add, addAll, attachCopy, clear, contains, containsAll, deletePersistent, detachCopy, equals, forceDetachedDirty, isEmpty, iterator, loadFieldsFromAccessor, makePersistent, makePersistentOnAttach, refresh, remove, removeAll, restoreDetachedNone, retainAll, retrieve, setElements, size, speedoAdd, speedoAddOnAttach, speedoRemove, speedoRemove2, toArray, toArray, 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.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

SetAccessor

public SetAccessor(SpeedoGenClassPO apo)
Instanciates and initializes a new set with an initial set size.

Method Detail

duplicatAllowed

protected boolean duplicatAllowed()
Overrides:
duplicatAllowed in class CollectionAccessor

createPIndexedElem

public org.objectweb.jorm.api.PIndexedElem createPIndexedElem(GenClassAccessor gca)
Overrides:
createPIndexedElem in class CollectionAccessor

speedoAdd

public GenClassElement speedoAdd(java.lang.Object o,
                                 boolean allowDuplicates)
Overrides:
speedoAdd in class CollectionAccessor