org.objectweb.speedo.runtime.query
Class QueryResultCollection

java.lang.Object
  |
  +--org.objectweb.speedo.runtime.query.QueryResultCollection
All Implemented Interfaces:
java.util.Collection

public class QueryResultCollection
extends java.lang.Object
implements java.util.Collection


Constructor Summary
QueryResultCollection()
           
 
Method Summary
 boolean add(java.lang.Object o)
          Ensures that this collection contains the specified element (optional operation).
 boolean addAll(java.util.Collection c)
          Adds all of the elements in the specified collection to this collection (optional operation).
 void clear()
          Removes all of the elements from this collection (optional operation).
 void close()
           
 boolean contains(java.lang.Object o)
          Returns true if this collection contains the specified element.
 boolean containsAll(java.util.Collection c)
          Returns true if this collection contains all of the elements in the specified collection.
 boolean equals(java.lang.Object o)
          Compares the specified object with this collection for equality.
 int hashCode()
          Returns the hash code value for this collection.
 void init(org.objectweb.medor.tuple.api.TupleCollection tc, javax.jdo.PersistenceManager pm, java.lang.Object[] conns, org.objectweb.jorm.api.PMapper mapper, org.objectweb.util.monolog.api.Logger logger)
           
 boolean isEmpty()
          Returns true if this collection contains no elements.
 java.util.Iterator iterator()
          Returns an iterator over the elements in this collection.
 boolean remove(java.lang.Object o)
          Removes a single instance of the specified element from this collection, if it is present (optional operation).
 boolean removeAll(java.util.Collection c)
          Removes all this collection's elements that are also contained in the specified collection (optional operation).
 boolean retainAll(java.util.Collection c)
          Retains only the elements in this collection that are contained in the specified collection (optional operation).
 int size()
          Returns the number of elements in this collection.
 java.lang.Object[] toArray()
          Returns an array containing all of the elements in this collection.
 java.lang.Object[] toArray(java.lang.Object[] a)
          Returns an array containing all of the elements in this collection whose runtime type is that of the specified array.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryResultCollection

public QueryResultCollection()
Method Detail

init

public void init(org.objectweb.medor.tuple.api.TupleCollection tc,
                 javax.jdo.PersistenceManager pm,
                 java.lang.Object[] conns,
                 org.objectweb.jorm.api.PMapper mapper,
                 org.objectweb.util.monolog.api.Logger logger)
          throws org.objectweb.medor.api.MedorException

close

public void close()

add

public boolean add(java.lang.Object o)
Ensures that this collection contains the specified element (optional operation).
Specified by:
add in interface java.util.Collection

addAll

public boolean addAll(java.util.Collection c)
Adds all of the elements in the specified collection to this collection (optional operation).
Specified by:
addAll in interface java.util.Collection

clear

public void clear()
Removes all of the elements from this collection (optional operation).
Specified by:
clear in interface java.util.Collection

contains

public boolean contains(java.lang.Object o)
Returns true if this collection contains the specified element.
Specified by:
contains in interface java.util.Collection

containsAll

public boolean containsAll(java.util.Collection c)
Returns true if this collection contains all of the elements in the specified collection.
Specified by:
containsAll in interface java.util.Collection

equals

public boolean equals(java.lang.Object o)
Compares the specified object with this collection for equality.
Specified by:
equals in interface java.util.Collection
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns the hash code value for this collection.
Specified by:
hashCode in interface java.util.Collection
Overrides:
hashCode in class java.lang.Object

isEmpty

public boolean isEmpty()
Returns true if this collection contains no elements.
Specified by:
isEmpty in interface java.util.Collection

iterator

public java.util.Iterator iterator()
Returns an iterator over the elements in this collection.
Specified by:
iterator in interface java.util.Collection

remove

public boolean remove(java.lang.Object o)
Removes a single instance of the specified element from this collection, if it is present (optional operation).
Specified by:
remove in interface java.util.Collection

removeAll

public boolean removeAll(java.util.Collection c)
Removes all this collection's elements that are also contained in the specified collection (optional operation).
Specified by:
removeAll in interface java.util.Collection

retainAll

public boolean retainAll(java.util.Collection c)
Retains only the elements in this collection that are contained in the specified collection (optional operation).
Specified by:
retainAll in interface java.util.Collection

size

public int size()
Returns the number of elements in this collection.
Specified by:
size in interface java.util.Collection

toArray

public java.lang.Object[] toArray()
Returns an array containing all of the elements in this collection.
Specified by:
toArray in interface java.util.Collection

toArray

public java.lang.Object[] toArray(java.lang.Object[] a)
Returns an array containing all of the elements in this collection whose runtime type is that of the specified array.
Specified by:
toArray in interface java.util.Collection