|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.ArrayList | +--org.ozoneDB.odmg.OzoneODMGDBag
Field Summary |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
OzoneODMGDBag()
|
|
OzoneODMGDBag(java.util.Collection _collection)
|
Method Summary | |
DBag |
difference(DBag otherBag)
A new DBag instance is created that contains the difference of
this object and the DBag instance referenced by otherBag . |
boolean |
existsElement(java.lang.String predicate)
NOT SUPPORTED! |
DBag |
intersection(DBag otherBag)
A new DBag instance is created that contains the intersection of
this object and the DBag referenced by otherBag . |
int |
occurrences(java.lang.Object obj)
This method returns the number of occurrences of the object obj
in the DBag collection. |
DCollection |
query(java.lang.String predicate)
NOT SUPPORTED! |
java.util.Iterator |
select(java.lang.String predicate)
NOT SUPPORTED! |
java.lang.Object |
selectElement(java.lang.String predicate)
NOT SUPPORTED! |
DBag |
union(DBag otherBag)
A new DBag instance is created that is the union of this object
and otherBag . |
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
containsAll, remove, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList |
Constructor Detail |
public OzoneODMGDBag()
public OzoneODMGDBag(java.util.Collection _collection)
Method Detail |
public DBag union(DBag otherBag)
DBag
instance is created that is the union of this object
and otherBag
.
This method is similar to the addAll
method in Collection
,
except that this method creates a new collection and addAll
modifies the object to contain the result.
union
in interface DBag
otherBag
- The other bag to use in the union operation.
DBag
instance that contains the union of this object
and otherBag
.public DBag intersection(DBag otherBag)
DBag
instance is created that contains the intersection of
this object and the DBag
referenced by otherBag
.
This method is similar to the retainAll
method in Collection
,
except that this method creates a new collection and retainAll
modifies the object to contain the result.
intersection
in interface DBag
otherBag
- The other bag to use in creating the intersection.
DBag
instance that contains the intersection of this
object and otherBag
.public DBag difference(DBag otherBag)
DBag
instance is created that contains the difference of
this object and the DBag
instance referenced by otherBag
.
This method is similar to the removeAll
method in Collection
,
except that this method creates a new collection and removeAll
modifies the object to contain the result.
difference
in interface DBag
otherBag
- The other bag to use in creating the difference.
DBag
instance that contains the elements of this object
minus the elements in otherBag
.public int occurrences(java.lang.Object obj)
obj
in the DBag
collection.
occurrences
in interface DBag
obj
- The value that may have elements in the collection.
obj
in this collection.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.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 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 boolean existsElement(java.lang.String predicate) throws QueryInvalidException
existsElement
in interface DCollection
predicate
- An OQL boolean query predicate.
QueryInvalidException
- The query predicate is invalid.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |