
public class OrientGraphCommand extends Object implements OCommandRequest
| Constructor and Description |
|---|
OrientGraphCommand(OrientBaseGraph iGraph,
OCommandRequest iCommand) |
| Modifier and Type | Method and Description |
|---|---|
<RET> RET |
execute(Object... iArgs) |
OCommandContext |
getContext() |
String |
getFetchPlan()
This api is deprecated use sql keyword "FETCHPLAN" instead
|
int |
getLimit()
This api is deprecated use sql keyword "LIMIT" instead
|
OCommandContext.TIMEOUT_STRATEGY |
getTimeoutStrategy()
This api is deprecated use sql keyword "TIMEOUT" instead
|
long |
getTimeoutTime()
This api is deprecated use sql keyword "TIMEOUT" instead
|
boolean |
isIdempotent()
Returns true if the command doesn't change the database, otherwise false.
|
OCommandRequest |
setContext(OCommandContext iContext) |
<RET extends OCommandRequest> |
setFetchPlan(String iFetchPlan)
This api is deprecated use sql keyword "FETCHPLAN" instead
|
OCommandRequest |
setLimit(int iLimit)
This api is deprecated use sql keyword "LIMIT" instead
|
void |
setTimeout(long timeout,
OCommandContext.TIMEOUT_STRATEGY strategy)
This api is deprecated use sql keyword "TIMEOUT" instead
|
void |
setUseCache(boolean iUseCache) |
public OrientGraphCommand(OrientBaseGraph iGraph, OCommandRequest iCommand)
public <RET> RET execute(Object... iArgs)
execute in interface OCommandRequestpublic int getLimit()
OCommandRequestReturns the limit of result set. -1 means no limits.
getLimit in interface OCommandRequestpublic OCommandRequest setLimit(int iLimit)
OCommandRequestSets the maximum items the command can returns. -1 means no limits.
setLimit in interface OCommandRequestiLimit - -1 = no limit. 1 to N to limit the result set.public long getTimeoutTime()
OCommandRequestReturns the command timeout. 0 means no timeout.
getTimeoutTime in interface OCommandRequestpublic OCommandContext.TIMEOUT_STRATEGY getTimeoutStrategy()
OCommandRequestReturns the command timeout strategy between the defined ones.
getTimeoutStrategy in interface OCommandRequestpublic void setTimeout(long timeout,
OCommandContext.TIMEOUT_STRATEGY strategy)
OCommandRequestSets the command timeout. When the command execution time is major than the timeout the command returns
setTimeout in interface OCommandRequestpublic boolean isIdempotent()
OCommandRequestisIdempotent in interface OCommandRequestpublic String getFetchPlan()
OCommandRequestReturns the fetch plan if any
getFetchPlan in interface OCommandRequestpublic <RET extends OCommandRequest> RET setFetchPlan(String iFetchPlan)
OCommandRequestSet the fetch plan. The format is:
<field>:<depth-level>*Where:
children:-1 parent:0 sibling:3 *:0
setFetchPlan in interface OCommandRequestpublic void setUseCache(boolean iUseCache)
setUseCache in interface OCommandRequestpublic OCommandContext getContext()
getContext in interface OCommandRequestpublic OCommandRequest setContext(OCommandContext iContext)
setContext in interface OCommandRequestCopyright © 2009–2025 OrientDB. All rights reserved.