Class OSQLEngine
java.lang.Object
com.orientechnologies.orient.core.sql.OSQLEngine
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Objecteval(String expression, Object target, OCommandContext ctx) static 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.getFunction(String iFunctionName) static Iterator<OSQLFunctionFactory>getFunctionIfExists(String iFunctionName) Iterates on all factories and append all function names.static OSQLEnginestatic OSQLMethodstatic Iterator<OSQLMethodFactory>static Iterator<OQueryOperatorFactory>maybeParsePredicate(String predicate) static OStatementparse(String query, ODatabaseDocumentInternal db) static OExpressionparseExpression(String predicate) static OOrBlockparsePredicate(String predicate) static List<OStatement>parseScript(InputStream script, ODatabaseDocumentInternal db) static List<OStatement>parseScript(String script, ODatabaseDocumentInternal db) static OSecurityResourceSegmentstatic OServerStatementparseServerStatement(String query, OrientDBInternal db) voidregisterFunction(String iName, OSQLFunction iFunction) voidregisterFunction(String iName, Class<? extends OSQLFunction> iFunctionClass) 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
-
maybeParsePredicate
public static Optional<OOrBlock> maybeParsePredicate(String predicate) throws OCommandSQLParsingException - Throws:
OCommandSQLParsingException
-
eval
-
parseExpression
- Throws:
OCommandSQLParsingException
-
parseSecurityResource
-
getFunctionFactories
- Returns:
- Iterator of all function factories
-
getMethodFactories
-
getCollateFactories
- Returns:
- Iterator of all function factories
-
getOperatorFactories
- Returns:
- Iterator of all operator 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.
-
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
-
registerFunction
-
registerFunction
-
getFunction
-
getFunctionIfExists
-
unregisterFunction
-