net.ontopia.persistence.query.sql
Interface SQLAggregateIF

All Known Implementing Classes:
SQLAggregate, SQLAggregateReference

public interface SQLAggregateIF

INTERNAL: Represents an aggregate function in a SQL query.


Field Summary
static int COUNT
          INTERNAL: Constant referring to the COUNT aggregate function.
 
Method Summary
 java.lang.String getAlias()
          INTERNAL: The column alias to use if this value is included in the projection.
 SQLAggregateIF getReference()
          INTERNAL: Returns the referenced aggregate if one exists.
 int getType()
          INTERNAL: Returns the aggregate function type indicated by one of the constants in the SQLAggregateIF interface.
 SQLValueIF getValue()
          INTERNAL: Returns the SQLValueIF that the aggregate function is to be evaluated against.
 boolean isReference()
          INTERNAL: Returns true if this aggregate is a reference to another.
 void setAlias(java.lang.String alias)
          INTERNAL: Sets the column alias.
 void setValue(SQLValueIF value)
          INTERNAL: Sets the SQLValueIF that the aggregate function is to be evaluated against.
 

Field Detail

COUNT

static final int COUNT
INTERNAL: Constant referring to the COUNT aggregate function.

See Also:
Constant Field Values
Method Detail

getType

int getType()
INTERNAL: Returns the aggregate function type indicated by one of the constants in the SQLAggregateIF interface.


getValue

SQLValueIF getValue()
INTERNAL: Returns the SQLValueIF that the aggregate function is to be evaluated against.


setValue

void setValue(SQLValueIF value)
INTERNAL: Sets the SQLValueIF that the aggregate function is to be evaluated against.


getAlias

java.lang.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(java.lang.String alias)
INTERNAL: Sets the column alias.


isReference

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


getReference

SQLAggregateIF getReference()
INTERNAL: Returns the referenced aggregate if one exists.



Copyright © 2000-2012 Ontopia.