All Implemented Interfaces:
OSQLFunction
Direct Known Subclasses:
OSQLFunctionBoth, OSQLFunctionBothE, OSQLFunctionBothV, OSQLFunctionInE, OSQLFunctionInV, OSQLFunctionMoveFiltered, OSQLFunctionOutE, OSQLFunctionOutV

public abstract class OSQLFunctionMove extends OSQLFunctionConfigurableAbstract
Created by luigidellaquila on 03/01/17.
  • Field Details

  • Constructor Details

    • OSQLFunctionMove

      public OSQLFunctionMove()
    • OSQLFunctionMove

      public OSQLFunctionMove(String iName, int iMin, int iMax)
  • Method Details

    • move

      protected abstract Object move(ODatabaseSession db, OResult iRecord, String[] iLabels)
    • getSyntax

      public String getSyntax()
      Description copied from interface: OSQLFunction
      Returns a convenient SQL String representation of the function.

      Example :

        myFunction( param1, param2, [optionalParam3])
       

      This text will be used in exception messages.

      Returns:
      String , never null.
    • execute

      public Object execute(Object iThis, OIdentifiable iCurrentRecord, Object iCurrentResult, Object[] iParameters, OCommandContext iContext)
      Description copied from interface: OSQLFunction
      Process a record.
      Parameters:
      iThis -
      iCurrentRecord - : current record
      iCurrentResult - TODO
      iParameters - : function parameters, number is ensured to be within minParams and maxParams.
      iContext - : object calling this function
      Returns:
      function result, can be null. Special cases : can be null if function aggregate results, can be null if function filter results : this mean result is excluded
    • v2v

      protected Object v2v(ODatabaseSession graph, OResult source, ODirection iDirection, String[] iLabels)
    • v2e

      protected Object v2e(ODatabaseSession graph, OResult OResult, ODirection iDirection, String[] iLabels)
    • e2v

      protected Object e2v(ODatabaseSession graph, OResult iRecord, ODirection iDirection, String[] iLabels)