concat(DList otherList) Creates a new DList object that contains the contents of this
DList object concatenated
with the contents of the otherList object.
public boolean
existsElement(String predicate) Determines whether there is an element of the collection that evaluates to true
for the predicate.
query(String predicate) Evaluate the boolean query predicate for each element of the collection and
return a new collection that contains each element that evaluated to true.
selectElement(String predicate) Selects the single element of the collection for which the provided OQL query
predicate is true.
Parameters: predicate - An OQL boolean query predicate.
Inserts the specified element at the specified position in this list
(optional operation). Shifts the element currently at that position
(if any) and any subsequent elements to the right (adds one to their
indices).
Parameters: index - index at which the specified element is to be inserted. Parameters: element - element to be inserted. throws: UnsupportedOperationException - if the add method is notsupported by this list. throws: ClassCastException - if the class of the specified elementprevents it from being added to this list. throws: IllegalArgumentException - if some aspect of the specifiedelement prevents it from being added to this list. throws: IndexOutOfBoundsException - if the index is out of range(index < 0 || index > size()).
Creates a new DList object that contains the contents of this
DList object concatenated
with the contents of the otherList object.
Parameters: otherList - The list whose elements are placed at the end of the listreturned by this method. A new DList that is the concatenation of this list andthe list referenced by otherList.
Determines whether there is an element of the collection that evaluates to true
for the predicate.
Parameters: predicate - An OQL boolean query predicate. True if there is an element of the collection that evaluates to truefor the predicate, otherwise false. exception: org.odmg.QueryInvalidException - The query predicate is invalid.
Returns the element at the specified position in this list.
Parameters: index - index of element to return. the element at the specified position in this list. throws: IndexOutOfBoundsException - if the index is out of range (index< 0 || index >= size()).
Returns an iterator over the elements in this collection. There are no
guarantees concerning the order in which the elements are returned
(unless this collection is an instance of some class that provides a
guarantee).
an Iterator over the elements in this collection
Returns a list iterator of the elements in this list (in proper
sequence), starting at the specified position in this list. The
specified index indicates the first element that would be returned by
an initial call to the next method. An initial call to
the previous method would return the element with the
specified index minus one.
Parameters: index - index of first element to be returned from thelist iterator (by a call to the next method). a list iterator of the elements in this list (in propersequence), starting at the specified position in this list. throws: IndexOutOfBoundsException - if the index is out of range (index< 0 || index > size()).
add a single Object to the Collection. This method is used during reading Collection elements
from the database. Thus it is is save to cast anObject to the underlying element type of the
collection.
returns an Iterator over all elements in the collection. Used during store and delete Operations.
If the implementor does not return an iterator over ALL elements, OJB cannot store and delete all elements properly.
Evaluate the boolean query predicate for each element of the collection and
return a new collection that contains each element that evaluated to true.
Parameters: predicate - An OQL boolean query predicate. A new collection containing the elements that evaluated true for the predicate. exception: org.odmg.QueryInvalidException - The query predicate is invalid.
Removes the element at the specified position in this list (optional
operation). Shifts any subsequent elements to the left (subtracts one
from their indices). Returns the element that was removed from the
list.
This implementation always throws an
UnsupportedOperationException.
Parameters: index - the index of the element to remove. the element previously at the specified position. throws: UnsupportedOperationException - if the remove method isnot supported by this list. throws: IndexOutOfBoundsException - if the specified index is out ofrange (index < 0 || index >= size()).
Access all of the elements of the collection that evaluate to true for the
provided query predicate.
Parameters: predicate - An OQL boolean query predicate. An iterator used to iterate over the elements that evaluated true for the predicate. exception: org.odmg.QueryInvalidException - The query predicate is invalid.
Selects the single element of the collection for which the provided OQL query
predicate is true.
Parameters: predicate - An OQL boolean query predicate. The element that evaluates to true for the predicate. If no elementevaluates to true, null is returned. exception: org.odmg.QueryInvalidException - The query predicate is invalid.
Returns the number of elements in this collection. If this collection
contains more than Integer.MAX_VALUE elements, returns
Integer.MAX_VALUE.
the number of elements in this collection