|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--oql.Oql_Query
|
+--oql.Oql_CollectionExpr
|
+--oql.Oql_Aggregate
definisce le funzioni aggregate cioe`:
| Field Summary | |
Oql_Query |
query
rappresnta l'insieme di elementi |
boolean |
star
e` usato nella funzione COUNT ad indicare tutti gli oggetti che sono ststi restituiti dalla query. |
| Fields inherited from class oql.Oql_Query |
columnN,
level,
lineN,
parN,
selectQueryN |
| Constructor Summary | |
Oql_Aggregate()
crea un'istanza vuota in cui "query" e` inizializzata null. |
|
Oql_Aggregate(Oql_Query q,
java.lang.String t)
crea un'istanza assegnando la Query ed il tipo di operazione. |
|
Oql_Aggregate(Oql_Query q,
java.lang.String t,
int l,
int c,
int p)
crea un'istanza assegnando la Query ed il tipo di operazione. |
|
| Method Summary | |
java.lang.String |
getType()
ritorna il tipo di elemento OQL rappresentato dall'oggetto (fornisce cioe` il nome della classe) |
void |
setavg()
definisce il tipo di operatore come AVG |
void |
setCount()
definisce il tipo di operatore come COUNT |
void |
setMax()
definisce il tipo di operatore come MAX |
void |
setMin()
definisce il tipo di operatore come MIN |
void |
setSum()
definisce il tipo di operatore come SUM |
java.lang.String |
toString()
stampa in una stringa il contenuto della variabile |
| Methods inherited from class oql.Oql_Query |
addIterator,
addPar,
clona,
getAttrName,
getLink,
getRefName,
isBasic,
isDefault,
isNull,
translateQuery,
traslErr |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public Oql_Query query
public boolean star
| Constructor Detail |
public Oql_Aggregate()
public Oql_Aggregate(Oql_Query q,
java.lang.String t)
throws IllegalOperatorException
q - e` la query che rappresenta l'insieme di elementi su
cui applicare la funzione aggregatat - indica il tipo di funzione aggregata
public Oql_Aggregate(Oql_Query q,
java.lang.String t,
int l,
int c,
int p)
throws IllegalOperatorException
q - e` la query che rappresenta l'insieme di elementi su
cui applicare la funzione aggregatat - indica il tipo di funzione aggregatal - linea in cui compare l'elemento nella Queryc - colonna in cui compare l'elemento nella Queryp - numero di parentesi che racchiudono l'elemeto| Method Detail |
public void setCount()
public void setSum()
public void setMin()
public void setMax()
public void setavg()
public java.lang.String toString()
public java.lang.String getType()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||