Class SQLMethodReplace
- java.lang.Object
-
- com.arcadedb.query.sql.method.AbstractSQLMethod
-
- com.arcadedb.query.sql.method.string.SQLMethodReplace
-
- All Implemented Interfaces:
SQLMethod
,Comparable<SQLMethod>
public class SQLMethodReplace extends AbstractSQLMethod
Replaces all the occurrences.- Author:
- Johann Sorel (Geomatys), Luca Garulli (l.garulli--(at)--gmail.com)
-
-
Constructor Summary
Constructors Constructor Description SQLMethodReplace()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
execute(Object value, Identifiable iCurrentRecord, CommandContext iContext, Object[] iParams)
Process a record.String
getSyntax()
Returns a convenient SQL String representation of the method.-
Methods inherited from class com.arcadedb.query.sql.method.AbstractSQLMethod
compareTo, evaluateParameters, getName, getParameterValue, toString
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSyntax
public String getSyntax()
Description copied from interface:SQLMethod
Returns a convenient SQL String representation of the method.Example :
field.myMethod( param1, param2, [optionalParam3])
This text will be used in exception messages.
- Specified by:
getSyntax
in interfaceSQLMethod
- Overrides:
getSyntax
in classAbstractSQLMethod
- Returns:
- String , never null.
-
execute
public Object execute(Object value, Identifiable iCurrentRecord, CommandContext iContext, Object[] iParams)
Description copied from interface:SQLMethod
Process a record.- Parameters:
value
- current objectiCurrentRecord
- : current recordiContext
- execution contextiParams
- : function parameters, number is ensured to be within minParams and maxParams.- Returns:
- evaluation result
-
-