com.orientechnologies.orient.core.sql.query
Class OSQLSynchQuery<T>
java.lang.Object
com.orientechnologies.orient.core.command.OCommandRequestAbstract
com.orientechnologies.orient.core.query.OQueryAbstract<T>
com.orientechnologies.orient.core.sql.query.OSQLQuery<T>
com.orientechnologies.orient.core.sql.query.OSQLAsynchQuery<T>
com.orientechnologies.orient.core.sql.query.OSQLSynchQuery<T>
- Type Parameters:
T -
- All Implemented Interfaces:
- OCommandRequest, OCommandRequestAsynch, OCommandRequestInternal, OCommandRequestText, OCommandResultListener, OQuery<T>, OSerializableStream, java.io.Serializable
public class OSQLSynchQuery<T>
- extends OSQLAsynchQuery<T>
- implements OCommandResultListener
SQL synchronous query. When executed the caller wait for the result.
- See Also:
OSQLAsynchQuery,
Serialized Form
|
Method Summary |
java.lang.Object |
getResult()
|
void |
reset()
|
boolean |
result(java.lang.Object iRecord)
|
java.util.List<T> |
run(java.lang.Object... iArgs)
Delegates to the OQueryExecutor the query execution. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OSQLSynchQuery
public OSQLSynchQuery()
OSQLSynchQuery
public OSQLSynchQuery(java.lang.String iText)
OSQLSynchQuery
public OSQLSynchQuery(java.lang.String iText,
int iLimit)
reset
public void reset()
- Specified by:
reset in interface OCommandRequestInternal- Specified by:
reset in interface OQuery<T>- Overrides:
reset in class OQueryAbstract<T>
result
public boolean result(java.lang.Object iRecord)
- Specified by:
result in interface OCommandResultListener
run
public java.util.List<T> run(java.lang.Object... iArgs)
- Description copied from class:
OSQLQuery
- Delegates to the OQueryExecutor the query execution.
- Specified by:
run in interface OQuery<T>- Overrides:
run in class OSQLQuery<T>
- Returns:
- List of records if any record matches the query constraints, otherwise an empty List.
getResult
public java.lang.Object getResult()
Copyrights 2010-2011 (c) Luca Garulli. All Rights Reserved. This software is released as Open Source using the Apache 2.0 license.