|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-03 |
||||||||
| 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
oracle.toplink.indirection.IndirectList
oracle.toplink.indirection.EJBIndirectList
public class EJBIndirectList
EJBIndirectList provides all the functionality of IndirectList while being EJB friendly. That is, when it performs contains, remove, etc... with entity beans, the container uses the bean's 'isIdentical' method rather than the usual 'equals'.
This is necessary since serialization of the EJBObjects can cause the equality test to return false, even though they represent the same underlying entity bean.
EJBIndirectList,
Serialized Form| Constructor Summary | |
|---|---|
EJBIndirectList()
Construct an empty EJBIndirectList so that its internal data array has size 10 and its standard capacity increment is zero. |
|
EJBIndirectList(java.util.Collection c)
Construct an EJBIndirectList containing the elements of the specified collection, in the order they are returned by the collection's iterator. |
|
EJBIndirectList(int initialCapacity)
Construct an empty EJBIndirectList with the specified initial capacity and with its capacity increment equal to zero. |
|
EJBIndirectList(int initialCapacity,
int capacityIncrement)
Construct an empty EJBIndirectList with the specified initial capacity and capacity increment. |
|
| Method Summary | |
|---|---|
boolean |
contains(java.lang.Object elem)
|
boolean |
containsAll(java.util.Collection c)
|
int |
indexOf(java.lang.Object elem)
|
int |
indexOf(java.lang.Object elem,
int startIndex)
|
int |
lastIndexOf(java.lang.Object elem)
|
int |
lastIndexOf(java.lang.Object elem,
int startIndex)
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeElement(java.lang.Object obj)
|
| Methods inherited from class oracle.toplink.indirection.IndirectList |
|---|
add, add, addAll, addAll, addElement, capacity, clear, clone, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, insertElementAt, isEmpty, isInstantiated, iterator, lastElement, listIterator, listIterator, remove, removeAll, removeAllElements, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EJBIndirectList()
public EJBIndirectList(int initialCapacity)
initialCapacity - the initial capacity of the vector
java.lang.IllegalArgumentException - if the specified initial capacity
is negative
public EJBIndirectList(int initialCapacity,
int capacityIncrement)
initialCapacity - the initial capacity of the vectorcapacityIncrement - the amount by which the capacity is
increased when the vector overflows
java.lang.IllegalArgumentException - if the specified initial capacity
is negativepublic EJBIndirectList(java.util.Collection c)
c - a collection containing the elements to be inserted into the list.| Method Detail |
|---|
public boolean contains(java.lang.Object elem)
contains in interface java.util.Collectioncontains in interface java.util.Listcontains in class IndirectListVector.contains(java.lang.Object)public boolean containsAll(java.util.Collection c)
containsAll in interface java.util.CollectioncontainsAll in interface java.util.ListcontainsAll in class IndirectListVector.containsAll(java.util.Collection)
public int indexOf(java.lang.Object elem,
int startIndex)
indexOf in class IndirectListVector.indexOf(java.lang.Object)public int indexOf(java.lang.Object elem)
indexOf in interface java.util.ListindexOf in class IndirectListVector.indexOf(java.lang.Object, int)public int lastIndexOf(java.lang.Object elem)
lastIndexOf in interface java.util.ListlastIndexOf in class IndirectListVector.lastIndexOf(java.lang.Object)
public int lastIndexOf(java.lang.Object elem,
int startIndex)
lastIndexOf in class IndirectListVector.lastIndexOf(java.lang.Object, int)public boolean remove(java.lang.Object o)
remove in interface java.util.Collectionremove in interface java.util.Listremove in class IndirectListVector.remove(java.lang.Object)public boolean removeElement(java.lang.Object obj)
removeElement in class IndirectListVector.removeElement(java.lang.Object)
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||