
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
Returns the fetch plan if any
|
int |
getLimit()
This api is deprecated use sql keyword "LIMIT" instead
Returns the limit of result set.
|
OCommandContext.TIMEOUT_STRATEGY |
getTimeoutStrategy()
This api is deprecated use sql keyword "TIMEOUT" instead
Returns the command timeout strategy between the defined ones.
|
long |
getTimeoutTime()
This api is deprecated use sql keyword "TIMEOUT" instead
Returns the command timeout.
|
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
Set the fetch plan.
|
OCommandRequest |
setLimit(int iLimit)
This api is deprecated use sql keyword "LIMIT" instead
Sets the maximum items the command can returns.
|
void |
setTimeout(long timeout,
OCommandContext.TIMEOUT_STRATEGY strategy)
This api is deprecated use sql keyword "TIMEOUT" instead
Sets the command timeout.
|
void |
setUseCache(boolean iUseCache) |
public OrientGraphCommand(OrientBaseGraph iGraph, OCommandRequest iCommand)
public <RET> RET execute(Object... iArgs)
execute in interface OCommandRequestpublic int getLimit()
OCommandRequestgetLimit in interface OCommandRequestpublic OCommandRequest setLimit(int iLimit)
OCommandRequestsetLimit in interface OCommandRequestiLimit - -1 = no limit. 1 to N to limit the result set.public long getTimeoutTime()
OCommandRequestgetTimeoutTime in interface OCommandRequestpublic OCommandContext.TIMEOUT_STRATEGY getTimeoutStrategy()
OCommandRequestgetTimeoutStrategy in interface OCommandRequestpublic void setTimeout(long timeout,
OCommandContext.TIMEOUT_STRATEGY strategy)
OCommandRequestsetTimeout in interface OCommandRequestpublic boolean isIdempotent()
OCommandRequestisIdempotent in interface OCommandRequestpublic String getFetchPlan()
OCommandRequestgetFetchPlan in interface OCommandRequestpublic <RET extends OCommandRequest> RET setFetchPlan(String iFetchPlan)
OCommandRequest<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.