org.objectweb.speedo.genclass.collection
Class CollectionImpl
java.lang.Object
org.objectweb.speedo.genclass.GenClass
org.objectweb.speedo.genclass.collection.CollectionImpl
- All Implemented Interfaces:
- java.util.Collection, SpeedoGenClassCoherence, SpeedoGenClassProxy, SpeedoProxy
- Direct Known Subclasses:
- ListImpl, SetImpl
- public class CollectionImpl
- extends GenClass
- implements java.util.Collection
This class is an implementation of the java.util.Collection interface.
- Author:
- Eric.Bruneton, S.Chassande-Barrioz
Fields inherited from class org.objectweb.speedo.genclass.GenClass |
age, fix, gcid, jdoIsActive, linkedField, listeners, logger, mapperName, pbinding, pmf, pnameHints, projectName, ptype, tpm |
Constructor Summary |
CollectionImpl()
Instanciates and initializes a new collection with an initial size. |
Methods inherited from class org.objectweb.speedo.genclass.GenClass |
bind, copyAccessor, elementIsReference, exist, export, export, fireSpeedoElementAdded, fireSpeedoElementRemoved, fixCe, getCeAge, getCeFixCount, getCeIdentifier, getCeObject, getInner, getJormConfig, getLogger, getLoggerFactory, getPClassMapping, getPName, getSpeedoAccessor, getSpeedoAccessors, getStatus, init, init, jdoCopyFields, jdoCopyKeyFieldsFromObjectId, jdoCopyKeyFieldsToObjectId, jdoCopyKeyFieldsToObjectId, jdoDeletePersistent, jdoGePNameHints, jdoGetGenClassId, jdoGetJdoFileName, jdoGetMapperName, jdoGetObjectId, jdoGetPBinding, jdoGetPersistenceManager, jdoGetProjectName, jdoGetProxyManagerFactory, jdoGetPType, jdoGetTransactionalObjectId, jdoGetTransactionalPersistenceManager, jdoIsActive, jdoIsActive, jdoIsDeleted, jdoIsDirty, jdoIsNew, jdoIsPersistent, jdoIsTransactional, jdoMakeDirty, jdoMakePersistent, jdoMakePersistent, jdoNewInstance, jdoNewInstance, jdoNewObjectIdInstance, jdoNewObjectIdInstance, jdoProvideField, jdoProvideFields, jdoReadIntention, jdoReplaceField, jdoReplaceFields, jdoReplaceFlags, jdoReplaceStateManager, jdoSetLinkedField, jdoSetMapperName, jdoSetPBinding, jdoSetPNameHints, jdoSetProxyManagerFactory, jdoSetPType, jdoSetTransactionalPersistenceManager, jdoWriteIntention, read, read, removeSpeedoAccessor, setCeAge, setInner, setLogger, setLoggerFactory, setPName, setStatus, speedoAdd, speedoAddGenClassListener, speedoSetGcId, unbind, unexport, unfixCe, write |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Collection |
hashCode |
DEFAULT_SIZE
protected static final int DEFAULT_SIZE
- See Also:
- Constant Field Values
CollectionImpl
public CollectionImpl()
- Instanciates and initializes a new collection with an initial size.
add
public boolean add(java.lang.Object o)
- Specified by:
add
in interface java.util.Collection
addAll
public boolean addAll(java.util.Collection c)
- Specified by:
addAll
in interface java.util.Collection
clear
public void clear()
- Specified by:
clear
in interface java.util.Collection
contains
public boolean contains(java.lang.Object o)
- Specified by:
contains
in interface java.util.Collection
containsAll
public boolean containsAll(java.util.Collection c)
- Specified by:
containsAll
in interface java.util.Collection
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interface java.util.Collection
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface java.util.Collection
iterator
public java.util.Iterator iterator()
- Specified by:
iterator
in interface java.util.Collection
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove
in interface java.util.Collection
removeAll
public boolean removeAll(java.util.Collection c)
- Specified by:
removeAll
in interface java.util.Collection
retainAll
public boolean retainAll(java.util.Collection c)
- Specified by:
retainAll
in interface java.util.Collection
size
public int size()
- Specified by:
size
in interface java.util.Collection
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interface java.util.Collection
toArray
public java.lang.Object[] toArray(java.lang.Object[] a)
- Specified by:
toArray
in interface java.util.Collection
jdoMakePersistent
public void jdoMakePersistent(ProxyManager pm,
SpeedoAccessor sa)
- Specified by:
jdoMakePersistent
in interface SpeedoProxy
speedoAdd
public boolean speedoAdd(java.lang.Object elemToAdd)
- Description copied from interface:
SpeedoGenClassCoherence
- Askes the adding of an element into a generic class. The consistency
of relations must not be managed: this is done by the caller of this
method.
- Specified by:
speedoAdd
in interface SpeedoGenClassCoherence
- Overrides:
speedoAdd
in class GenClass
speedoRemove
public boolean speedoRemove(java.lang.Object elemToRemove)
- Description copied from interface:
SpeedoGenClassCoherence
- Askes the removing of an element from a generic class. The consistency
of relations must not be managed: this is done by the caller of this
method.
- Specified by:
speedoRemove
in interface SpeedoGenClassCoherence
- Overrides:
speedoRemove
in class GenClass
createAccessor
public SpeedoAccessor createAccessor()
- Specified by:
createAccessor
in interface SpeedoProxy
- Specified by:
createAccessor
in class GenClass
createGenClass
public java.lang.Object createGenClass()
- Specified by:
createGenClass
in interface SpeedoGenClassProxy
getReferenceAccessor
public SpeedoAccessor getReferenceAccessor()
- Specified by:
getReferenceAccessor
in interface SpeedoProxy
- Specified by:
getReferenceAccessor
in class GenClass
setReferenceAccessor
public void setReferenceAccessor(SpeedoAccessor refAcc)
- Specified by:
setReferenceAccessor
in interface SpeedoProxy
- Specified by:
setReferenceAccessor
in class GenClass