Package org.h2.mode

Class FunctionsOracle

All Implemented Interfaces:
ExpressionWithVariableParameters, NamedExpression, HasSQL, Typed

public final class FunctionsOracle extends ModeFunction
Functions for Mode.ModeEnum.Oracle compatibility mode.
  • Field Details

  • Constructor Details

    • FunctionsOracle

      private FunctionsOracle(FunctionInfo info)
  • Method Details

    • getFunction

      public static FunctionsOracle getFunction(String upperName)
      Returns mode-specific function for a given name, or null.
      Parameters:
      upperName - the upper-case name of a function
      Returns:
      the function with specified name or null
    • checkParameterCount

      protected void checkParameterCount(int len)
      Description copied from class: ModeFunction
      Check if the parameter count is correct.
      Overrides:
      checkParameterCount in class ModeFunction
      Parameters:
      len - the number of parameters set
    • optimize

      public Expression optimize(SessionLocal session)
      Description copied from class: Expression
      Try to optimize the expression.
      Specified by:
      optimize in class Expression
      Parameters:
      session - the session
      Returns:
      the optimized expression
    • getValue

      public Value getValue(SessionLocal session)
      Description copied from class: Expression
      Return the resulting value for the current row.
      Overrides:
      getValue in class FunctionN
      Parameters:
      session - the session
      Returns:
      the result