Class SQLAggregate

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

public class SQLAggregate extends Object implements SQLAggregateIF
INTERNAL: Represents an aggregate function in a SQL query.
  • Field Details

    • type

      protected int type
    • value

      protected SQLValueIF value
    • alias

      protected String alias
  • Constructor Details

    • SQLAggregate

      public SQLAggregate(SQLValueIF value, int type)
  • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object