|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.solarmetric.kodo.impl.jdbc.query.QuerySelect
Abstraction of a SQL SELECT statement.
| Constructor Summary | |
(package private) |
QuerySelect(DBDictionary dict,
int syntax)
Protected constructor. |
| Method Summary | |
void |
addJoins(QuerySQLBuffer buf,
Joins joins)
Add SQL for the given joins to the given buffer. |
Joins |
and(Joins joins1,
Joins joins2)
AND the given joins together. |
DBDictionary |
getDictionary()
Return the dictionary being used by this select. |
boolean |
isUpdate()
Return true if this is a SELECT FOR UPDATE. |
QuerySelect |
joinsClone()
Return a SELECT with the same aliases and joins as this one. |
Joins |
newJoins()
Return a new instance to use for joining. |
Joins |
or(Joins joins1,
Joins joins2)
OR the given joins together. |
void |
orderBy(Column col,
boolean ascending)
Add an ORDER BY clause. |
void |
orderBy(Column col,
boolean ascending,
Joins joins)
Add an ORDER BY clause. |
Joins |
orderBy(Joins joins1,
Joins joins2)
Combine the given joins. |
void |
orderBy(QuerySQLBuffer sql,
boolean ascending)
Add an ORDER BY clause. |
void |
orderBy(QuerySQLBuffer sql,
boolean ascending,
Joins joins)
Add an ORDER BY clause. |
void |
select(Column col)
Select the given column. |
void |
select(Column[] cols)
Select the given columns. |
void |
select(Column[] cols,
Joins joins)
Select the given columns after making the given joins. |
void |
select(Column col,
Joins joins)
Select the given column after making the given joins. |
void |
setUpdate(boolean update)
Set whether this is a SELECT FOR UPDATE. |
SQLBuffer |
toSelect()
Return this select as a SQL statement formatted for the given dictionary. |
void |
where(Joins joins)
Add the given where conditions. |
void |
where(QuerySQLBuffer sql)
Add the given where conditions. |
void |
where(QuerySQLBuffer sql,
Joins joins)
Add the given where conditions. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
QuerySelect(DBDictionary dict,
int syntax)
dict - the database dictionary in usesyntax - the JDBCQuery constant for the SQL syntax
to use| Method Detail |
public DBDictionary getDictionary()
public SQLBuffer toSelect()
public boolean isUpdate()
public void setUpdate(boolean update)
public void select(Column col)
public void select(Column col,
Joins joins)
public void select(Column[] cols)
public void select(Column[] cols,
Joins joins)
public void where(Joins joins)
public void where(QuerySQLBuffer sql)
public void where(QuerySQLBuffer sql,
Joins joins)
public void orderBy(QuerySQLBuffer sql,
boolean ascending)
public void orderBy(QuerySQLBuffer sql,
boolean ascending,
Joins joins)
public void orderBy(Column col,
boolean ascending)
public void orderBy(Column col,
boolean ascending,
Joins joins)
public QuerySelect joinsClone()
public Joins newJoins()
public void addJoins(QuerySQLBuffer buf,
Joins joins)
public Joins and(Joins joins1,
Joins joins2)
public Joins or(Joins joins1,
Joins joins2)
public Joins orderBy(Joins joins1,
Joins joins2)
joins1 - joins from the main expressionjoins2 - joins from the ordering value
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||