|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.jdc.lang.Object
|
+--com.jdc.rdb.sql.SQLClause
|
+--com.jdc.rdb.sql.dml.DMLClause
|
+--com.jdc.rdb.sql.dml.clause.Where
Where represents a Select,
Update, or Delete
SQL statement WHERE clause. The WHERE
clause specifies an intermediate result table that consists of those rows of RESULT
for which the search-condition is true. RESULT is the
result of the From clause of the subselect.
true,
false, or unknown about a given row. The result of a
search condition is derived by application of the specified logical
operators (AND, OR, NOT) to the result of each specified predicate. If
logical operators are not specified, the result of the search condition is the
result of the specified predicate.
Select,
Update,
Delete,
Serialized Form| Field Summary |
| Fields inherited from class com.jdc.rdb.sql.dml.DMLClause |
sqlClause |
| Fields inherited from class com.jdc.lang.Object |
string |
| Constructor Summary | |
Where()
Constructs a new Where clause object. |
|
Where(String value)
Constructs a new Where clause object for the specified Where
clause search condition. |
|
| Method Summary | |
Where |
addCondition(String column,
String comparison,
Object value)
Adds a search condition to this Where clause. |
Where |
addOperator(String logical)
Adds a logical operator to this Where clause. |
Where |
closeParenthesis()
Adds an close parenthesis to this Where clause. |
String |
getKeyword()
Returns the Where clause keyword. |
String |
getValue()
Returns the Where clause value. |
Where |
openParenthesis()
Adds an open parenthesis to this Where clause. |
String |
toString()
Returns a String representation of this Where clause. |
| Methods inherited from class com.jdc.rdb.sql.dml.DMLClause |
getKeyword |
| Methods inherited from class com.jdc.rdb.sql.SQLClause |
contains, setKeyword, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Where()
Where clause object.
public Where(String value)
Where clause object for the specified Where
clause search condition.
SQLInvalidException - No WHERE clause search condition is specified.| Method Detail |
public Where addOperator(String logical)
Where clause. Refer to the
Logical operator class for a list of valid logical operators.
Where clause object.
SQLInvalidException - An invalid logical operator is specified.Logical
public Where addCondition(String column,
String comparison,
Object value)
Where clause. A column
name and comparison operator are required. Refer to the Comparison
operator class for a list of valid comparison operators.
Where clause object.
SQLInvalidException - No column name is specified or an
invalid comparison operator is specified.Comparisonpublic Where closeParenthesis()
Where clause. This is
a convenience method to allow construction of complex Where clauses.
Where clause object.public Where openParenthesis()
Where clause. This is a
convenience method to allow construction of complex Where clauses.
Where clause object.public String getKeyword()
Where clause keyword.
getKeyword in class SQLClauseWhere clause keyword.public String getValue()
Where clause value.
getValue in class SQLClauseWhere clause value.public String toString()
String representation of this Where clause.
toString in interface SelectClausetoString in class SQLClauseString representation of this Where clause.
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||