public class WhereClauseFreeFormCondition extends WhereClauseCondition
Vector vecParameters = new Vector(); vecParameters.add("-19"); WhereClauseCondition cond = new WhereClauseFreeFormCondition( "EXISTS (SELECT * FROM MBRATTRVAL WHERE MBRATTR_ID = ? AND MEMBER_ID = USERS.USERS_ID)", null, vecParameters);
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The class name.
|
static java.lang.String |
COPYRIGHT
IBM Copyright
|
SQL_AND, SQL_CLOSE_BRACKET, SQL_EQUALS, SQL_ESCAPE, SQL_LIKE, SQL_NOT_EQUALS, SQL_OPEN_BRACKET, SQL_OR, SQL_QUOTE, SQL_SOUNDEX, SQL_TRUE_CONDITION, SQL_WILDCARD
Constructor and Description |
---|
WhereClauseFreeFormCondition(java.lang.String astrFreeFormWhereClause,
java.util.Set asetFromTables,
java.util.Vector avecWhereClauseParameters)
Simple constructor allows the client to specify the WHERE clause
SQL, the FROM tables, and the parameters to the prepared statement.
|
appendANDCondition, appendORCondition, getFromTables, getWhereClauseParameterValues, getWhereClauseSQL, isValid, toString
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
public WhereClauseFreeFormCondition(java.lang.String astrFreeFormWhereClause, java.util.Set asetFromTables, java.util.Vector avecWhereClauseParameters)
astrFreeFormWhereClause
- The free-form SQL to use in the WHERE
clause.asetFromTables
- The tables to be added to the FROM clause; null
if no additional FROM tables are required.avecWhereClauseParameters
- The parameters required by the SQL;
null if no parameters are required.