Class OSQLMethodFunctionDelegate
java.lang.Object
com.orientechnologies.orient.core.sql.method.misc.OAbstractSQLMethod
com.orientechnologies.orient.core.sql.method.misc.OSQLMethodFunctionDelegate
- All Implemented Interfaces:
OSQLMethod,Comparable<OSQLMethod>
Delegates the execution to a function.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(Object iThis, OIdentifiable iCurrentRecord, OCommandContext iContext, Object ioResult, Object[] iParams) Process a record.intinttoString()Methods inherited from class com.orientechnologies.orient.core.sql.method.misc.OAbstractSQLMethod
compareTo, evaluateParameters, getName, getParameterValue, getSyntax
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
OSQLMethodFunctionDelegate
-
-
Method Details
-
getMinParams
public int getMinParams()- Specified by:
getMinParamsin interfaceOSQLMethod- Overrides:
getMinParamsin classOAbstractSQLMethod- Returns:
- minimum number of arguments requiered by this method
-
getMaxParams
public int getMaxParams()- Specified by:
getMaxParamsin interfaceOSQLMethod- Overrides:
getMaxParamsin classOAbstractSQLMethod- Returns:
- maximum number of arguments requiered by this method
-
execute
public Object execute(Object iThis, OIdentifiable iCurrentRecord, OCommandContext iContext, Object ioResult, Object[] iParams) Description copied from interface:OSQLMethodProcess a record.- Parameters:
iThis-iCurrentRecord- : current recordiContext- execution contextioResult- : field valueiParams- : function parameters, number is ensured to be within minParams and maxParams.- Returns:
- evaluation result
-
toString
- Overrides:
toStringin classOAbstractSQLMethod
-