Class OSQLMethodLeft

java.lang.Object
com.orientechnologies.orient.core.sql.method.misc.OAbstractSQLMethod
com.orientechnologies.orient.core.sql.method.OSQLMethodLeft
All Implemented Interfaces:
OSQLMethod, Comparable<OSQLMethod>

public class OSQLMethodLeft extends OAbstractSQLMethod
Returns the first characters from the beginning of the string.
Author:
Johann Sorel (Geomatys), Luca Garulli (l.garulli--(at)--orientdb.com)
  • Field Details

  • Constructor Details

    • OSQLMethodLeft

      public OSQLMethodLeft()
  • Method Details

    • getSyntax

      public String getSyntax()
      Description copied from interface: OSQLMethod
      Returns a convinient SQL String representation of the method.

      Example :

        field.myMethod( param1, param2, [optionalParam3])
       
      This text will be used in exception messages.
      Specified by:
      getSyntax in interface OSQLMethod
      Overrides:
      getSyntax in class OAbstractSQLMethod
      Returns:
      String , never null.
    • execute

      public Object execute(Object iThis, OIdentifiable iCurrentRecord, OCommandContext iContext, Object ioResult, Object[] iParams)
      Description copied from interface: OSQLMethod
      Process a record.
      iCurrentRecord - : current record
      iContext - execution context
      ioResult - : field value
      iParams - : function parameters, number is ensured to be within minParams and maxParams.
      Returns:
      evaluation result