public class OCommandExecutorToOStatementWrapper extends Object implements OCommandExecutor
Modifier and Type | Field and Description |
---|---|
protected OSQLAsynchQuery<ODocument> |
request |
protected OStatement |
statement |
Constructor and Description |
---|
OCommandExecutorToOStatementWrapper() |
Modifier and Type | Method and Description |
---|---|
Object |
execute(Map<Object,Object> iArgs)
Execute the requested command parsed previously.
|
OCommandContext |
getContext() |
static ODatabaseDocumentInternal |
getDatabase() |
long |
getDistributedTimeout() |
String |
getFetchPlan() |
Set<String> |
getInvolvedClusters()
Returns the involved clusters.
|
Map<Object,Object> |
getParameters() |
int |
getSecurityOperationType()
Returns the security operation type use to check about security.
|
String |
getSyntax() |
boolean |
involveSchema() |
boolean |
isCacheable()
Returns true if the command results can be cached.
|
boolean |
isIdempotent()
Returns true if the command doesn't change the database, otherwise false.
|
boolean |
isLocalExecution()
Returns true if the command must be executed on local node on distributed configuration.
|
Object |
mergeResults(Map<String,Object> results) |
OCommandExecutorToOStatementWrapper |
parse(OCommandRequest iCommand)
Parse the request.
|
void |
setContext(OCommandContext context) |
<RET extends OCommandExecutor> |
setLimit(int iLimit) |
<RET extends OCommandExecutor> |
setProgressListener(OProgressListener progressListener)
Set the listener invoked while the command is executing.
|
protected OSQLAsynchQuery<ODocument> request
protected OStatement statement
public OCommandExecutorToOStatementWrapper parse(OCommandRequest iCommand)
OCommandExecutor
parse
in interface OCommandExecutor
iCommand
- Command request implementation.#execute(Map
public static ODatabaseDocumentInternal getDatabase()
public Object execute(Map<Object,Object> iArgs)
OCommandExecutor
execute
in interface OCommandExecutor
iArgs
- Optional variable arguments to pass to the command.OCommandExecutor.parse(OCommandRequest)
public <RET extends OCommandExecutor> RET setProgressListener(OProgressListener progressListener)
OCommandExecutor
setProgressListener
in interface OCommandExecutor
progressListener
- OProgressListener implementationpublic <RET extends OCommandExecutor> RET setLimit(int iLimit)
setLimit
in interface OCommandExecutor
public String getFetchPlan()
getFetchPlan
in interface OCommandExecutor
public Map<Object,Object> getParameters()
getParameters
in interface OCommandExecutor
public OCommandContext getContext()
getContext
in interface OCommandExecutor
public void setContext(OCommandContext context)
setContext
in interface OCommandExecutor
public boolean isIdempotent()
OCommandExecutor
isIdempotent
in interface OCommandExecutor
public Set<String> getInvolvedClusters()
OCommandExecutor
getInvolvedClusters
in interface OCommandExecutor
public int getSecurityOperationType()
OCommandExecutor
getSecurityOperationType
in interface OCommandExecutor
PERMISSION_*
public boolean involveSchema()
involveSchema
in interface OCommandExecutor
public String getSyntax()
getSyntax
in interface OCommandExecutor
public boolean isLocalExecution()
OCommandExecutor
isLocalExecution
in interface OCommandExecutor
public boolean isCacheable()
OCommandExecutor
isCacheable
in interface OCommandExecutor
public long getDistributedTimeout()
getDistributedTimeout
in interface OCommandExecutor
public Object mergeResults(Map<String,Object> results) throws Exception
mergeResults
in interface OCommandExecutor
Exception
Copyright © 2009–2020 OrientDB. All rights reserved.