|
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.sql.SQLStatement
Base abstraction of any SQL statement.
| Field Summary | |
(package private) DBDictionary |
_dict
|
(package private) ClassResolver |
_resolver
|
(package private) SortedSet |
_tables
|
| 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. |
(package private) String |
columnName(Column col)
Returns the name of the column, taking into account the return value of the retainTableInWhere() method. |
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. |
(package private) int |
getWhereSize()
|
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. |
(package private) SQLBuffer |
popWhere()
|
(package private) void |
pushWhere(SQLBuffer buffer)
|
(package private) abstract boolean |
retainTableInWhere()
If true, when columns are mentioned in the WHERE clause, they will be in the form table.column. |
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. |
(package private) SQLStatement |
whereInternal(String table,
Column column,
Object value)
|
(package private) SQLStatement |
whereInternal(String table,
String alias,
Column column,
Object value)
Internal filter for all where methods; the given value
should already be passed through the DBDictionary unless it
is null. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
SortedSet _tables
final DBDictionary _dict
final ClassResolver _resolver
| 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)
String columnName(Column col)
retainTableInWhere() method.
SQLStatement whereInternal(String table,
String alias,
Column column,
Object value)
where methods; the given value
should already be passed through the DBDictionary unless it
is null.
SQLStatement whereInternal(String table,
Column column,
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()
SQLBuffer popWhere()
void pushWhere(SQLBuffer buffer)
int getWhereSize()
abstract boolean retainTableInWhere()
table.column.public abstract SQLBuffer getSQLBuffer()
|
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 | ||||||||