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()
SQLAggregateIF
SQLAggregateIF
interface.getType
in interface SQLAggregateIF
public SQLValueIF getValue()
SQLAggregateIF
getValue
in interface SQLAggregateIF
public void setValue(SQLValueIF value)
SQLAggregateIF
setValue
in interface SQLAggregateIF
public String getAlias()
SQLAggregateIF
getAlias
in interface SQLAggregateIF
public void setAlias(String alias)
SQLAggregateIF
setAlias
in interface SQLAggregateIF
public boolean isReference()
SQLAggregateIF
isReference
in interface SQLAggregateIF
public SQLAggregateIF getReference()
SQLAggregateIF
getReference
in interface SQLAggregateIF