|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.persistence.sdo.helper.ListWrapper
public class ListWrapper
INTERNAL:
Purpose:dataObjects
SDODataObject,
Serialized Form| Constructor Summary | |
|---|---|
ListWrapper()
|
|
ListWrapper(SDODataObject theDataObject,
commonj.sdo.Property theProperty)
|
|
ListWrapper(SDODataObject theDataObject,
commonj.sdo.Property theProperty,
List theList)
Constructor for non-default Pluggable ValueStore implementations Prerequisites: Containment is already set on theList parameter. |
|
| Method Summary | |
|---|---|
void |
add(int index,
Object item)
Inserts the specified element at the index position in this list. |
void |
add(int index,
Object item,
boolean updateSequence)
INTERNAL: |
boolean |
add(Object item)
|
boolean |
add(Object item,
boolean updateSequence)
INTERNAL: |
boolean |
addAll(Collection items)
Appends all of the currentElements in the specified Collection to the end of this list, in the order that they are returned by the specified Collection's Iterator. |
boolean |
addAll(Collection items,
boolean updateSequence)
INTERNAL: Appends all of the currentElements in the specified Collection to the end of this list, in the order that they are returned by the specified Collection's Iterator. |
boolean |
addAll(int position,
Collection items)
Inserts all of the currentElements in the specified Collection into this list, starting at the specified position. |
boolean |
addAll(int position,
Collection items,
boolean updateSequence)
|
void |
clear()
Removes all of the currentElements from this list. |
void |
clear(boolean updateSequence)
INTERNAL: |
Object |
clone()
Clone the ListWrapper. |
boolean |
contains(Object item)
|
boolean |
containsAll(Collection items)
|
Object |
get(int position)
|
List |
getCurrentElements()
INTERNAL: |
int |
indexOf(Object item)
|
boolean |
isEmpty()
|
Iterator |
iterator()
|
int |
lastIndexOf(Object item)
|
ListIterator |
listIterator()
|
ListIterator |
listIterator(int position)
|
Object |
remove(int index)
Removes the element at the specified position in this list. Position index starts at 0. |
Object |
remove(int index,
boolean updateSequence)
INTERNAL: Removes the element at the specified position in this list. Position index starts at 0. |
boolean |
remove(Object item)
|
boolean |
remove(Object item,
boolean fromDelete,
boolean updateSequence)
INTERNAL: Remove the item or first occurrence of the item. |
boolean |
removeAll(Collection items)
Removes from this collection all of its currentElements that are contained in the specified collection. |
boolean |
removeAll(Collection items,
boolean updateSequence)
INTERNAL: Removes from this collection all of its currentElements that are contained in the specified collection. |
boolean |
retainAll(Collection itemsToKeep)
Retains only the currentElements in this collection that are contained in the specified collection (optional operation). In other words, removes from this collection all of its currentElements that are not contained in the specified collection. |
Object |
set(int index,
Object item)
Replaces the element at the specified index in this list with the specified element. |
void |
setCurrentElements(List currentElementsList)
INTERNAL: bypass containment and changesummary copy of element list on modifications |
int |
size()
|
List |
subList(int start,
int end)
Return a view of the specified portion of the list |
Object[] |
toArray()
|
Object[] |
toArray(Object[] items)
Returns an array containing all of the currentElements in this list in proper sequence; the runtime type of the returned array is that of the specified array. |
void |
undoChanges(SDOChangeSummary cs)
INTERNAL: Undo any changes and return the original List |
Object |
writeReplace()
INTERNAL: Defined in SDO 2.01 spec on page 65 Externalizable function is called by ObjectStream.writeObject() A replacement object for serialization can be called here. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public ListWrapper()
public ListWrapper(SDODataObject theDataObject,
commonj.sdo.Property theProperty)
public ListWrapper(SDODataObject theDataObject,
commonj.sdo.Property theProperty,
List theList)
| Method Detail |
|---|
public boolean add(Object item)
add in interface Collectionadd in interface List
public boolean add(Object item,
boolean updateSequence)
item - updateSequence -
public void add(int index,
Object item)
add in interface Listposition - (start at 0 = prepend, length = append)item -
public void add(int index,
Object item,
boolean updateSequence)
index - item - updateSequence - public void undoChanges(SDOChangeSummary cs)
public boolean remove(Object item,
boolean fromDelete,
boolean updateSequence)
item - fromDelete - updateSequence -
public boolean remove(Object item)
remove in interface Collectionremove in interface Listitem -
public boolean addAll(Collection items)
addAll in interface CollectionaddAll in interface Listitems -
public boolean addAll(Collection items,
boolean updateSequence)
items - updateSequence -
public boolean addAll(int position,
Collection items)
addAll in interface Listposition - (start at 0 = prepend, length = append)items -
public boolean addAll(int position,
Collection items,
boolean updateSequence)
public boolean removeAll(Collection items)
removeAll in interface CollectionremoveAll in interface Listitems -
public boolean removeAll(Collection items,
boolean updateSequence)
items - updateSequence -
public boolean retainAll(Collection itemsToKeep)
retainAll in interface CollectionretainAll in interface ListitemsToKeep -
public void clear()
clear in interface Collectionclear in interface Listpublic void clear(boolean updateSequence)
updateSequence -
public Object set(int index,
Object item)
set in interface Listindex - item -
public Object remove(int index,
boolean updateSequence)
index - updateSequence -
public Object remove(int index)
remove in interface Listindex -
public ListIterator listIterator()
listIterator in interface Listpublic ListIterator listIterator(int position)
listIterator in interface List
public List subList(int start,
int end)
subList in interface Liststart - - low endpoint (inclusive) of the subList.end - - high endpoint (exclusive) of the subList.
public Object[] toArray()
toArray in interface CollectiontoArray in interface Listpublic Object[] toArray(Object[] items)
toArray in interface CollectiontoArray in interface Listitems - -the array into which the currentElements of this list are to be stored, if it is big enough;
otherwise, a new array of the same runtime type is allocated for this purpose.public int size()
size in interface Collectionsize in interface Listpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface Listpublic boolean contains(Object item)
contains in interface Collectioncontains in interface Listpublic boolean containsAll(Collection items)
containsAll in interface CollectioncontainsAll in interface Listpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Listpublic int indexOf(Object item)
indexOf in interface Listpublic int lastIndexOf(Object item)
lastIndexOf in interface Listpublic Object get(int position)
get in interface Listpublic Object writeReplace()
SDOResolvablepublic List getCurrentElements()
public void setCurrentElements(List currentElementsList)
public Object clone()
clone in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||