public class SQLAggregate extends Object implements SQLAggregateIF
| Modifier and Type | Field and Description |
|---|---|
protected String |
alias |
protected int |
type |
protected SQLValueIF |
value |
COUNT| Constructor and Description |
|---|
SQLAggregate(SQLValueIF value,
int type) |
| Modifier and Type | Method and Description |
|---|---|
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(String alias)
INTERNAL: Sets the column alias.
|
void |
setValue(SQLValueIF value)
INTERNAL: Sets the SQLValueIF that the aggregate function is
to be evaluated against.
|
String |
toString() |
protected int type
protected SQLValueIF value
protected String alias
public SQLAggregate(SQLValueIF value, int type)
public int getType()
SQLAggregateIFSQLAggregateIF interface.getType in interface SQLAggregateIFpublic SQLValueIF getValue()
SQLAggregateIFgetValue in interface SQLAggregateIFpublic void setValue(SQLValueIF value)
SQLAggregateIFsetValue in interface SQLAggregateIFpublic String getAlias()
SQLAggregateIFgetAlias in interface SQLAggregateIFpublic void setAlias(String alias)
SQLAggregateIFsetAlias in interface SQLAggregateIFpublic boolean isReference()
SQLAggregateIFisReference in interface SQLAggregateIFpublic SQLAggregateIF getReference()
SQLAggregateIFgetReference in interface SQLAggregateIF