public class IndirectList extends Vector implements IndirectContainer
To use an IndirectList:
CollectionMapping,
IndirectMap,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected Vector |
delegate
Reduce type casting.
|
protected int |
initialCapacity
Store initial size for lazy init.
|
protected ValueHolderInterface |
valueHolder
Delegate indirection behavior to a value holder.
|
capacityIncrement, elementCount, elementDatamodCount| 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(Collection c)
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 |
|---|---|
void |
add(int index,
Object element) |
boolean |
add(Object o) |
boolean |
addAll(Collection c) |
boolean |
addAll(int index,
Collection c) |
void |
addElement(Object obj) |
protected Vector |
buildDelegate()
PUBLIC:
Return the freshly-built delegate.
|
int |
capacity() |
void |
clear() |
Object |
clone()
PUBLIC:
|
boolean |
contains(Object elem)
PUBLIC:
|
boolean |
containsAll(Collection c) |
void |
copyInto(Object[] anArray) |
Object |
elementAt(int index) |
Enumeration |
elements() |
void |
ensureCapacity(int minCapacity) |
boolean |
equals(Object o) |
Object |
firstElement() |
Object |
get(int index) |
protected Vector |
getDelegate()
PUBLIC:
Check whether the contents have been read from the database.
|
String |
getTopLinkAttributeName()
Return the mapping attribute name, used to raise change events.
|
ValueHolderInterface |
getValueHolder()
PUBLIC:
Return the valueHolder.
|
boolean |
hasBeenRegistered()
INTERNAL:
return whether this IndirectList has been registered with the UnitOfWork
|
int |
hashCode()
INTERNAL:
|
int |
indexOf(Object elem) |
int |
indexOf(Object elem,
int index) |
protected void |
initialize(Collection c)
Initialize the instance.
|
protected void |
initialize(int initialCapacity,
int capacityIncrement)
Initialize the instance.
|
void |
insertElementAt(Object obj,
int index) |
boolean |
isEmpty() |
boolean |
isInstantiated()
PUBLIC:
Return whether the contents have been read from the database.
|
Iterator |
iterator() |
Object |
lastElement() |
int |
lastIndexOf(Object elem) |
int |
lastIndexOf(Object elem,
int index) |
ListIterator |
listIterator() |
ListIterator |
listIterator(int index) |
protected void |
raiseAddChangeEvent(Object element)
Raise the add change event and relationship maintainence.
|
protected void |
raiseRemoveChangeEvent(Object element)
Raise the remove change event.
|
Object |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection c) |
void |
removeAllElements() |
boolean |
removeElement(Object obj) |
void |
removeElementAt(int index) |
boolean |
retainAll(Collection c) |
Object |
set(int index,
Object element) |
void |
setElementAt(Object obj,
int index) |
void |
setSize(int newSize) |
void |
setTopLinkAttributeName(String attributeName)
Set the mapping attribute name, used to raise change events.
|
void |
setValueHolder(ValueHolderInterface valueHolder)
PUBLIC:
Set the value holder.
|
int |
size() |
List |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
String |
toString()
PUBLIC:
Use the java.util.Vector#toString(); but wrap it with braces to indicate
there is a bit of indirection.
|
void |
trimToSize() |
forEach, removeIf, removeRange, replaceAll, sort, spliteratorfinalize, getClass, notify, notifyAll, wait, wait, waitparallelStream, streamprotected Vector delegate
protected ValueHolderInterface valueHolder
protected int initialCapacity
public IndirectList()
public IndirectList(int initialCapacity)
initialCapacity - the initial capacity of the vectorIllegalArgumentException - if the specified initial capacity
is negativepublic IndirectList(int initialCapacity,
int capacityIncrement)
initialCapacity - the initial capacity of the vectorcapacityIncrement - the amount by which the capacity is
increased when the vector overflowsIllegalArgumentException - if the specified initial capacity
is negativepublic IndirectList(Collection c)
c - a collection containing the elements to construct this IndirectList with.public void add(int index,
Object element)
add in interface Listadd in class VectorVector.add(int, java.lang.Object)protected void raiseAddChangeEvent(Object element)
protected void raiseRemoveChangeEvent(Object element)
public boolean add(Object o)
add in interface Collectionadd in interface Listadd in class VectorVector.add(java.lang.Object)public boolean addAll(int index,
Collection c)
addAll in interface ListaddAll in class VectorVector.addAll(int, java.util.Collection)public boolean addAll(Collection c)
addAll in interface CollectionaddAll in interface ListaddAll in class VectorVector.addAll(java.util.Collection)public void addElement(Object obj)
addElement in class VectorVector.addElement(java.lang.Object)protected Vector buildDelegate()
public int capacity()
capacity in class VectorVector.capacity()public void clear()
clear in interface Collectionclear in interface Listclear in class VectorVector.clear()public Object clone()
clone in class VectorThis will result in a database query if necessary.public boolean contains(Object elem)
contains in interface Collectioncontains in interface Listcontains in class VectorVector.contains(java.lang.Object)public boolean containsAll(Collection c)
containsAll in interface CollectioncontainsAll in interface ListcontainsAll in class VectorVector.containsAll(java.util.Collection)public void copyInto(Object[] anArray)
copyInto in class VectorVector.copyInto(java.lang.Object[])public Object elementAt(int index)
elementAt in class VectorVector.elementAt(int)public Enumeration elements()
elements in class VectorVector.elements()public void ensureCapacity(int minCapacity)
ensureCapacity in class VectorVector.ensureCapacity(int)public boolean equals(Object o)
equals in interface Collectionequals in interface Listequals in class VectorVector.equals(java.lang.Object)public Object firstElement()
firstElement in class VectorVector.firstElement()public Object get(int index)
get in interface Listget in class VectorVector.get(int)protected Vector getDelegate()
public ValueHolderInterface getValueHolder()
getValueHolder in interface IndirectContainerpublic boolean hasBeenRegistered()
public int hashCode()
hashCode in interface CollectionhashCode in interface ListhashCode in class VectorVector.hashCode()public int indexOf(Object elem)
indexOf in interface ListindexOf in class VectorVector.indexOf(java.lang.Object)public int indexOf(Object elem, int index)
indexOf in class VectorVector.indexOf(java.lang.Object, int)protected void initialize(int initialCapacity,
int capacityIncrement)
protected void initialize(Collection c)
public void insertElementAt(Object obj, int index)
insertElementAt in class VectorVector.insertElementAt(java.lang.Object, int)public boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface ListisEmpty in class VectorVector.isEmpty()public boolean isInstantiated()
isInstantiated in interface IndirectContainerpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Listiterator in class VectorAbstractList.iterator()public Object lastElement()
lastElement in class VectorVector.lastElement()public int lastIndexOf(Object elem)
lastIndexOf in interface ListlastIndexOf in class VectorVector.lastIndexOf(java.lang.Object)public int lastIndexOf(Object elem, int index)
lastIndexOf in class VectorVector.lastIndexOf(java.lang.Object, int)public ListIterator listIterator()
listIterator in interface ListlistIterator in class VectorAbstractList.listIterator()public ListIterator listIterator(int index)
listIterator in interface ListlistIterator in class VectorAbstractList.listIterator(int)public Object remove(int index)
remove in interface Listremove in class VectorVector.remove(int)public boolean remove(Object o)
remove in interface Collectionremove in interface Listremove in class VectorVector.remove(java.lang.Object)public boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface ListremoveAll in class VectorVector.removeAll(java.util.Collection)public void removeAllElements()
removeAllElements in class VectorVector.removeAllElements()public boolean removeElement(Object obj)
removeElement in class VectorVector.removeElement(java.lang.Object)public void removeElementAt(int index)
removeElementAt in class VectorVector.removeElementAt(int)public boolean retainAll(Collection c)
retainAll in interface CollectionretainAll in interface ListretainAll in class VectorVector.retainAll(java.util.Collection)public Object set(int index, Object element)
set in interface Listset in class VectorVector.set(int, java.lang.Object)public void setElementAt(Object obj, int index)
setElementAt in class VectorVector.setElementAt(java.lang.Object, int)public void setSize(int newSize)
setSize in class VectorVector.setSize(int)public void setValueHolder(ValueHolderInterface valueHolder)
setValueHolder in interface IndirectContainerpublic int size()
size in interface Collectionsize in interface Listsize in class VectorVector.size()public List subList(int fromIndex, int toIndex)
subList in interface ListsubList in class VectorVector.subList(int, int)public Object[] toArray()
toArray in interface CollectiontoArray in interface ListtoArray in class VectorVector.toArray()public Object[] toArray(Object[] a)
toArray in interface CollectiontoArray in interface ListtoArray in class VectorVector.toArray(java.lang.Object[])public String toString()
toString in class VectorVector.toString()public void trimToSize()
trimToSize in class VectorVector.trimToSize()public String getTopLinkAttributeName()
public void setTopLinkAttributeName(String attributeName)
Copyright © 2024. All rights reserved.