|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gibello.zql.ZAliasedName
org.gibello.zql.ZSelectItem
public class ZSelectItem
ZSelectItem: an item in the SELECT part of an SQL query. (The SELECT part of a query is a Vector of ZSelectItem).
| Field Summary |
|---|
| Fields inherited from class org.gibello.zql.ZAliasedName |
|---|
FORM_COLUMN, FORM_TABLE |
| Constructor Summary | |
|---|---|
ZSelectItem()
Create a new SELECT item |
|
ZSelectItem(java.lang.String fullname)
Create a new SELECT item, given its name (for column names and wildcards). |
|
| Method Summary | |
|---|---|
java.lang.String |
getAggregate()
If this item is an aggregate function, return the function name. |
ZExp |
getExpression()
|
boolean |
isExpression()
|
void |
setAggregate(java.lang.String a)
Initialize an aggregate function on this item (generally SUM, AVG, MAX, MIN) Example: SELECT AVG(age) FROM people; -> The aggregate function is AVG. |
void |
setExpression(ZExp e)
Initialize this SELECT item as an SQL expression (not a column name nor wildcard) Example: SELECT a+b FROM table1; (a+b is an expression) |
| Methods inherited from class org.gibello.zql.ZAliasedName |
|---|
getAlias, getColumn, getSchema, getTable, isWildcard, setAlias, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ZSelectItem()
public ZSelectItem(java.lang.String fullname)
fullname - A string that represents a column name or wildcard
(example: a.*).| Method Detail |
|---|
public ZExp getExpression()
public void setExpression(ZExp e)
public boolean isExpression()
public void setAggregate(java.lang.String a)
a - The name of the aggregate function
(a String, like SUM, AVG, MAX, MIN)public java.lang.String getAggregate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||