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,
ORecordSerializer serializer) |
OCommandRequestText |
fromStream(byte[] iStream,
ORecordSerializer serializer) |
String |
getText() |
protected void |
queryFromStream(OMemoryStream buffer,
ORecordSerializer serializer) |
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() |
String |
toString() |
execute, getFetchPlan, isIdempotent, reset, setFetchPlan
addExcludedNode, 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, setUseCache
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getParameters, getProgressListener, getResultListener, isCacheableResult, isRecordResultSet, reset, setCacheableResult, setProgressListener, setRecordResultSet, setResultListener
execute, getContext, getFetchPlan, getLimit, getTimeoutStrategy, getTimeoutTime, isIdempotent, setContext, setFetchPlan, setLimit, setTimeout, setUseCache
protected String text
public OSQLQuery()
public OSQLQuery(String iText)
public String getText()
getText
in interface OCommandRequestText
public OCommandRequestText setText(String iText)
setText
in interface OCommandRequestText
public OCommandRequestText fromStream(byte[] iStream, ORecordSerializer serializer) throws OSerializationException
fromStream
in interface OCommandRequestText
OSerializationException
public byte[] toStream() throws OSerializationException
toStream
in interface OCommandRequestText
OSerializationException
protected OMemoryStream queryToStream()
protected void queryFromStream(OMemoryStream buffer, ORecordSerializer serializer)
protected Map<Object,Object> deserializeQueryParameters(byte[] paramBuffer, ORecordSerializer serializer)
Copyright © 2009–2020 OrientDB. All rights reserved.