|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList
org.datanucleus.store.query.AbstractQueryResult
org.datanucleus.store.query.CandidateIdsQueryResult
public class CandidateIdsQueryResult
QueryResult taking in the list of identities of the objects of candidate type. This is used where we cached the results of a query (the "ids") and just want to materialise them. User can define the query extension "datanucleus.query.resultCache.type" to define the type of internal caching of objects once they are found. User can also define whether the returned objects are validated against the datastore upon retrieval using the query extension "datanucleus.query.resultCache.validateObjects" (default=true)
| Nested Class Summary | |
|---|---|
class |
CandidateIdsQueryResult.ResultIterator
Iterator for results for this query. |
| Field Summary |
|---|
| Fields inherited from class org.datanucleus.store.query.AbstractQueryResult |
|---|
closed, connectionListeners, loadResultsAtCommit, LOCALISER, query, resultSizeMethod, size |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
CandidateIdsQueryResult(Query query,
java.util.List<java.lang.Object> ids)
|
|
| Method Summary | |
|---|---|
protected void |
closeResults()
Inform the query result that we are closing the results now. |
protected 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)
Convenience method to get the object for a particular index. |
java.util.Iterator |
iterator()
Accessor for an iterator for the results. |
java.util.ListIterator |
listIterator()
Accessor for a list iterator for the results. |
| Methods inherited from class org.datanucleus.store.query.AbstractQueryResult |
|---|
add, add, addAll, addConnectionListener, assertIsOpen, clear, close, contains, containsAll, disconnect, getSizeUsingMethod, hashCode, indexOf, isEmpty, isOpen, lastIndexOf, remove, set, size, 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 java.util.Collection |
|---|
addAll, remove, removeAll, retainAll |
| Methods inherited from interface java.util.List |
|---|
addAll, remove, removeAll, retainAll |
| Constructor Detail |
|---|
public CandidateIdsQueryResult(Query query,
java.util.List<java.lang.Object> ids)
| Method Detail |
|---|
protected void closeResults()
AbstractQueryResult
closeResults in class AbstractQueryResultprotected void closingConnection()
AbstractQueryResult
closingConnection in class AbstractQueryResultpublic boolean equals(java.lang.Object o)
AbstractQueryResult
equals in interface java.util.Collectionequals in interface java.util.Listequals in class AbstractQueryResulto - The object to compare against
public java.lang.Object get(int index)
AbstractQueryResult
get in interface java.util.Listget in class AbstractQueryResultindex - The index of the element
public java.util.Iterator iterator()
AbstractQueryResult
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in interface java.util.Listiterator in class AbstractQueryResultpublic java.util.ListIterator listIterator()
AbstractQueryResult
listIterator in interface java.util.ListlistIterator in class AbstractQueryResultprotected java.lang.Object getObjectForIndex(int index)
index - The index
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||