|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.persistence.query.sql.SQLAggregate
public class SQLAggregate
INTERNAL: Represents an aggregate function in a SQL query.
| Field Summary | |
|---|---|
protected java.lang.String |
alias
|
protected int |
type
|
protected SQLValueIF |
value
|
| Fields inherited from interface net.ontopia.persistence.query.sql.SQLAggregateIF |
|---|
COUNT |
| Constructor Summary | |
|---|---|
SQLAggregate(SQLValueIF value,
int type)
|
|
| 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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int type
protected SQLValueIF value
protected java.lang.String alias
| Constructor Detail |
|---|
public SQLAggregate(SQLValueIF value,
int type)
| Method Detail |
|---|
public int getType()
SQLAggregateIFSQLAggregateIF interface.
getType in interface SQLAggregateIFpublic SQLValueIF getValue()
SQLAggregateIF
getValue in interface SQLAggregateIFpublic void setValue(SQLValueIF value)
SQLAggregateIF
setValue in interface SQLAggregateIFpublic java.lang.String getAlias()
SQLAggregateIF
getAlias in interface SQLAggregateIFpublic void setAlias(java.lang.String alias)
SQLAggregateIF
setAlias in interface SQLAggregateIFpublic boolean isReference()
SQLAggregateIF
isReference in interface SQLAggregateIFpublic SQLAggregateIF getReference()
SQLAggregateIF
getReference in interface SQLAggregateIFpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||