Class OSQLFunctionFactoryTemplate
java.lang.Object
com.orientechnologies.orient.core.sql.functions.OSQLFunctionFactoryTemplate
- All Implemented Interfaces:
OSQLFunctionFactory
- Direct Known Subclasses:
ODefaultSQLFunctionFactory,OGraphFunctionFactory,OLuceneFunctionsFactory,OSpatialFunctionsFactory
Created by frank on 25/05/2017.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFunction(String name) Create function for the given name.booleanhasFunction(String name) protected voidregister(OSQLFunction function) protected void
-
Constructor Details
-
OSQLFunctionFactoryTemplate
public OSQLFunctionFactoryTemplate()
-
-
Method Details
-
register
-
register
-
hasFunction
- Specified by:
hasFunctionin interfaceOSQLFunctionFactory
-
getFunctionNames
- Specified by:
getFunctionNamesin interfaceOSQLFunctionFactory- Returns:
- Set of supported function names of this factory
-
createFunction
Description copied from interface:OSQLFunctionFactoryCreate function for the given name. returned function may be a new instance each time or a constant.- Specified by:
createFunctionin interfaceOSQLFunctionFactory- Parameters:
name-- Returns:
- OSQLFunction : created function
- Throws:
OCommandExecutionException- : when function creation fail
-
getFunctions
-