Class OSQLEnterpriseFunction

java.lang.Object
com.orientechnologies.orient.core.sql.functions.OSQLFunctionAbstract
com.orientechnologies.agent.functions.OSQLEnterpriseFunction
All Implemented Interfaces:
OSQLFunction
Direct Known Subclasses:
KillQueryFunction, KillSessionFunction, ListQueriesFunction, ListSessionsFunction

public abstract class OSQLEnterpriseFunction extends OSQLFunctionAbstract
Created by Enrico Risa on 03/08/2018.
  • Constructor Details

    • OSQLEnterpriseFunction

      public OSQLEnterpriseFunction(String iName, int iMinParams, int iMaxParams)
  • Method Details

    • execute

      public Object execute(Object iThis, OIdentifiable iCurrentRecord, Object iCurrentResult, Object[] iParams, OCommandContext iContext)
      Description copied from interface: OSQLFunction
      Process a record.
      iCurrentRecord - : current record
      iCurrentResult - TODO
      iParams - : 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
    • sameDatabase

      protected boolean sameDatabase(OClientConnection connection, OCommandContext iContext)
    • exec

      public abstract Object exec(Object iThis, OIdentifiable iCurrentRecord, Object iCurrentResult, Object[] iParams, OCommandContext iContext)
    • genericPermission

      public abstract ORule.ResourceGeneric genericPermission()
    • specificPermission

      public abstract String specificPermission()