public class IndirectList extends java.util.Vector implements CollectionChangeTracker, IndirectCollection
To use an IndirectList:
CollectionMapping, IndirectMap, Serialized Form| Constructor and Description |
|---|
IndirectList()
PUBLIC: Construct an empty IndirectList so that its internal data array has size 10 and its standard capacity increment is zero.
|
IndirectList(java.util.Collection collection)
PUBLIC: Construct an IndirectList containing the elements of the specified collection, in the order they are returned by the collection's iterator.
|
IndirectList(int initialCapacity)
PUBLIC: Construct an empty IndirectList with the specified initial capacity and with its capacity increment equal to zero.
|
IndirectList(int initialCapacity, int capacityIncrement)
PUBLIC: Construct an empty IndirectList with the specified initial capacity and capacity increment.
|
| Modifier and Type | Method and Description |
|---|---|
java.beans.PropertyChangeListener |
_persistence_getPropertyChangeListener()
INTERNAL: Return the property change listener for change tracking.
|
void |
_persistence_setPropertyChangeListener(java.beans.PropertyChangeListener changeListener)
INTERNAL: Set the property change listener for change tracking.
|
void |
add(int index, java.lang.Object element) |
boolean |
add(java.lang.Object element) |
boolean |
addAll(java.util.Collection c) |
boolean |
addAll(int index, java.util.Collection c) |
void |
addElement(java.lang.Object obj) |
int |
capacity() |
void |
clear() |
void |
clearDeferredChanges()
INTERNAL: clear any changes that have been deferred to instantiation.
|
java.lang.Object |
clone()
PUBLIC:
|
boolean |
contains(java.lang.Object element)
PUBLIC:
|
boolean |
containsAll(java.util.Collection c) |
void |
copyInto(java.lang.Object[] anArray) |
java.lang.Object |
elementAt(int index) |
java.util.Enumeration |
elements() |
void |
ensureCapacity(int minCapacity) |
boolean |
equals(java.lang.Object o) |
java.lang.Object |
firstElement() |
java.lang.Object |
get(int index) |
java.util.Collection |
getAddedElements()
INTERNAL: Return the elements that have been added before instantiation.
|
java.lang.Object |
getDelegateObject()
INTERNAL: Return the real collection object.
|
java.util.Collection |
getRemovedElements()
INTERNAL: Return the elements that have been removed before instantiation.
|
java.lang.String |
getTrackedAttributeName()
INTERNAL: Return the mapping attribute name, used to raise change events.
|
ValueHolderInterface |
getValueHolder()
INTERNAL: Return the valueHolder.
|
boolean |
hasAddedElements()
INTERNAL: Return if any elements that have been added before instantiation.
|
boolean |
hasBeenRegistered()
INTERNAL: return whether this IndirectList has been registered with the UnitOfWork
|
boolean |
hasDeferredChanges()
INTERNAL: Return if any elements that have been added or removed before instantiation.
|
int |
hashCode()
INTERNAL:
|
boolean |
hasRemovedElements()
INTERNAL: Return if any elements that have been removed before instantiation.
|
boolean |
hasTrackedPropertyChangeListener()
INTERNAL: Return if the collection has a property change listener for change tracking.
|
int |
indexOf(java.lang.Object elem) |
int |
indexOf(java.lang.Object elem, int index) |
void |
insertElementAt(java.lang.Object obj, int index) |
boolean |
isEmpty() |
boolean |
isInstantiated()
PUBLIC: Return whether the contents have been read from the database.
|
boolean |
isListOrderBrokenInDb() |
java.util.Iterator |
iterator() |
java.lang.Object |
lastElement() |
int |
lastIndexOf(java.lang.Object elem) |
int |
lastIndexOf(java.lang.Object elem, int index) |
java.util.ListIterator |
listIterator() |
java.util.ListIterator |
listIterator(int index) |
java.lang.Object |
remove(int index) |
boolean |
remove(java.lang.Object element) |
boolean |
removeAll(java.util.Collection c) |
void |
removeAllElements() |
boolean |
removeElement(java.lang.Object obj) |
void |
removeElementAt(int index) |
boolean |
retainAll(java.util.Collection c) |
java.lang.Object |
set(int index, java.lang.Object element) |
void |
setElementAt(java.lang.Object obj, int index) |
void |
setIsListOrderBrokenInDb(boolean isBroken) |
void |
setSize(int newSize) |
void |
setTrackedAttributeName(java.lang.String attributeName)
INTERNAL: Set the mapping attribute name, used to raise change events.
|
void |
setUseLazyInstantiation(boolean useLazyInstantiation)
INTERNAL Set whether this collection should attempt do deal with adds and removes without retrieving the collection from the dB
|
void |
setValueHolder(ValueHolderInterface valueHolder)
INTERNAL: Set the value holder.
|
int |
size() |
java.util.List |
subList(int fromIndex, int toIndex) |
java.lang.Object[] |
toArray() |
java.lang.Object[] |
toArray(java.lang.Object[] a) |
java.lang.String |
toString()
PUBLIC: Use the java.util.Vector#toString(); but wrap it with braces to indicate there is a bit of indirection.
|
void |
trimToSize() |
public IndirectList()
public IndirectList(int initialCapacity)
initialCapacity - the initial capacity of the vectorjava.lang.IllegalArgumentException - if the specified initial capacity is negative
public IndirectList(int initialCapacity,
int capacityIncrement)
initialCapacity - the initial capacity of the vectorcapacityIncrement - the amount by which the capacity is increased when the vector overflowsjava.lang.IllegalArgumentException - if the specified initial capacity is negativepublic IndirectList(java.util.Collection collection)
collection - a collection containing the elements to construct this IndirectList with.
public void add(int index,
java.lang.Object element)
add in interface java.util.Listadd in class java.util.VectorVector.add(int, java.lang.Object)public boolean add(java.lang.Object element)
add in interface java.util.Collectionadd in interface java.util.Listadd in class java.util.VectorVector.add(java.lang.Object)
public boolean addAll(int index,
java.util.Collection c)
addAll in interface java.util.ListaddAll in class java.util.VectorVector.addAll(int, java.util.Collection)public boolean addAll(java.util.Collection c)
addAll in interface java.util.CollectionaddAll in interface java.util.ListaddAll in class java.util.VectorVector.addAll(java.util.Collection)public void addElement(java.lang.Object obj)
addElement in class java.util.VectorVector.addElement(java.lang.Object)public int capacity()
capacity in class java.util.VectorVector.capacity()public void clear()
clear in interface java.util.Collectionclear in interface java.util.Listclear in class java.util.VectorVector.clear()public void clearDeferredChanges()
clearDeferredChanges in interface IndirectCollectionpublic java.lang.Object clone()
clone in class java.util.VectorThis will result in a database query if necessary.public boolean contains(java.lang.Object element)
contains in interface java.util.Collectioncontains in interface java.util.Listcontains in class java.util.VectorVector.contains(java.lang.Object)public boolean containsAll(java.util.Collection c)
containsAll in interface java.util.CollectioncontainsAll in interface java.util.ListcontainsAll in class java.util.VectorVector.containsAll(java.util.Collection)public void copyInto(java.lang.Object[] anArray)
copyInto in class java.util.VectorVector.copyInto(java.lang.Object[])public java.lang.Object elementAt(int index)
elementAt in class java.util.VectorVector.elementAt(int)public java.util.Enumeration elements()
elements in class java.util.VectorVector.elements()public void ensureCapacity(int minCapacity)
ensureCapacity in class java.util.VectorVector.ensureCapacity(int)public boolean equals(java.lang.Object o)
equals in interface java.util.Collectionequals in interface java.util.Listequals in class java.util.VectorVector.equals(java.lang.Object)public java.lang.Object firstElement()
firstElement in class java.util.VectorVector.firstElement()public java.lang.Object get(int index)
get in interface java.util.Listget in class java.util.VectorVector.get(int)public java.lang.Object getDelegateObject()
getDelegateObject in interface IndirectCollectionpublic ValueHolderInterface getValueHolder()
getValueHolder in interface IndirectContainerpublic boolean hasBeenRegistered()
public int hashCode()
hashCode in interface java.util.CollectionhashCode in interface java.util.ListhashCode in class java.util.VectorVector.hashCode()public int indexOf(java.lang.Object elem)
indexOf in interface java.util.ListindexOf in class java.util.VectorVector.indexOf(java.lang.Object)
public int indexOf(java.lang.Object elem,
int index)
indexOf in class java.util.VectorVector.indexOf(java.lang.Object, int)
public void insertElementAt(java.lang.Object obj,
int index)
insertElementAt in class java.util.VectorVector.insertElementAt(java.lang.Object, int)public boolean isEmpty()
isEmpty in interface java.util.CollectionisEmpty in interface java.util.ListisEmpty in class java.util.VectorVector.isEmpty()public boolean isInstantiated()
isInstantiated in interface IndirectContainerpublic java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in interface java.util.Listiterator in class java.util.VectorAbstractList.iterator()public java.lang.Object lastElement()
lastElement in class java.util.VectorVector.lastElement()public int lastIndexOf(java.lang.Object elem)
lastIndexOf in interface java.util.ListlastIndexOf in class java.util.VectorVector.lastIndexOf(java.lang.Object)
public int lastIndexOf(java.lang.Object elem,
int index)
lastIndexOf in class java.util.VectorVector.lastIndexOf(java.lang.Object, int)public java.util.ListIterator listIterator()
listIterator in interface java.util.ListlistIterator in class java.util.VectorAbstractList.listIterator()public java.util.ListIterator listIterator(int index)
listIterator in interface java.util.ListlistIterator in class java.util.VectorAbstractList.listIterator(int)public java.lang.Object remove(int index)
remove in interface java.util.Listremove in class java.util.VectorVector.remove(int)public boolean remove(java.lang.Object element)
remove in interface java.util.Collectionremove in interface java.util.Listremove in class java.util.VectorVector.remove(java.lang.Object)public boolean removeAll(java.util.Collection c)
removeAll in interface java.util.CollectionremoveAll in interface java.util.ListremoveAll in class java.util.VectorVector.removeAll(java.util.Collection)public void removeAllElements()
removeAllElements in class java.util.VectorVector.removeAllElements()public boolean removeElement(java.lang.Object obj)
removeElement in class java.util.VectorVector.removeElement(java.lang.Object)public void removeElementAt(int index)
removeElementAt in class java.util.VectorVector.removeElementAt(int)public boolean retainAll(java.util.Collection c)
retainAll in interface java.util.CollectionretainAll in interface java.util.ListretainAll in class java.util.VectorVector.retainAll(java.util.Collection)
public java.lang.Object set(int index,
java.lang.Object element)
set in interface java.util.Listset in class java.util.VectorVector.set(int, java.lang.Object)
public void setElementAt(java.lang.Object obj,
int index)
setElementAt in class java.util.VectorVector.setElementAt(java.lang.Object, int)public void setSize(int newSize)
setSize in class java.util.VectorVector.setSize(int)public void setUseLazyInstantiation(boolean useLazyInstantiation)
setUseLazyInstantiation in interface IndirectCollectionpublic void setValueHolder(ValueHolderInterface valueHolder)
setValueHolder in interface IndirectContainerpublic int size()
size in interface java.util.Collectionsize in interface java.util.Listsize in class java.util.VectorVector.size()
public java.util.List subList(int fromIndex,
int toIndex)
subList in interface java.util.ListsubList in class java.util.VectorVector.subList(int, int)public java.lang.Object[] toArray()
toArray in interface java.util.CollectiontoArray in interface java.util.ListtoArray in class java.util.VectorVector.toArray()public java.lang.Object[] toArray(java.lang.Object[] a)
toArray in interface java.util.CollectiontoArray in interface java.util.ListtoArray in class java.util.VectorVector.toArray(java.lang.Object[])public java.lang.String toString()
toString in class java.util.VectorVector.toString()public void trimToSize()
trimToSize in class java.util.VectorVector.trimToSize()public java.beans.PropertyChangeListener _persistence_getPropertyChangeListener()
_persistence_getPropertyChangeListener in interface ChangeTrackerpublic boolean hasTrackedPropertyChangeListener()
public void _persistence_setPropertyChangeListener(java.beans.PropertyChangeListener changeListener)
_persistence_setPropertyChangeListener in interface ChangeTrackerpublic java.lang.String getTrackedAttributeName()
getTrackedAttributeName in interface CollectionChangeTrackerpublic void setTrackedAttributeName(java.lang.String attributeName)
setTrackedAttributeName in interface CollectionChangeTrackerpublic java.util.Collection getRemovedElements()
getRemovedElements in interface IndirectCollectionpublic java.util.Collection getAddedElements()
getAddedElements in interface IndirectCollectionpublic boolean hasAddedElements()
public boolean hasRemovedElements()
public boolean hasDeferredChanges()
hasDeferredChanges in interface IndirectCollectionpublic boolean isListOrderBrokenInDb()
public void setIsListOrderBrokenInDb(boolean isBroken)