|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractSet | +--ojb.server.collections.DSetImpl
Insert the type's description here. Creation date: (26.02.2001 13:05:03)
Constructor Summary | |
DSetImpl()
DSetImpl constructor comment. |
|
DSetImpl(int theId,
int theSize)
DListImpl constructor comment. |
Method Summary | |
boolean |
add(java.lang.Object o)
Method declaration |
DSet |
difference(DSet otherSet)
Create a new DSet object that contains the elements of this
collection minus the elements in otherSet . |
boolean |
existsElement(java.lang.String predicate)
Determines whether there is an element of the collection that evaluates to true for the predicate. |
(package private) java.util.Vector |
getElements()
Insert the method's description here. |
(package private) int |
getId()
Insert the method's description here. |
DSet |
intersection(DSet otherSet)
Create a new DSet object that is the set intersection of this
DSet object and the set referenced by otherSet . |
java.util.Iterator |
iterator()
Returns an iterator over the elements in this collection. |
boolean |
properSubsetOf(DSet otherSet)
Determine whether this set is a proper subset of the set referenced by otherSet . |
boolean |
properSupersetOf(DSet otherSet)
Determine whether this set is a proper superset of the set referenced by otherSet . |
DCollection |
query(java.lang.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. |
java.util.Iterator |
select(java.lang.String predicate)
Access all of the elements of the collection that evaluate to true for the provided query predicate. |
java.lang.Object |
selectElement(java.lang.String predicate)
Selects the single element of the collection for which the provided OQL query predicate is true. |
(package private) void |
setElements(java.util.Vector newElements)
Insert the method's description here. |
(package private) void |
setId(int newId)
Insert the method's description here. |
int |
size()
Returns the number of elements in this collection. |
boolean |
subsetOf(DSet otherSet)
Determine whether this set is a subset of the set referenced by otherSet . |
boolean |
supersetOf(DSet otherSet)
Determine whether this set is a superset of the set referenced by otherSet . |
DSet |
union(DSet otherSet)
Create a new DSet object that is the set union of this
DSet object and the set referenced by otherSet . |
Methods inherited from class java.util.AbstractSet |
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
|
Methods inherited from interface java.util.Collection |
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray |
Methods inherited from interface java.util.Set |
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray |
Constructor Detail |
public DSetImpl()
public DSetImpl(int theId, int theSize)
Method Detail |
public boolean add(java.lang.Object o)
add
in interface java.util.Collection
add
in class java.util.AbstractCollection
o
- public DSet difference(DSet otherSet)
DSet
object that contains the elements of this
collection minus the elements in otherSet
.difference
in interface DSet
otherSet
- A set containing elements that should not be in the result set.DSet
instance that contains the elements
of this set minus those elements in otherSet
.public boolean existsElement(java.lang.String predicate) throws QueryInvalidException
existsElement
in interface DCollection
predicate
- An OQL boolean query predicate.QueryInvalidException
- The query predicate is invalid.java.util.Vector getElements()
int getId()
public DSet intersection(DSet otherSet)
DSet
object that is the set intersection of this
DSet
object and the set referenced by otherSet
.intersection
in interface DSet
otherSet
- The other set to be used in the intersection operation.DSet
instance that contains the
intersection of the two sets.public java.util.Iterator iterator()
iterator
in interface java.util.Collection
iterator
in class java.util.AbstractCollection
public boolean properSubsetOf(DSet otherSet)
otherSet
.properSubsetOf
in interface DSet
otherSet
- Another set.otherSet
, otherwise false.public boolean properSupersetOf(DSet otherSet)
otherSet
.properSupersetOf
in interface DSet
otherSet
- Another set.otherSet
, otherwise false.public DCollection query(java.lang.String predicate) throws QueryInvalidException
query
in interface DCollection
predicate
- An OQL boolean query predicate.QueryInvalidException
- The query predicate is invalid.public java.util.Iterator select(java.lang.String predicate) throws QueryInvalidException
select
in interface DCollection
predicate
- An OQL boolean query predicate.QueryInvalidException
- The query predicate is invalid.public java.lang.Object selectElement(java.lang.String predicate) throws QueryInvalidException
selectElement
in interface DCollection
predicate
- An OQL boolean query predicate.QueryInvalidException
- The query predicate is invalid.void setElements(java.util.Vector newElements)
newElements
- java.util.Vectorvoid setId(int newId)
newId
- intpublic int size()
size
in interface java.util.Collection
size
in class java.util.AbstractCollection
public boolean subsetOf(DSet otherSet)
otherSet
.subsetOf
in interface DSet
otherSet
- Another set.otherSet
,
otherwise false.public boolean supersetOf(DSet otherSet)
otherSet
.supersetOf
in interface DSet
otherSet
- Another set.otherSet
,
otherwise false.public DSet union(DSet otherSet)
DSet
object that is the set union of this
DSet
object and the set referenced by otherSet
.union
in interface DSet
otherSet
- The other set to be used in the union operation.DSet
instance that contains the union of the two sets.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |