|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides access to the information that specifies a query from a view
to a
repository
and to the results of the remote query execution;
Field Summary |
---|
Fields inherited from interface org.eclipse.emf.cdo.common.util.CDOQueryInfo |
---|
UNLIMITED_RESULTS |
Method Summary | ||
---|---|---|
|
getResult()
Same as getResult(Class) but tries to infer the return type from the static context. |
|
|
getResult(Class<T> classObject)
Sends this query to the server and returns a typed list containing the query result. |
|
|
getResultAsync()
Same as getResultAsync(Class) but tries to infer the return type from the static context. |
|
|
getResultAsync(Class<T> classObject)
Sends this query to the server and returns a typed iterator over the query result. |
|
CDOView |
getView()
Returns the view this query was created by and is associated with. |
|
CDOQuery |
setContext(Object object)
Binds an object as teh context for this query. |
|
CDOQuery |
setMaxResults(int maxResults)
Sets the maximum number of results to retrieve from the server. |
|
CDOQuery |
setParameter(String name,
Object value)
Binds an argument value to a named parameter. |
Methods inherited from interface org.eclipse.emf.cdo.common.util.CDOQueryInfo |
---|
getChangeSetData, getContext, getMaxResults, getParameters, getQueryLanguage, getQueryString, isLegacyModeEnabled |
Method Detail |
---|
CDOView getView()
view
this query was created by and is associated with.
null
.<T> CloseableIterator<T> getResultAsync(Class<T> classObject)
iterator
over the query result.
As opposed to the getResult(Class)
method, this method asynchronously communicates with the server.
In other words, the returned iterator can be used immediately, even if the server is still about to send pending
result elements.
<T> CloseableIterator<T> getResultAsync()
getResultAsync(Class)
but tries to infer the return type from the static context.
<T> List<T> getResult(Class<T> classObject)
list
containing the query result.
As opposed to the getResultAsync(Class)
method, this method synchronously communicates with the
server. In other words, the result list is only returned after all result elements have been received by the
client.
<T> List<T> getResult()
getResult(Class)
but tries to infer the return type from the static context.
CDOQuery setMaxResults(int maxResults)
maxResults
- the maximum number of results to retrieve or CDOQueryInfo.UNLIMITED_RESULTS
for no limitation.
CDOQuery setParameter(String name, Object value)
name
- the parameter namevalue
- the value to bind
IllegalArgumentException
- if the parameter name does not correspond to a parameter in the query string or if the argument value is
of incorrect typeCDOQuery setContext(Object object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |