|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
org.eclipse.persistence.indirection.IndirectList
public class 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:
CollectionMapping,
IndirectMap,
Serialized Form| Constructor Summary | |
|---|---|
IndirectList()
PUBLIC: Construct an empty IndirectList so that its internal data array has size 10 and its standard capacity increment is zero. |
|
IndirectList(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. |
|
| Method Summary | |
|---|---|
PropertyChangeListener |
_persistence_getPropertyChangeListener()
INTERNAL: Return the property change listener for change tracking. |
void |
_persistence_setPropertyChangeListener(PropertyChangeListener changeListener)
INTERNAL: Set the property change listener for change tracking. |
void |
add(int index,
Object element)
|
boolean |
add(Object element)
|
boolean |
addAll(Collection c)
|
boolean |
addAll(int index,
Collection c)
|
void |
addElement(Object obj)
|
int |
capacity()
|
void |
clear()
|
Object |
clone()
PUBLIC: |
boolean |
contains(Object element)
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)
|
Collection |
getAddedElements()
INTERNAL: Return the elements that have been added before instantiation. |
Object |
getDelegateObject()
INTERNAL: Return the real collection object. |
Collection |
getRemovedElements()
INTERNAL: Return the elements that have been removed before instantiation. |
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(Object elem)
|
int |
indexOf(Object elem,
int index)
|
void |
insertElementAt(Object obj,
int index)
|
boolean |
isEmpty()
|
boolean |
isInstantiated()
PUBLIC: Return whether the contents have been read from the database. |
boolean |
isListOrderBrokenInDb()
|
Iterator |
iterator()
|
Object |
lastElement()
|
int |
lastIndexOf(Object elem)
|
int |
lastIndexOf(Object elem,
int index)
|
ListIterator |
listIterator()
|
ListIterator |
listIterator(int index)
|
Object |
remove(int index)
|
boolean |
remove(Object element)
|
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 |
setIsListOrderBrokenInDb(boolean isBroken)
|
void |
setSize(int newSize)
|
void |
setTrackedAttributeName(String attributeName)
INTERNAL: Set the mapping attribute name, used to raise change events. |
void |
setValueHolder(ValueHolderInterface valueHolder)
INTERNAL: 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()
|
| 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 vector
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 overflows
IllegalArgumentException - if the specified initial capacity
is negativepublic IndirectList(Collection collection)
collection - a collection containing the elements to construct this IndirectList with.| Method Detail |
|---|
public void add(int index,
Object element)
add in interface Listadd in class VectorVector.add(int, java.lang.Object)public boolean add(Object element)
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)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 element)
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)public Object getDelegateObject()
getDelegateObject in interface IndirectCollectionpublic 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)
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 element)
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 PropertyChangeListener _persistence_getPropertyChangeListener()
_persistence_getPropertyChangeListener in interface ChangeTrackerpublic boolean hasTrackedPropertyChangeListener()
public void _persistence_setPropertyChangeListener(PropertyChangeListener changeListener)
_persistence_setPropertyChangeListener in interface ChangeTrackerpublic String getTrackedAttributeName()
getTrackedAttributeName in interface CollectionChangeTrackerpublic void setTrackedAttributeName(String attributeName)
setTrackedAttributeName in interface CollectionChangeTrackerpublic Collection getRemovedElements()
getRemovedElements in interface IndirectCollectionpublic 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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||