org.ozoneDB.odmg
Class OzoneODMGDArray

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.ArrayList
                    |
                    +--org.ozoneDB.odmg.OzoneODMGDArray
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, DArray, DCollection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class OzoneODMGDArray
extends java.util.ArrayList
implements DArray

Version:
$Revision: 1.1 $Date: 2002/05/08 15:03:21 $
Author:
SMB
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
OzoneODMGDArray()
           
OzoneODMGDArray(java.util.Collection _collection)
           
 
Method Summary
 boolean existsElement(java.lang.String predicate)
          NOT SUPPORTED!
 DCollection query(java.lang.String predicate)
          NOT SUPPORTED!
 void resize(int newSize)
          Resize the array to have newSize elements.
 java.util.Iterator select(java.lang.String predicate)
          NOT SUPPORTED!
 java.lang.Object selectElement(java.lang.String predicate)
          NOT SUPPORTED!
 
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
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Constructor Detail

OzoneODMGDArray

public OzoneODMGDArray()

OzoneODMGDArray

public OzoneODMGDArray(java.util.Collection _collection)
Method Detail

resize

public void resize(int newSize)
Resize the array to have newSize elements.

Specified by:
resize in interface DArray
Parameters:
newSize - The new size of the array.

selectElement

public java.lang.Object selectElement(java.lang.String predicate)
                               throws QueryInvalidException
NOT SUPPORTED!

Specified by:
selectElement in interface DCollection
Parameters:
predicate - An OQL boolean query predicate.
Returns:
The element that evaluates to true for the predicate. If no element evaluates to true, null is returned.
Throws:
QueryInvalidException - The query predicate is invalid.

select

public java.util.Iterator select(java.lang.String predicate)
                          throws QueryInvalidException
NOT SUPPORTED!

Specified by:
select in interface DCollection
Parameters:
predicate - An OQL boolean query predicate.
Returns:
An iterator used to iterate over the elements that evaluated true for the predicate.
Throws:
QueryInvalidException - The query predicate is invalid.

query

public DCollection query(java.lang.String predicate)
                  throws QueryInvalidException
NOT SUPPORTED!

Specified by:
query in interface DCollection
Parameters:
predicate - An OQL boolean query predicate.
Returns:
A new collection containing the elements that evaluated true for the predicate.
Throws:
QueryInvalidException - The query predicate is invalid.

existsElement

public boolean existsElement(java.lang.String predicate)
                      throws QueryInvalidException
NOT SUPPORTED!

Specified by:
existsElement in interface DCollection
Parameters:
predicate - An OQL boolean query predicate.
Returns:
True if there is an element of the collection that evaluates to true for the predicate, otherwise false.
Throws:
QueryInvalidException - The query predicate is invalid.


Copyright © 2002 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.