Interface SQLValueIF

All Known Implementing Classes:
SQLColumns, SQLFunction, SQLNull, SQLParameter, SQLPrimitive, SQLTuple, SQLValueReference, SQLVerbatim

public interface SQLValueIF
INTERNAL: Represents a SQL value.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    INTERNAL: Constant referring to the SQLColumns class.
    static final int
    INTERNAL: Constant referring to the SQLFunction class.
    static final int
    INTERNAL: Constant referring to the SQLNull class.
    static final int
    INTERNAL: Constant referring to the SQLParameter class.
    static final int
    INTERNAL: Constant referring to the SQLPrimitive class.
    static final int
    INTERNAL: Constant referring to the SQLTuple class.
    static final int
    INTERNAL: Constant referring to the SQLVerbatim class.
  • Method Summary

    Modifier and Type
    Method
    Description
    INTERNAL: The column alias to use if this value is included in the projection.
    int
    INTERNAL: Returns the [column] arity of the value.
    INTERNAL: Returns the field handler for the columns.
    INTERNAL: Returns the referenced value if one exists.
    int
    INTERNAL: Returns the value class type.
    int
    INTERNAL: Returns the value arity of the value.
    INTERNAL: Returns the value type.
    boolean
    INTERNAL: Returns true if this value is a reference to another.
    void
    INTERNAL: Sets the column alias.
    void
    INTERNAL: Sets the field handler for the value.
    void
    INTERNAL: Sets the value type.
  • Field Details

  • Method Details

    • getType

      int getType()
      INTERNAL: Returns the value class type. The type is represented by one of the constants in the SQLValueIF interface.
    • getArity

      int getArity()
      INTERNAL: Returns the [column] arity of the value. The number represents the number of "columns" the value spans, i.e. its composite width.
    • getValueArity

      int getValueArity()
      INTERNAL: Returns the value arity of the value. This number refers to the number of nested values this value contains including itself. Most values therefore have a value arity of 1. Nested values may have an arity higher than 1. SQLTuple is currently the only nested value type.
    • getAlias

      String getAlias()
      INTERNAL: The column alias to use if this value is included in the projection. The SQL select syntax is typically like "select value as from foo".
    • setAlias

      void setAlias(String alias)
      INTERNAL: Sets the column alias.
    • isReference

      boolean isReference()
      INTERNAL: Returns true if this value is a reference to another.
    • getReference

      SQLValueIF getReference()
      INTERNAL: Returns the referenced value if one exists.
    • getValueType

      Class getValueType()
      INTERNAL: Returns the value type.
    • setValueType

      void setValueType(Class vtype)
      INTERNAL: Sets the value type.
    • getFieldHandler

      FieldHandlerIF getFieldHandler()
      INTERNAL: Returns the field handler for the columns.
    • setFieldHandler

      void setFieldHandler(FieldHandlerIF fhandler)
      INTERNAL: Sets the field handler for the value.