|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.objectweb.speedo.query.lib.QueryResultCommon
org.objectweb.speedo.query.lib.QueryResultList
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.
| Field Summary |
|---|
| Fields inherited from class org.objectweb.speedo.query.lib.QueryResultCommon |
|---|
conns, debug, logger, pm, tc |
| Constructor Summary | |
|---|---|
QueryResultList(org.objectweb.medor.tuple.api.TupleCollection _tc,
javax.jdo.PersistenceManager _pm,
java.lang.Object[] _conns,
java.lang.Class _resultClazz,
java.lang.Class[] _selectedFieldTypes,
boolean staticFirstElementIndex,
org.objectweb.util.monolog.api.Logger _logger)
Builds a QueryResultList. |
|
| Method Summary | |
|---|---|
void |
add(int index,
java.lang.Object element)
|
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). |
boolean |
addAll(int index,
java.util.Collection c)
|
protected boolean |
assertBeforeNext()
|
protected boolean |
assertNotClosed()
|
void |
clear()
Removes all of the elements from this collection (optional operation). |
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. |
java.lang.Object |
get(int index)
|
protected java.util.List |
getList()
Computes the query result. |
int |
hashCode()
Returns the hash code value for this collection. |
int |
indexOf(java.lang.Object o)
|
boolean |
isEmpty()
Returns true if this collection contains no elements. |
java.util.Iterator |
iterator()
Returns an iterator over the elements in this collection. |
int |
lastIndexOf(java.lang.Object o)
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int index)
|
java.lang.Object |
remove(int index)
|
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). |
java.lang.Object |
set(int index,
java.lang.Object element)
|
int |
size()
Returns the number of elements in this collection. |
java.util.List |
subList(int fromIndex,
int toIndex)
|
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 org.objectweb.speedo.query.lib.QueryResultCommon |
|---|
close, closeConnection, getValue, pname2Object |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public QueryResultList(org.objectweb.medor.tuple.api.TupleCollection _tc,
javax.jdo.PersistenceManager _pm,
java.lang.Object[] _conns,
java.lang.Class _resultClazz,
java.lang.Class[] _selectedFieldTypes,
boolean staticFirstElementIndex,
org.objectweb.util.monolog.api.Logger _logger)
throws org.objectweb.medor.api.MedorException,
SpeedoException
_tc - the tuple collection representing the query result_pm - is the peristence manager linked to the query_conns - is the connection to the underlying support to close in
same time than the query._resultClazz - is the class encapsulated the result| Method Detail |
protected boolean assertNotClosed()
protected boolean assertBeforeNext()
protected java.util.List getList()
public boolean add(java.lang.Object o)
add in interface java.util.Listpublic boolean addAll(java.util.Collection c)
addAll in interface java.util.Listpublic void clear()
clear in interface java.util.Listpublic boolean contains(java.lang.Object o)
contains in interface java.util.Listpublic boolean containsAll(java.util.Collection c)
containsAll in interface java.util.Listpublic boolean equals(java.lang.Object o)
equals in interface java.util.Listpublic int hashCode()
hashCode in interface java.util.Listpublic boolean isEmpty()
isEmpty in interface java.util.Listpublic java.util.Iterator iterator()
iterator in interface java.util.Listpublic boolean remove(java.lang.Object o)
remove in interface java.util.Listpublic boolean removeAll(java.util.Collection c)
removeAll in interface java.util.Listpublic boolean retainAll(java.util.Collection c)
retainAll in interface java.util.Listpublic int size()
size in interface java.util.Listpublic java.lang.Object[] toArray()
toArray in interface java.util.Listpublic java.lang.Object[] toArray(java.lang.Object[] a)
toArray in interface java.util.List
public void add(int index,
java.lang.Object element)
add in interface java.util.List
public boolean addAll(int index,
java.util.Collection c)
addAll in interface java.util.Listpublic java.lang.Object get(int index)
get in interface java.util.Listpublic int indexOf(java.lang.Object o)
indexOf in interface java.util.Listpublic int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.Listpublic java.util.ListIterator listIterator()
listIterator in interface java.util.Listpublic java.util.ListIterator listIterator(int index)
listIterator in interface java.util.Listpublic java.lang.Object remove(int index)
remove in interface java.util.List
public java.lang.Object set(int index,
java.lang.Object element)
set in interface java.util.List
public java.util.List subList(int fromIndex,
int toIndex)
subList in interface java.util.List
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||