Class SQLColumns

  • All Implemented Interfaces:
    SQLValueIF

    public class SQLColumns
    extends Object
    implements SQLValueIF
    INTERNAL: Represents a set of columns from a given table. The columns are grouped for a reason. Columns are often used as join criteria.
    • Field Detail

      • DEFAULT_VALUE_TYPE

        protected static final Class DEFAULT_VALUE_TYPE
      • DEFAULT_FIELD_HANDLER

        protected static final FieldHandlerIF DEFAULT_FIELD_HANDLER
      • cols

        protected String[] cols
      • alias

        protected String alias
      • vtype

        protected Class vtype
    • Method Detail

      • getType

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

        public int getArity()
        Description copied from interface: SQLValueIF
        INTERNAL: Returns the [column] arity of the value. The number represents the number of "columns" the value spans, i.e. its composite width.
        Specified by:
        getArity in interface SQLValueIF
      • getValueArity

        public int getValueArity()
        Description copied from interface: SQLValueIF
        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.
        Specified by:
        getValueArity in interface SQLValueIF
      • getAlias

        public String getAlias()
        Description copied from interface: SQLValueIF
        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".
        Specified by:
        getAlias in interface SQLValueIF
      • setAlias

        public void setAlias​(String alias)
        Description copied from interface: SQLValueIF
        INTERNAL: Sets the column alias.
        Specified by:
        setAlias in interface SQLValueIF
      • isReference

        public boolean isReference()
        Description copied from interface: SQLValueIF
        INTERNAL: Returns true if this value is a reference to another.
        Specified by:
        isReference in interface SQLValueIF
      • getColumns

        public String[] getColumns()
      • setValueType

        public void setValueType​(Class vtype)
        Description copied from interface: SQLValueIF
        INTERNAL: Sets the value type.
        Specified by:
        setValueType in interface SQLValueIF
      • getFieldHandler

        public FieldHandlerIF getFieldHandler()
        INTERNAL: Returns the field handler for the columns. Default field handler is DefaultFieldHandler with type java.sql.Types.VARCHAR when not specified.
        Specified by:
        getFieldHandler in interface SQLValueIF
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object