Class OSQLEngine
java.lang.Object
com.orientechnologies.orient.core.sql.OSQLEngine
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectforeachRecord(OCallable<Object, OIdentifiable> iCallable, Object iCurrent, OCommandContext iContext) static OCollategetCollate(String name) static Iterator<OCollateFactory>Iterates on all factories and append all collate names.getCommand(String candidate) static Iterator<OCommandExecutorSQLFactory>Iterates on all factories and append all command names.getFunction(String iFunctionName) static Iterator<OSQLFunctionFactory>Iterates on all factories and append all function names.static OSQLEnginestatic OSQLMethodstatic Iterator<OSQLMethodFactory>static Iterator<OQueryOperatorFactory>static OStatementparse(String query, ODatabaseDocumentInternal db) parseCondition(String iText, OCommandContext iContext, String iFilterKeyword) static OOrBlockparsePredicate(String predicate) parseRIDTarget(ODatabaseDocument database, String iTarget, OCommandContext iContext, Map<Object, Object> iArgs) static List<OStatement>parseScript(InputStream script, ODatabaseDocumentInternal db) static List<OStatement>parseScript(String script, ODatabaseDocumentInternal db) static OSecurityResourceSegmentstatic OServerStatementparseServerStatement(String query, OrientDBInternal db) parseTarget(String iText, OCommandContext iContext) voidregisterFunction(String iName, OSQLFunction iFunction) voidregisterFunction(String iName, Class<? extends OSQLFunction> iFunctionClass) static voidregisterOperator(OQueryOperator iOperator) static voidScans for factory plug-ins on the application class path.voidunregisterFunction(String iName)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
OSQLEngine
protected OSQLEngine()
-
-
Method Details
-
parse
-
parseServerStatement
-
parseScript
-
parseScript
-
parsePredicate
- Throws:
OCommandSQLParsingException
-
parseSecurityResource
-
registerOperator
-
getFunctionFactories
- Returns:
- Iterator of all function factories
-
getMethodFactories
-
getCollateFactories
- Returns:
- Iterator of all function factories
-
getOperatorFactories
- Returns:
- Iterator of all operator factories
-
getCommandFactories
- Returns:
- Iterator of all command factories
-
getFunctionNames
Iterates on all factories and append all function names.- Returns:
- Set of all function names.
-
getMethodNames
-
getCollateNames
Iterates on all factories and append all collate names.- Returns:
- Set of all colate names.
-
getCommandNames
Iterates on all factories and append all command names.- Returns:
- Set of all command names.
-
scanForPlugins
public static void scanForPlugins()Scans for factory plug-ins on the application class path. This method is needed because the application class path can theoretically change, or additional plug-ins may become available. Rather than re-scanning the classpath on every invocation of the API, the class path is scanned automatically only on the first invocation. Clients can call this method to prompt a re-scan. Thus this method need only be invoked by sophisticated applications which dynamically make new plug-ins available at runtime. -
foreachRecord
public static Object foreachRecord(OCallable<Object, OIdentifiable> iCallable, Object iCurrent, OCommandContext iContext) -
getInstance
-
getCollate
-
getMethod
-
getRecordOperators
-
registerFunction
-
registerFunction
-
getFunction
-
unregisterFunction
-
getCommand
-
parseCondition
-
parseTarget
-
parseRIDTarget
public Set<OIdentifiable> parseRIDTarget(ODatabaseDocument database, String iTarget, OCommandContext iContext, Map<Object, Object> iArgs)
-