
T - Record type to return.public abstract class OSQLQuery<T> extends OQueryAbstract<T> implements OCommandRequestText
| Modifier and Type | Field and Description |
|---|---|
protected String |
text |
cacheableResult, context, fetchPlan, limit, onAsyncReplicationError, onAsyncReplicationOk, parameters, progressListener, resultListener, timeoutMs, timeoutStrategy, useCache| Modifier and Type | Method and Description |
|---|---|
protected Map<Object,Object> |
deserializeQueryParameters(byte[] paramBuffer) |
OSerializableStream |
fromStream(byte[] iStream)
Unmarshalls the object.
|
String |
getText() |
protected void |
queryFromStream(OMemoryStream buffer) |
protected OMemoryStream |
queryToStream() |
List<T> |
run(Object... iArgs)
Delegates to the OQueryExecutor the query execution.
|
T |
runFirst(Object... iArgs)
Returns only the first record if any.
|
protected byte[] |
serializeQueryParameters(Map<Object,Object> params) |
OCommandRequestText |
setText(String iText) |
byte[] |
toStream()
Marshalls the object.
|
String |
toString() |
execute, getFetchPlan, isIdempotent, reset, setFetchPlanaddExcludedNode, convertToParameters, getContext, getLimit, getOnAsyncReplicationError, getOnAsyncReplicationOk, getParameters, getProgressListener, getResultListener, getTimeoutStrategy, getTimeoutTime, isCacheableResult, isRecordResultSet, isUseCache, nodesToExclude, onAsyncReplicationError, onAsyncReplicationOk, removeExcludedNode, setCacheableResult, setContext, setLimit, setParameters, setProgressListener, setRecordResultSet, setResultListener, setTimeout, setUseCacheclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetParameters, getProgressListener, getResultListener, isCacheableResult, isRecordResultSet, reset, setCacheableResult, setProgressListener, setRecordResultSet, setResultListenerexecute, getContext, getFetchPlan, getLimit, getTimeoutStrategy, getTimeoutTime, isIdempotent, setContext, setFetchPlan, setLimit, setTimeout, setUseCacheprotected String text
public OSQLQuery()
public OSQLQuery(String iText)
public String getText()
getText in interface OCommandRequestTextpublic OCommandRequestText setText(String iText)
setText in interface OCommandRequestTextpublic OSerializableStream fromStream(byte[] iStream) throws OSerializationException
OSerializableStreamfromStream in interface OSerializableStreamiStream - byte array representation of the objectOSerializationException - if the unmarshalling does not succeedpublic byte[] toStream()
throws OSerializationException
OSerializableStreamtoStream in interface OSerializableStreamOSerializationException - if the marshalling does not succeedOSerializableStream.fromStream(byte[])protected OMemoryStream queryToStream()
protected void queryFromStream(OMemoryStream buffer)
protected Map<Object,Object> deserializeQueryParameters(byte[] paramBuffer)
Copyright © 2009–2025 OrientDB. All rights reserved.