org.objectweb.speedo.genclass.collection
Class VectorImpl
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
org.objectweb.speedo.genclass.collection.VectorImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess, org.objectweb.jorm.api.PBinding, CacheEntry, FixableCacheEntry, ReplaceableCacheEntry, SpeedoGenClassCoherence, SpeedoGenClassPO, PersistentObjectItf
public abstract class VectorImpl
- extends java.util.Vector
- implements SpeedoGenClassPO
- Author:
- S.Chassande-Barrioz
- See Also:
- Serialized Form
Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
modCount |
Fields inherited from interface org.objectweb.jorm.api.PBinding |
ACTION_BIND, ACTION_EXIST, ACTION_EXPORT, ACTION_READ, ACTION_UNBIND, ACTION_UNEXPORT, ACTION_WRITE, LIFECYCLE_ACTIVEFORIO, LIFECYCLE_DELTOWRITE, LIFECYCLE_ERROR, LIFECYCLE_NEWTOWRITE, LIFECYCLE_NOTBOUND |
Methods inherited from class java.util.Vector |
addElement, capacity, clone, copyInto, elementAt, elements, ensureCapacity, firstElement, hashCode, indexOf, insertElementAt, lastElement, lastIndexOf, removeAllElements, removeElement, removeElementAt, removeRange, setElementAt, setSize, toString, trimToSize |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.objectweb.speedo.genclass.api.SpeedoGenClassPO |
fireSpeedoElementAdded, fireSpeedoElementRemoved, init, setElements, speedoAddGenClassListener, speedoGetGenClassId, speedoGetPBinding, speedoGetPType, speedoSetGcId, speedoSetLinkedField, speedoSetPBinding, speedoSetPNameHints, speedoSetPType |
Methods inherited from interface org.objectweb.speedo.mim.api.PersistentObjectItf |
speedoAdd, speedoCopyState, speedoGetEncodedPName, speedoGetHome, speedoGetPNameHints, speedoGetPOManager, speedoGetState, speedoIsActive, speedoIsActive, speedoIsPersistent, speedoSetEncodedPName |
Methods inherited from interface org.objectweb.jorm.api.PBinding |
bind, exist, export, export, getPClassMapping, getPName, getStatus, init, read, read, read, unbind, unexport, write |
VectorImpl
public VectorImpl()
speedoGetReferenceState
public StateItf speedoGetReferenceState()
- Specified by:
speedoGetReferenceState
in interface PersistentObjectItf
- Returns:
- the reference accessor of the PersistentObjectItf instance. It can be *
null.
The Reference accessor is used for non persistent instance, as cache
value and for pessimistic policy.
speedoSetReferenceState
public void speedoSetReferenceState(StateItf refAcc)
- Description copied from interface:
PersistentObjectItf
- Assignes the reference accessor to the PersistentObjectItf
The Reference accessor is used for non persistent instance, as cache
value and for pessimistic policy.
- Specified by:
speedoSetReferenceState
in interface PersistentObjectItf
- Parameters:
refAcc
- the new reference accessor
add
public boolean add(java.lang.Object o)
- Specified by:
add
in interface java.util.Collection
- Specified by:
add
in interface java.util.List
- Overrides:
add
in class java.util.Vector
addAll
public boolean addAll(java.util.Collection c)
- Specified by:
addAll
in interface java.util.Collection
- Specified by:
addAll
in interface java.util.List
- Overrides:
addAll
in class java.util.Vector
clear
public void clear()
- Specified by:
clear
in interface java.util.Collection
- Specified by:
clear
in interface java.util.List
- Specified by:
clear
in interface SpeedoGenClassPO
- Overrides:
clear
in class java.util.Vector
contains
public boolean contains(java.lang.Object o)
- Specified by:
contains
in interface java.util.Collection
- Specified by:
contains
in interface java.util.List
- Overrides:
contains
in class java.util.Vector
containsAll
public boolean containsAll(java.util.Collection c)
- Specified by:
containsAll
in interface java.util.Collection
- Specified by:
containsAll
in interface java.util.List
- Overrides:
containsAll
in class java.util.Vector
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interface java.util.Collection
- Specified by:
equals
in interface java.util.List
- Overrides:
equals
in class java.util.Vector
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface java.util.Collection
- Specified by:
isEmpty
in interface java.util.List
- Overrides:
isEmpty
in class java.util.Vector
iterator
public java.util.Iterator iterator()
- Specified by:
iterator
in interface java.lang.Iterable
- Specified by:
iterator
in interface java.util.Collection
- Specified by:
iterator
in interface java.util.List
- Overrides:
iterator
in class java.util.AbstractList
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove
in interface java.util.Collection
- Specified by:
remove
in interface java.util.List
- Overrides:
remove
in class java.util.Vector
removeAll
public boolean removeAll(java.util.Collection c)
- Specified by:
removeAll
in interface java.util.Collection
- Specified by:
removeAll
in interface java.util.List
- Overrides:
removeAll
in class java.util.Vector
retainAll
public boolean retainAll(java.util.Collection c)
- Specified by:
retainAll
in interface java.util.Collection
- Specified by:
retainAll
in interface java.util.List
- Overrides:
retainAll
in class java.util.Vector
size
public int size()
- Specified by:
size
in interface java.util.Collection
- Specified by:
size
in interface java.util.List
- Overrides:
size
in class java.util.Vector
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interface java.util.Collection
- Specified by:
toArray
in interface java.util.List
- Overrides:
toArray
in class java.util.Vector
toArray
public java.lang.Object[] toArray(java.lang.Object[] a)
- Specified by:
toArray
in interface java.util.Collection
- Specified by:
toArray
in interface java.util.List
- Overrides:
toArray
in class java.util.Vector
add
public void add(int index,
java.lang.Object element)
- Specified by:
add
in interface java.util.List
- Overrides:
add
in class java.util.Vector
addAll
public boolean addAll(int index,
java.util.Collection c)
- Specified by:
addAll
in interface java.util.List
- Overrides:
addAll
in class java.util.Vector
get
public java.lang.Object get(int index)
- Specified by:
get
in interface java.util.List
- Overrides:
get
in class java.util.Vector
indexOf
public int indexOf(java.lang.Object elem)
- Specified by:
indexOf
in interface java.util.List
- Overrides:
indexOf
in class java.util.Vector
remove
public java.lang.Object remove(int index)
- Specified by:
remove
in interface java.util.List
- Overrides:
remove
in class java.util.Vector
set
public java.lang.Object set(int index,
java.lang.Object element)
- Specified by:
set
in interface java.util.List
- Overrides:
set
in class java.util.Vector
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOf
in interface java.util.List
- Overrides:
lastIndexOf
in class java.util.Vector
listIterator
public java.util.ListIterator listIterator()
- Specified by:
listIterator
in interface java.util.List
- Overrides:
listIterator
in class java.util.AbstractList
listIterator
public java.util.ListIterator listIterator(int i)
- Specified by:
listIterator
in interface java.util.List
- Overrides:
listIterator
in class java.util.AbstractList
subList
public java.util.List subList(int i,
int i1)
- Specified by:
subList
in interface java.util.List
- Overrides:
subList
in class java.util.Vector
createGenClass
public java.lang.Object createGenClass()
- Specified by:
createGenClass
in interface SpeedoGenClassPO
speedoCreateState
public StateItf speedoCreateState()
- Specified by:
speedoCreateState
in interface PersistentObjectItf
- Returns:
- a new StateItf instance.