| java.lang.Object org.objectweb.speedo.query.jdo.JDOQueryResultCommon org.objectweb.speedo.query.jdo.JDOQueryResultList
JDOQueryResultList | public class JDOQueryResultList extends JDOQueryResultCommon implements List(Code) | | is the result of a JDO query. The result is exported as a java.util.List.
This implementation supports user class or persistent class as query result.
This implementation does not supports simultaneous iterations.
author: S.Chassande-Barrioz |
Constructor Summary | |
public | JDOQueryResultList(TupleCollection _tc, PersistenceManager _pm, Object[] _conns, Class _resultClazz, Class[] _selectedFieldTypes, boolean staticFirstElementIndex, boolean returnIdentifierOnly, Logger _logger) Builds a QueryResultList. |
Method Summary | |
public boolean | add(Object o) Ensures that this collection contains the specified element
(optional operation). | public void | add(int index, Object element) | public boolean | addAll(Collection c) Adds all of the elements in the specified collection to this collection
(optional operation). | public boolean | addAll(int index, Collection c) | protected boolean | assertBeforeNext() | protected boolean | assertNotClosed() | public void | clear() Removes all of the elements from this collection
(optional operation). | public boolean | contains(Object o) Returns true if this collection contains the specified element. | public boolean | containsAll(Collection c) Returns true if this collection contains all of the elements in the
specified collection. | public boolean | equals(Object o) Compares the specified object with this collection for equality. | public Object | get(int index) | protected List | getList() Computes the query result. | public int | hashCode() Returns the hash code value for this collection. | public int | indexOf(Object o) | public boolean | isEmpty() Returns true if this collection contains no elements. | public Iterator | iterator() Returns an iterator over the elements in this collection. | public int | lastIndexOf(Object o) | public ListIterator | listIterator() | public ListIterator | listIterator(int index) | public boolean | remove(Object o) Removes a single instance of the specified element from this collection,
if it is present (optional operation). | public Object | remove(int index) | public boolean | removeAll(Collection c) Removes all this collection's elements that are also contained in the
specified collection (optional operation). | public boolean | retainAll(Collection c) Retains only the elements in this collection that are contained in the
specified collection (optional operation). | public Object | set(int index, Object element) | public int | size() Returns the number of elements in this collection. | public List | subList(int fromIndex, int toIndex) | public Object[] | toArray() Returns an array containing all of the elements in this collection. | public Object[] | toArray(Object[] a) Returns an array containing all of the elements in this collection whose
runtime type is that of the specified array. |
JDOQueryResultList | public JDOQueryResultList(TupleCollection _tc, PersistenceManager _pm, Object[] _conns, Class _resultClazz, Class[] _selectedFieldTypes, boolean staticFirstElementIndex, boolean returnIdentifierOnly, Logger _logger) throws MedorException, SpeedoException(Code) | | Builds a QueryResultList.
Parameters: _tc - the tuple collection representing the query result Parameters: _pm - is the peristence manager linked to the query Parameters: _conns - is the connection to the underlying support to close in same time than the query. Parameters: _resultClazz - is the class encapsulated the result |
add | public boolean add(Object o)(Code) | | Ensures that this collection contains the specified element
(optional operation).
|
addAll | public boolean addAll(Collection c)(Code) | | Adds all of the elements in the specified collection to this collection
(optional operation).
|
assertBeforeNext | protected boolean assertBeforeNext()(Code) | | true if the query has not been closed |
assertNotClosed | protected boolean assertNotClosed()(Code) | | true if the calculation of the next element can be done, otherwise false. |
clear | public void clear()(Code) | | Removes all of the elements from this collection
(optional operation).
|
contains | public boolean contains(Object o)(Code) | | Returns true if this collection contains the specified element.
|
containsAll | public boolean containsAll(Collection c)(Code) | | Returns true if this collection contains all of the elements in the
specified collection.
|
equals | public boolean equals(Object o)(Code) | | Compares the specified object with this collection for equality.
|
getList | protected List getList()(Code) | | Computes the query result.
|
hashCode | public int hashCode()(Code) | | Returns the hash code value for this collection.
|
isEmpty | public boolean isEmpty()(Code) | | Returns true if this collection contains no elements.
|
iterator | public Iterator iterator()(Code) | | Returns an iterator over the elements in this collection.
|
remove | public boolean remove(Object o)(Code) | | Removes a single instance of the specified element from this collection,
if it is present (optional operation).
|
removeAll | public boolean removeAll(Collection c)(Code) | | Removes all this collection's elements that are also contained in the
specified collection (optional operation).
|
retainAll | public boolean retainAll(Collection c)(Code) | | Retains only the elements in this collection that are contained in the
specified collection (optional operation).
|
size | public int size()(Code) | | Returns the number of elements in this collection.
|
subList | public List subList(int fromIndex, int toIndex)(Code) | | |
toArray | public Object[] toArray()(Code) | | Returns an array containing all of the elements in this collection.
|
toArray | public Object[] toArray(Object[] a)(Code) | | Returns an array containing all of the elements in this collection whose
runtime type is that of the specified array.
|
|
|