ojbIterator() returns an Iterator over all elements in the collection.
public boolean
properSubsetOf(org.odmg.DSet otherSet) Determine whether this set is a proper subset of the set referenced by
otherSet.
Parameters: otherSet - Another set.
public boolean
properSupersetOf(org.odmg.DSet otherSet) Determine whether this set is a proper superset of the set referenced by
otherSet.
Parameters: otherSet - Another set.
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.
Create a new DSet object that contains the elements of this
collection minus the elements in otherSet.
Parameters: otherSet - A set containing elements that should not be in the result set. A newly created DSet instance that contains the elementsof this set minus those elements in otherSet.
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.
Create a new DSet object that is the set intersection of this
DSet object and the set referenced by otherSet.
Parameters: otherSet - The other set to be used in the intersection operation. A newly created DSet instance that contains theintersection of the two sets.
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
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.
Determine whether this set is a proper subset of the set referenced by
otherSet.
Parameters: otherSet - Another set. True if this set is a proper subset of the set referenced byotherSet, otherwise false.
Determine whether this set is a proper superset of the set referenced by
otherSet.
Parameters: otherSet - Another set. True if this set is a proper superset of the set referenced byotherSet, otherwise false.
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.
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
Determine whether this set is a subset of the set referenced by otherSet.
Parameters: otherSet - Another set. True if this set is a subset of the set referenced by otherSet,otherwise false.
Determine whether this set is a superset of the set referenced by otherSet.
Parameters: otherSet - Another set. True if this set is a superset of the set referenced by otherSet,otherwise false.
Create a new DSet object that is the set union of this
DSet object and the set referenced by otherSet.
Parameters: otherSet - The other set to be used in the union operation. A newly created DSet instance that contains the union of the two sets.