Class SqlMetaLogOperator

java.lang.Object
org.sqlproc.engine.impl.SqlMetaLogOperator
All Implemented Interfaces:
SqlMetaLogOperand

class SqlMetaLogOperator extends Object implements SqlMetaLogOperand
A META SQL sub-element. It represents a logical operator in SqlMetaLogExpr.
Author:
Vladimir Hudec
  • Field Details

  • Constructor Details

    • SqlMetaLogOperator

      SqlMetaLogOperator(SqlMetaLogOperator.Type type)
      Creates a new instance. It's used from inside ANTLR parser.
      Parameters:
      type - the type of the logical operator
  • Method Details

    • getType

      Returns the type of the logical operator.
      Returns:
      the type of the logical operator
    • processExpression

      public boolean processExpression(SqlProcessContext ctx)
      The main contract to evaluate a logical value of META SQL sub-elements.
      Specified by:
      processExpression in interface SqlMetaLogOperand
      Parameters:
      ctx - the context for a dynamic ANSI SQL Query generation
      Returns:
      a logical value