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