|
Oracle Application Server TopLink API Reference 10g Release 2 (10.1.2) B15903-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.Vector
oracle.toplink.indirection.IndirectList
IndirectList allows a domain class to take advantage of TopLink indirection without having to declare its instance variable as a ValueHolderInterface.
To use an IndirectList:
TopLink will place an IndirectList in the instance variable when the containing domain object is read from the datatabase. With the first message sent to the IndirectList, the contents are fetched from the database and normal Collection/List/Vector behavior is resumed.
CollectionMapping
, IndirectMap
, Serialized FormConstructor Summary | |
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 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. |
Method Summary | |
void |
add(int index, java.lang.Object element) |
boolean |
add(java.lang.Object o) |
boolean |
addAll(java.util.Collection c) |
boolean |
addAll(int index, java.util.Collection c) |
void |
addElement(java.lang.Object obj) |
int |
capacity() |
void |
clear() |
java.lang.Object |
clone() PUBLIC: |
boolean |
contains(java.lang.Object elem) 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) |
ValueHolderInterface |
getValueHolder() PUBLIC: Return the valueHolder. |
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. |
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 o) |
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 |
setSize(int newSize) |
void |
setValueHolder(ValueHolderInterface valueHolder) PUBLIC: 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() |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public IndirectList()
public IndirectList(int initialCapacity)
initialCapacity
- the initial capacity of the vectorjava.lang.IllegalArgumentException
- 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 overflowsjava.lang.IllegalArgumentException
- if the specified initial capacity is negativepublic IndirectList(java.util.Collection c)
c
- a collection containing the elements to construct this IndirectList with.Method Detail |
public void add(int index, java.lang.Object element)
add
in interface java.util.List
Vector.add(int, java.lang.Object)
public boolean add(java.lang.Object o)
add
in interface java.util.List
Vector.add(java.lang.Object)
public boolean addAll(int index, java.util.Collection c)
addAll
in interface java.util.List
Vector.addAll(int, java.util.Collection)
public boolean addAll(java.util.Collection c)
addAll
in interface java.util.List
Vector.addAll(java.util.Collection)
public void addElement(java.lang.Object obj)
Vector.addElement(java.lang.Object)
public int capacity()
Vector.capacity()
public void clear()
clear
in interface java.util.List
Vector.clear()
public java.lang.Object clone()
This will result in a database query if necessary.
public boolean contains(java.lang.Object elem)
contains
in interface java.util.List
Vector.contains(java.lang.Object)
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.List
Vector.containsAll(java.util.Collection)
public void copyInto(java.lang.Object[] anArray)
Vector.copyInto(java.lang.Object[])
public java.lang.Object elementAt(int index)
Vector.elementAt(int)
public java.util.Enumeration elements()
Vector.elements()
public void ensureCapacity(int minCapacity)
Vector.ensureCapacity(int)
public boolean equals(java.lang.Object o)
equals
in interface java.util.List
Vector.equals(java.lang.Object)
public java.lang.Object firstElement()
Vector.firstElement()
public java.lang.Object get(int index)
get
in interface java.util.List
Vector.get(int)
public ValueHolderInterface getValueHolder()
getValueHolder
in interface IndirectContainer
public int indexOf(java.lang.Object elem)
indexOf
in interface java.util.List
Vector.indexOf(java.lang.Object)
public int indexOf(java.lang.Object elem, int index)
Vector.indexOf(java.lang.Object, int)
public void insertElementAt(java.lang.Object obj, int index)
Vector.insertElementAt(java.lang.Object, int)
public boolean isEmpty()
isEmpty
in interface java.util.List
Vector.isEmpty()
public boolean isInstantiated()
isInstantiated
in interface IndirectContainer
public java.util.Iterator iterator()
iterator
in interface java.util.List
AbstractList.iterator()
public java.lang.Object lastElement()
Vector.lastElement()
public int lastIndexOf(java.lang.Object elem)
lastIndexOf
in interface java.util.List
Vector.lastIndexOf(java.lang.Object)
public int lastIndexOf(java.lang.Object elem, int index)
Vector.lastIndexOf(java.lang.Object, int)
public java.util.ListIterator listIterator()
listIterator
in interface java.util.List
AbstractList.listIterator()
public java.util.ListIterator listIterator(int index)
listIterator
in interface java.util.List
AbstractList.listIterator(int)
public java.lang.Object remove(int index)
remove
in interface java.util.List
Vector.remove(int)
public boolean remove(java.lang.Object o)
remove
in interface java.util.List
Vector.remove(java.lang.Object)
public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.List
Vector.removeAll(java.util.Collection)
public void removeAllElements()
Vector.removeAllElements()
public boolean removeElement(java.lang.Object obj)
Vector.removeElement(java.lang.Object)
public void removeElementAt(int index)
Vector.removeElementAt(int)
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.List
Vector.retainAll(java.util.Collection)
public java.lang.Object set(int index, java.lang.Object element)
set
in interface java.util.List
Vector.set(int, java.lang.Object)
public void setElementAt(java.lang.Object obj, int index)
Vector.setElementAt(java.lang.Object, int)
public void setSize(int newSize)
Vector.setSize(int)
public void setValueHolder(ValueHolderInterface valueHolder)
setValueHolder
in interface IndirectContainer
public int size()
size
in interface java.util.List
Vector.size()
public java.util.List subList(int fromIndex, int toIndex)
subList
in interface java.util.List
Vector.subList(int, int)
public java.lang.Object[] toArray()
toArray
in interface java.util.List
Vector.toArray()
public java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.List
Vector.toArray(java.lang.Object[])
public java.lang.String toString()
Vector.toString()
public void trimToSize()
Vector.trimToSize()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |