|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ic.doc.automed.wrappers.AutoMedQuery
uk.ac.ic.doc.automed.wrappers.SQLQuery
public class SQLQuery
An SQLQuery expression tree that can be generated by
the high level wrapper SQLWrapper and used by a low level wrapper
as the basis for generating SQL queries on a relational database.
| Field Summary | |
|---|---|
static AutoMedQueryToken |
AND
SQL logical AND binary operator for use within WHERE expressions |
static AutoMedQueryToken |
EQUAL
SQL equality predicate for use within WHERE expressions |
static AutoMedQueryToken |
FIELD
|
static AutoMedQueryToken |
FIELD_ALIAS
Define an alias of a table. |
static AutoMedQueryToken |
FROM
The first field can contain a SQLQuery WHERE |
static AutoMedQueryToken |
GREATERTHAN
|
static AutoMedQueryToken |
GREATERTHANEQUAL
|
static AutoMedQueryToken |
LESSTHAN
|
static AutoMedQueryToken |
LESSTHANEQUAL
|
static AutoMedQueryToken |
NOT
|
static AutoMedQueryToken |
NOTEQUAL
|
static AutoMedQueryToken |
OR
SQL logical OR binary operator for use within WHERE expressions |
static AutoMedQueryToken |
SELECT
The SQL SELECT operator; the first field should contain a SQLQuery with a FROM operator, and the remaining fields should be relation attribute identifiers or constants |
static AutoMedQueryToken |
TABLE
|
static AutoMedQueryToken |
TABLE_ALIAS
|
static AutoMedQueryToken |
UNION
SQL UNION binary operator |
static AutoMedQueryToken |
WHERE
The only field should contain a logical operator or a comparison |
| Fields inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedQuery |
|---|
BINARY_CLASS, BOOLEAN, BOOLEAN_TOKEN, CLAUSE_CLASS, CONSTANT, CONSTANT_TOKEN, DATE_TOKEN, DOUBLE_TOKEN, FIELD_TYPE_AUTOMEDQUERY, FIELD_TYPE_INTEGER, FIELD_TYPE_ONE_OR_MORE, FIELD_TYPE_STRING, FLOAT, FLOAT_TOKEN, IDENTIFIER_TOKEN, INTEGER, INTEGER_TOKEN, LONG_TOKEN, STRING, STRING_TOKEN, SYMBOL_TOKEN, TIME, TIME_TOKEN, UNARY_CLASS, VALUE_CLASS |
| Constructor Summary | |
|---|---|
SQLQuery(AutoMedQueryToken token,
java.lang.Object field)
|
|
SQLQuery(AutoMedQueryToken token,
java.lang.Object[] fields)
|
|
| Method Summary | |
|---|---|
SQLQuery |
getSQLQuery(int fieldNumber)
Return the SQLQuery held in a certain field, or null if the field is empty. |
java.lang.String |
toString()
Convert this SQLQuery into a text equivalent. |
void |
translateToQueryText(java.lang.StringBuffer sql)
Insert into a StringBuffer the text equivalent of this SQLQuery. |
| Methods inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedQuery |
|---|
getAutoMedQueryToken, getField, getString, setField |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final AutoMedQueryToken SELECT
public static final AutoMedQueryToken FROM
public static final AutoMedQueryToken FIELD_ALIAS
public static final AutoMedQueryToken WHERE
public static final AutoMedQueryToken OR
public static final AutoMedQueryToken AND
public static final AutoMedQueryToken NOT
public static final AutoMedQueryToken EQUAL
public static final AutoMedQueryToken LESSTHAN
public static final AutoMedQueryToken LESSTHANEQUAL
public static final AutoMedQueryToken GREATERTHAN
public static final AutoMedQueryToken GREATERTHANEQUAL
public static final AutoMedQueryToken NOTEQUAL
public static final AutoMedQueryToken TABLE
public static final AutoMedQueryToken FIELD
public static final AutoMedQueryToken TABLE_ALIAS
public static final AutoMedQueryToken UNION
| Constructor Detail |
|---|
public SQLQuery(AutoMedQueryToken token,
java.lang.Object[] fields)
public SQLQuery(AutoMedQueryToken token,
java.lang.Object field)
| Method Detail |
|---|
public final SQLQuery getSQLQuery(int fieldNumber)
fieldNumber - the field to return.public void translateToQueryText(java.lang.StringBuffer sql)
sql - A StringBuffer that will have appended to it
the text of this query.public java.lang.String toString()
toString in class java.lang.ObjectString version of this SQLQuery, that can be
used in the native query language interface of this datasource.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||