public abstract class OCommandExecutorSQLAbstract extends OCommandExecutorAbstract
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_PREFIX |
static String |
CLUSTER_PREFIX |
static String |
DEFAULT_PARAM_USER |
static String |
DICTIONARY_PREFIX |
static String |
INDEX_PREFIX |
static String |
INDEX_VALUES_ASC_PREFIX |
static String |
INDEX_VALUES_DESC_PREFIX |
static String |
INDEX_VALUES_PREFIX |
static String |
KEYWORD_FROM |
static String |
KEYWORD_KEY |
static String |
KEYWORD_LET |
static String |
KEYWORD_LIMIT |
static String |
KEYWORD_LOCK |
static String |
KEYWORD_OFFSET |
static String |
KEYWORD_RETURN |
static String |
KEYWORD_RID |
static String |
KEYWORD_SKIP |
static String |
KEYWORD_TIMEOUT |
static String |
KEYWORD_UNSAFE |
static String |
KEYWORD_WHERE |
static String |
METADATA_DATABASE |
static String |
METADATA_INDEXMGR |
static String |
METADATA_PREFIX |
static String |
METADATA_SCHEMA |
static String |
METADATA_STORAGE |
protected OStatement |
preParsedStatement |
protected long |
timeoutMs |
protected OCommandContext.TIMEOUT_STRATEGY |
timeoutStrategy |
context, limit, parameters, progressListener
parserText, parserTextUpperCase
Constructor and Description |
---|
OCommandExecutorSQLAbstract() |
Modifier and Type | Method and Description |
---|---|
protected void |
bindDefaultContextVariables() |
protected boolean |
checkClusterAccess(ODatabaseDocument db,
String iClusterName) |
protected String |
decodeClassName(String s) |
OCommandDistributedReplicateRequest.DISTRIBUTED_EXECUTION_MODE |
getDistributedExecutionMode()
The command is replicated
|
protected Set<String> |
getInvolvedClustersOfClasses(Collection<String> iClassNames) |
protected Set<String> |
getInvolvedClustersOfClusters(Collection<String> iClusterNames) |
protected Set<String> |
getInvolvedClustersOfIndex(String iIndexName) |
boolean |
isIdempotent()
Returns true if the command doesn't change the database, otherwise false.
|
protected String |
parseLock()
Parses the lock keyword if found.
|
protected boolean |
parseTimeout(String w)
Parses the timeout keyword if found.
|
protected String |
preParse(String queryText,
OCommandRequest iRequest) |
protected void |
throwParsingException(String iText) |
protected void |
throwParsingException(String iText,
Exception e) |
protected void |
throwSyntaxErrorException(String iText)
Throws a syntax error exception.
|
checkInterruption, checkInterruption, getContext, getDatabase, getDistributedResultManagement, getDistributedTimeout, getFetchPlan, getInvolvedClusters, getLimit, getParameters, getProgressListener, getSecurityOperationType, getUndoCommand, init, involveSchema, isCacheable, isDistributedExecutingOnLocalNodeFirst, isLocalExecution, mergeResults, setContext, setLimit, setProgressListener, toString, upperCase
getLastWordLength, getSyntax, getWordStatic, nextWord, nextWord, parseOptionalWord, parserGetCurrentChar, parserGetCurrentPosition, parserGetLastSeparator, parserGetLastWord, parserGetPreviousPosition, parserGoBack, parserIsEnded, parserMoveCurrentPosition, parserNextChars, parserNextWord, parserNextWord, parserNextWord, parserOptionalKeyword, parserOptionalWord, parserRequiredKeyword, parserRequiredWord, parserRequiredWord, parserRequiredWord, parserSetCurrentPosition, parserSetEndOfText, parserSetLastSeparator, parserSkipWhiteSpaces
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
execute, getSyntax, parse
public static final String KEYWORD_FROM
public static final String KEYWORD_LET
public static final String KEYWORD_WHERE
public static final String KEYWORD_LIMIT
public static final String KEYWORD_SKIP
public static final String KEYWORD_OFFSET
public static final String KEYWORD_TIMEOUT
public static final String KEYWORD_LOCK
public static final String KEYWORD_RETURN
public static final String KEYWORD_KEY
public static final String KEYWORD_RID
public static final String CLUSTER_PREFIX
public static final String CLASS_PREFIX
public static final String INDEX_PREFIX
public static final String KEYWORD_UNSAFE
public static final String INDEX_VALUES_PREFIX
public static final String INDEX_VALUES_ASC_PREFIX
public static final String INDEX_VALUES_DESC_PREFIX
public static final String DICTIONARY_PREFIX
public static final String METADATA_PREFIX
public static final String METADATA_SCHEMA
public static final String METADATA_INDEXMGR
public static final String METADATA_STORAGE
public static final String METADATA_DATABASE
public static final String DEFAULT_PARAM_USER
protected long timeoutMs
protected OCommandContext.TIMEOUT_STRATEGY timeoutStrategy
protected OStatement preParsedStatement
public OCommandDistributedReplicateRequest.DISTRIBUTED_EXECUTION_MODE getDistributedExecutionMode()
public boolean isIdempotent()
OCommandExecutor
protected void throwSyntaxErrorException(String iText)
OBaseParser
throwSyntaxErrorException
in class OBaseParser
iText
- Text about the problem.protected void throwParsingException(String iText)
protected boolean parseTimeout(String w) throws OCommandSQLParsingException
OCommandSQLParsingException
protected String parseLock() throws OCommandSQLParsingException
OCommandSQLParsingException
protected Set<String> getInvolvedClustersOfClasses(Collection<String> iClassNames)
protected Set<String> getInvolvedClustersOfClusters(Collection<String> iClusterNames)
protected boolean checkClusterAccess(ODatabaseDocument db, String iClusterName)
protected void bindDefaultContextVariables()
protected String preParse(String queryText, OCommandRequest iRequest)
Copyright © 2009–2020 OrientDB. All rights reserved.