Class OQueryAbstract<T>
java.lang.Object
com.orientechnologies.orient.core.command.OCommandRequestAbstract
com.orientechnologies.orient.core.query.OQueryAbstract<T>
- All Implemented Interfaces:
OCommandRequest,OCommandRequestInternal,OQuery<T>
- Direct Known Subclasses:
OSQLQuery
-
Field Summary
Fields inherited from class com.orientechnologies.orient.core.command.OCommandRequestAbstract
cacheableResult, context, fetchPlan, limit, parameters, progressListener, resultListener, timeoutMs, timeoutStrategy, useCache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<RET> RETReturns the current fetch plan.booleanReturns true if the command doesn't change the database, otherwise false.voidreset()Resets the query removing the result set.setFetchPlan(String fetchPlan) Sets the fetch plan to use.Methods inherited from class com.orientechnologies.orient.core.command.OCommandRequestAbstract
addExcludedNode, convertToParameters, getContext, getLimit, getParameters, getProgressListener, getResultListener, getTimeoutStrategy, getTimeoutTime, isCacheableResult, isRecordResultSet, isUseCache, removeExcludedNode, setCacheableResult, setContext, setLimit, setParameters, setProgressListener, setRecordResultSet, setResultListener, setTimeout, setUseCacheMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.core.command.OCommandRequest
getContext, getLimit, getTimeoutStrategy, getTimeoutTime, setContext, setLimit, setTimeout, setUseCache
-
Constructor Details
-
OQueryAbstract
public OQueryAbstract()
-
-
Method Details
-
execute
- Specified by:
executein interfaceOCommandRequest
-
getFetchPlan
Returns the current fetch plan.- Specified by:
getFetchPlanin interfaceOCommandRequest- Overrides:
getFetchPlanin classOCommandRequestAbstract- Returns:
- Fetch plan as unique string or null if it was not defined.
-
setFetchPlan
Sets the fetch plan to use.- Specified by:
setFetchPlanin interfaceOCommandRequest- Overrides:
setFetchPlanin classOCommandRequestAbstract- Returns:
-
reset
public void reset()Resets the query removing the result set. Call this to reuse the Query object preventing a pagination.- Specified by:
resetin interfaceOCommandRequestInternal- Specified by:
resetin interfaceOQuery<T>- Overrides:
resetin classOCommandRequestAbstract
-
isIdempotent
public boolean isIdempotent()Description copied from interface:OCommandRequestReturns true if the command doesn't change the database, otherwise false.- Specified by:
isIdempotentin interfaceOCommandRequest
-