Class OAbstractSQLMethod

java.lang.Object
com.orientechnologies.orient.core.sql.method.misc.OAbstractSQLMethod
All Implemented Interfaces:
OSQLMethod, Comparable<OSQLMethod>
Direct Known Subclasses:
OSQLMethodAppend, OSQLMethodAsBoolean, OSQLMethodAsDate, OSQLMethodAsDateTime, OSQLMethodAsDecimal, OSQLMethodAsFloat, OSQLMethodAsInteger, OSQLMethodAsList, OSQLMethodAsLong, OSQLMethodAsMap, OSQLMethodAsSet, OSQLMethodAsString, OSQLMethodBeforeUpdate, OSQLMethodCharAt, OSQLMethodConvert, OSQLMethodCurrent, OSQLMethodExclude, OSQLMethodField, OSQLMethodFormat, OSQLMethodFromJSON, OSQLMethodFunctionDelegate, OSQLMethodHash, OSQLMethodInclude, OSQLMethodIndexOf, OSQLMethodJavaType, OSQLMethodKeys, OSQLMethodLastIndexOf, OSQLMethodLeft, OSQLMethodLength, OSQLMethodMultiValue, OSQLMethodNext, OSQLMethodNormalize, OSQLMethodPrefix, OSQLMethodRemove, OSQLMethodRemoveAll, OSQLMethodReplace, OSQLMethodReset, OSQLMethodRight, OSQLMethodSize, OSQLMethodSplit, OSQLMethodSubString, OSQLMethodToJSON, OSQLMethodToLowerCase, OSQLMethodToUpperCase, OSQLMethodTrim, OSQLMethodType, OSQLMethodValues

public abstract class OAbstractSQLMethod extends Object implements OSQLMethod
Author:
Johann Sorel (Geomatys)
  • Constructor Details

    • OAbstractSQLMethod

      public OAbstractSQLMethod(String name)
    • OAbstractSQLMethod

      public OAbstractSQLMethod(String name, int nbparams)
    • OAbstractSQLMethod

      public OAbstractSQLMethod(String name, int minparams, int maxparams)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface OSQLMethod
      Returns:
      method name
    • 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
      Returns:
      String , never null.
    • getMinParams

      public int getMinParams()
      Specified by:
      getMinParams in interface OSQLMethod
      Returns:
      minimum number of arguments requiered by this method
    • getMaxParams

      public int getMaxParams()
      Specified by:
      getMaxParams in interface OSQLMethod
      Returns:
      maximum number of arguments requiered by this method
    • getParameterValue

      protected Object getParameterValue(OIdentifiable iRecord, String iValue)
    • compareTo

      public int compareTo(OSQLMethod o)
      Specified by:
      compareTo in interface Comparable<OSQLMethod>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • evaluateParameters

      public boolean evaluateParameters()
      Specified by:
      evaluateParameters in interface OSQLMethod