Class SQLMethodLeft
- java.lang.Object
-
- com.arcadedb.query.sql.method.misc.AbstractSQLMethod
-
- com.arcadedb.query.sql.method.misc.SQLMethodLeft
-
- All Implemented Interfaces:
SQLMethod,Comparable<SQLMethod>
public class SQLMethodLeft extends AbstractSQLMethod
Returns the first characters from the beginning of the string.- Author:
- Johann Sorel (Geomatys), Luca Garulli (l.garulli--(at)--gmail.com)
-
-
Constructor Summary
Constructors Constructor Description SQLMethodLeft()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectexecute(Object iThis, Identifiable iCurrentRecord, CommandContext iContext, Object ioResult, Object[] iParams)Process a record.StringgetSyntax()Returns a convenient SQL String representation of the method.-
Methods inherited from class com.arcadedb.query.sql.method.misc.AbstractSQLMethod
compareTo, evaluateParameters, getMaxParams, getMinParams, 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:SQLMethodReturns a convenient SQL String representation of the method.Example :
field.myMethod( param1, param2, [optionalParam3])
This text will be used in exception messages.
- Specified by:
getSyntaxin interfaceSQLMethod- Overrides:
getSyntaxin classAbstractSQLMethod- Returns:
- String , never null.
-
execute
public Object execute(Object iThis, Identifiable iCurrentRecord, CommandContext iContext, Object ioResult, Object[] iParams)
Description copied from interface:SQLMethodProcess a record.- Parameters:
iThis- current objectiCurrentRecord- : current recordiContext- execution contextioResult- : field valueiParams- : function parameters, number is ensured to be within minParams and maxParams.- Returns:
- evaluation result
-
-