net.ontopia.persistence.query.sql
Class SQLAggregateReference

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

public class SQLAggregateReference
extends java.lang.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 Summary
protected  java.lang.String alias
           
protected  SQLAggregateIF refagg
           
 
Fields inherited from interface net.ontopia.persistence.query.sql.SQLAggregateIF
COUNT
 
Constructor Summary
SQLAggregateReference(SQLAggregateIF refagg)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 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.
 int hashCode()
           
 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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

alias

protected java.lang.String alias

refagg

protected SQLAggregateIF refagg
Constructor Detail

SQLAggregateReference

public SQLAggregateReference(SQLAggregateIF refagg)
Method Detail

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 java.lang.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(java.lang.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 java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2000-2012 Ontopia.