|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
org.jpox.store.query.AbstractQueryResult
org.jpox.store.query.InsensitiveQueryResult
Lazy collection results from a Query with the ResultSet insensitive to direction. The actual result elements are only loaded when accessed. Once a result has been loaded it will be stored in a local cache for any subsequent access.
Field Summary |
Fields inherited from class org.jpox.store.query.AbstractQueryResult |
closed, LOCALISER, qs, query, rof, rs |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
InsensitiveQueryResult(QueryExpression qs,
Query query,
Query.ResultObjectFactory rof,
java.sql.ResultSet rs,
java.util.Collection candidates)
Constructor of the result from a Query. |
Method Summary | |
void |
close()
Method to close the results. |
void |
closingConnection()
Inform the query result that the connection is being closed so perform any operations now, or rest in peace. |
boolean |
equals(java.lang.Object o)
Equality operator for QueryResults. |
java.lang.Object |
get(int index)
Method to retrieve a particular element from the list. |
protected java.lang.Object |
getObjectForIndex(int index)
Accessor for the result object at an index. |
boolean |
isEmpty()
Returns true if this collection contains no elements. |
java.util.Iterator |
iterator()
Accessor for an iterator for the results. |
java.util.ListIterator |
listIterator()
Accessor for an iterator for the results. |
int |
size()
Method to return the size of the result set. |
Methods inherited from class org.jpox.store.query.AbstractQueryResult |
add, add, addAll, assertIsOpen, clear, closeResultSet, contains, containsAll, hashCode, indexOf, isOpen, lastIndexOf, newQueryStatement, newQueryStatement, newResultObjectFactory, remove, set, subList, toArray, toArray |
Methods inherited from class java.util.AbstractList |
listIterator, removeRange |
Methods inherited from class java.util.AbstractCollection |
addAll, remove, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jpox.store.query.Queryable |
newQueryStatement, newQueryStatement, newResultObjectFactory |
Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, hashCode, remove, removeAll, retainAll, toArray, toArray |
Methods inherited from interface java.util.List |
addAll, remove, removeAll, retainAll |
Constructor Detail |
public InsensitiveQueryResult(QueryExpression qs, Query query, Query.ResultObjectFactory rof, java.sql.ResultSet rs, java.util.Collection candidates)
qs
- The Query Statementquery
- The Queryrof
- The factory to retrieve results fromrs
- The ResultSet from the Query Statementcandidates
- the Candidates collection. Pass this argument only when distinct = falseMethod Detail |
protected java.lang.Object getObjectForIndex(int index)
index
- The list index position
public void close()
close
in interface QueryResult
close
in class AbstractQueryResult
public void closingConnection()
closingConnection
in interface QueryResult
public java.util.Iterator iterator()
iterator
in interface java.util.Collection
iterator
in class AbstractQueryResult
public java.util.ListIterator listIterator()
listIterator
in interface java.util.List
listIterator
in class AbstractQueryResult
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection
equals
in class AbstractQueryResult
o
- The object to compare against
public java.lang.Object get(int index)
get
in interface java.util.List
get
in class AbstractQueryResult
index
- The index of the element
public boolean isEmpty()
Checks if the result set is empty.
isEmpty
in interface Queryable
isEmpty
in class AbstractQueryResult
public int size()
size
in interface java.util.Collection
size
in class AbstractQueryResult
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |