Class SQLVerbatimExpression

java.lang.Object
net.ontopia.persistence.query.sql.SQLVerbatimExpression
All Implemented Interfaces:
SQLExpressionIF

public class SQLVerbatimExpression extends Object implements SQLExpressionIF
INTERNAL: Represents a verbatim SQL expression.
  • Field Details

    • DEFAULT_VALUE_TYPE

      protected static final Class DEFAULT_VALUE_TYPE
    • DEFAULT_FIELD_HANDLER

      protected static final FieldHandlerIF DEFAULT_FIELD_HANDLER
    • value

      protected Object value
    • alias

      protected String alias
    • tables

      protected SQLTable[] tables
    • vtype

      protected Class vtype
    • fhandler

      protected FieldHandlerIF fhandler
  • Constructor Details

    • SQLVerbatimExpression

      public SQLVerbatimExpression(Object value)
    • SQLVerbatimExpression

      public SQLVerbatimExpression(Object value, SQLTable[] tables)
  • Method Details

    • getType

      public int getType()
      Description copied from interface: SQLExpressionIF
      INTERNAL: Returns the expression type. The type is represented by one of the constants in the SQLExpressionIF interface.
      Specified by:
      getType in interface SQLExpressionIF
    • getValue

      public Object getValue()
    • getTables

      public SQLTable[] getTables()
      INTERNAL: Returns the tables that are involved in the verbatim expression. This information is neccessary so that the FROM clause can be correctly generated.
    • setTables

      public void setTables(SQLTable[] tables)
    • toString

      public String toString()
      Overrides:
      toString in class Object