|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.kodo.impl.jdbc.sql.SQLStatement
Base abstraction of any SQL statement.
| Constructor Summary | |
|---|---|
SQLStatement(DBDictionary dict,
ClassResolver resolver)
|
|
SQLStatement(SQLStatement copy,
ClassResolver resolver)
|
|
| Method Summary | |
|---|---|
SQLStatement |
and(SQLStatement same)
AND the previous WHERE clause with the given one. |
void |
clear()
Clear the WHERE clause and table list so that this statement can be reused. |
void |
clearTable()
Clear the tables clause. |
void |
clearWhere()
Clear the WHERE clause. |
ClassResolver |
getClassResolver()
|
DBDictionary |
getDictionary()
Return the DBDictionary in use. |
abstract SQLBuffer |
getSQLBuffer()
Return the SQLBuffer to be used for exeucting the statement; |
String[] |
getTables()
Return a list of tables used in this statement |
SQLBuffer |
getWhere()
Return the WHERE portion of the SQL statement. |
boolean |
isValid()
Return true if at least one table has been set for this SQL statement. |
SQLStatement |
not()
NOT the previous WHERE clause. |
SQLStatement |
or(SQLStatement same)
OR the previous WHERE clause with the given one. |
String |
toString()
|
SQLStatement |
where(Column[] col,
Object[] value)
Set the criteria to inclde that the the given columns must equal the given values; this also adds the tables of the given columns to the tables clause of this statement. |
SQLStatement |
where(Column col,
boolean value)
See where(Column,Object). |
SQLStatement |
where(Column col,
char value)
See where(Column,Object). |
SQLStatement |
where(Column col,
double value)
See where(Column,Object). |
SQLStatement |
where(Column col,
float value)
See where(Column,Object). |
SQLStatement |
where(Column col,
int value)
See where(Column,Object). |
SQLStatement |
where(Column col,
long value)
See where(Column,Object). |
SQLStatement |
where(Column col,
Object value)
Set the criteria to inclde that the the given column must equal the given value; this also adds the table of the given column to the tables clause of this statement. |
SQLStatement |
where(Column col,
short value)
See where(Column,Object). |
SQLStatement |
where(SQLBuffer clause)
Set the given clause to the WHERE part of this statement. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SQLStatement(DBDictionary dict,
ClassResolver resolver)
public SQLStatement(SQLStatement copy,
ClassResolver resolver)
| Method Detail |
public DBDictionary getDictionary()
public ClassResolver getClassResolver()
public String[] getTables()
public void clearTable()
public SQLStatement where(SQLBuffer clause)
public SQLStatement where(Column col,
Object value)
public SQLStatement where(Column col,
boolean value)
where(Column,Object).
public SQLStatement where(Column col,
char value)
where(Column,Object).
public SQLStatement where(Column col,
double value)
where(Column,Object).
public SQLStatement where(Column col,
float value)
where(Column,Object).
public SQLStatement where(Column col,
int value)
where(Column,Object).
public SQLStatement where(Column col,
long value)
where(Column,Object).
public SQLStatement where(Column col,
short value)
where(Column,Object).
public SQLStatement where(Column[] col,
Object[] value)
public SQLBuffer getWhere()
public void clearWhere()
public SQLStatement and(SQLStatement same)
sql.where (foo).and (sql.where (bar));.public SQLStatement or(SQLStatement same)
sql.where (foo).or (sql.where (bar));.public SQLStatement not()
sql.where (foo).not ();.public final String toString()
toString in class Objectpublic boolean isValid()
public void clear()
public abstract SQLBuffer getSQLBuffer()
|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||