Class SQLAggregateReference

java.lang.Object
net.ontopia.persistence.query.sql.SQLAggregateReference
All Implemented Interfaces:
SQLAggregateIF

public class SQLAggregateReference extends Object implements SQLAggregateIF
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 Details

  • Constructor Details

    • SQLAggregateReference

      public SQLAggregateReference(SQLAggregateIF refagg)
  • Method Details

    • getType

      public int getType()
      Description copied from interface: SQLAggregateIF
      INTERNAL: Returns the aggregate function type indicated by one of the constants in the SQLAggregateIF interface.
      Specified by:
      getType in interface SQLAggregateIF
    • getValue

      public SQLValueIF getValue()
      Description copied from interface: SQLAggregateIF
      INTERNAL: Returns the SQLValueIF that the aggregate function is to be evaluated against.
      Specified by:
      getValue in interface SQLAggregateIF
    • setValue

      public void setValue(SQLValueIF value)
      Description copied from interface: SQLAggregateIF
      INTERNAL: Sets the SQLValueIF that the aggregate function is to be evaluated against.
      Specified by:
      setValue in interface SQLAggregateIF
    • getAlias

      public String getAlias()
      Description copied from interface: SQLAggregateIF
      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 SQLAggregateIF
    • setAlias

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

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

      public SQLAggregateIF getReference()
      Description copied from interface: SQLAggregateIF
      INTERNAL: Returns the referenced aggregate if one exists.
      Specified by:
      getReference in interface SQLAggregateIF
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object