Class SQLAggregate
java.lang.Object
net.ontopia.persistence.query.sql.SQLAggregate
- All Implemented Interfaces:
SQLAggregateIF
INTERNAL: Represents an aggregate function in a SQL query.
-
Field Summary
FieldsFields inherited from interface net.ontopia.persistence.query.sql.SQLAggregateIF
COUNT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()INTERNAL: The column alias to use if this value is included in the projection.INTERNAL: Returns the referenced aggregate if one exists.intgetType()INTERNAL: Returns the aggregate function type indicated by one of the constants in theSQLAggregateIFinterface.getValue()INTERNAL: Returns the SQLValueIF that the aggregate function is to be evaluated against.booleanINTERNAL: Returns true if this aggregate is a reference to another.voidINTERNAL: Sets the column alias.voidsetValue(SQLValueIF value) INTERNAL: Sets the SQLValueIF that the aggregate function is to be evaluated against.toString()
-
Field Details
-
type
protected int type -
value
-
alias
-
-
Constructor Details
-
SQLAggregate
-
-
Method Details
-
getType
public int getType()Description copied from interface:SQLAggregateIFINTERNAL: Returns the aggregate function type indicated by one of the constants in theSQLAggregateIFinterface.- Specified by:
getTypein interfaceSQLAggregateIF
-
getValue
Description copied from interface:SQLAggregateIFINTERNAL: Returns the SQLValueIF that the aggregate function is to be evaluated against.- Specified by:
getValuein interfaceSQLAggregateIF
-
setValue
Description copied from interface:SQLAggregateIFINTERNAL: Sets the SQLValueIF that the aggregate function is to be evaluated against.- Specified by:
setValuein interfaceSQLAggregateIF
-
getAlias
Description copied from interface:SQLAggregateIFINTERNAL: The column alias to use if this value is included in the projection. The SQL select syntax is typically like "select value asfrom foo". - Specified by:
getAliasin interfaceSQLAggregateIF
-
setAlias
Description copied from interface:SQLAggregateIFINTERNAL: Sets the column alias.- Specified by:
setAliasin interfaceSQLAggregateIF
-
isReference
public boolean isReference()Description copied from interface:SQLAggregateIFINTERNAL: Returns true if this aggregate is a reference to another.- Specified by:
isReferencein interfaceSQLAggregateIF
-
getReference
Description copied from interface:SQLAggregateIFINTERNAL: Returns the referenced aggregate if one exists.- Specified by:
getReferencein interfaceSQLAggregateIF
-
toString
-