Package com.arcadedb.query.sql.function
Class SQLFunctionConfigurableAbstract
- java.lang.Object
-
- com.arcadedb.query.sql.function.SQLFunctionAbstract
-
- com.arcadedb.query.sql.function.SQLFunctionConfigurableAbstract
-
- All Implemented Interfaces:
SQLFunction
- Direct Known Subclasses:
SQLFunctionBoolAnd
,SQLFunctionBoolOr
,SQLFunctionConcat
,SQLFunctionFirst
,SQLFunctionLast
,SQLFunctionMathAbstract
,SQLFunctionMove
,SQLFunctionMultiValueAbstract
public abstract class SQLFunctionConfigurableAbstract extends SQLFunctionAbstract
Abstract class to extend to build Custom SQL Functions that saves the configured parameters. Extend it and register it with: OSQLParser.getInstance().registerStatelessFunction() or OSQLParser.getInstance().registerStatefullFunction() to being used by the SQL engine.- Author:
- Luca Garulli (l.garulli--(at)--gmail.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected Object[]
configuredParameters
-
Fields inherited from class com.arcadedb.query.sql.function.SQLFunctionAbstract
name
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SQLFunctionConfigurableAbstract(String iName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SQLFunction
config(Object[] iConfiguredParameters)
Configure the function.String
toString()
-
Methods inherited from class com.arcadedb.query.sql.function.SQLFunctionAbstract
aggregateResults, getName, getResult
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.arcadedb.query.sql.executor.SQLFunction
execute, getSyntax
-
-
-
-
Field Detail
-
configuredParameters
protected Object[] configuredParameters
-
-
Constructor Detail
-
SQLFunctionConfigurableAbstract
protected SQLFunctionConfigurableAbstract(String iName)
-
-
Method Detail
-
config
public SQLFunction config(Object[] iConfiguredParameters)
Description copied from interface:SQLFunction
Configure the function.- Specified by:
config
in interfaceSQLFunction
- Overrides:
config
in classSQLFunctionAbstract
-
toString
public String toString()
- Overrides:
toString
in classSQLFunctionAbstract
-
-