javatools.db
Class DbCriterion

java.lang.Object
  |
  +--javatools.db.DbExpr
        |
        +--javatools.db.DbCriterion
Direct Known Subclasses:
DbAndExpr, DbFalseExpr, DbOrExpr, DbTrueExpr

public class DbCriterion
extends DbExpr

An SQL expression of the form EXPRESSION OPERATOR EXPRESSION


Field Summary
(package private)  java.lang.Object c1
           
(package private)  java.lang.Object c2
           
(package private)  java.lang.String op
           
 
Fields inherited from class javatools.db.DbExpr
db
 
Constructor Summary
DbCriterion(DbDatabase db, java.lang.Object c1, java.lang.String op, java.lang.Object c2)
           
 
Method Summary
 java.lang.String getQueryString()
          Any DbExpr needs to be able to convert into the SQL string equivilent.
 int setSqlValues(java.sql.PreparedStatement ps, int i)
          Any DbExpr needs to be able to substitute any parameters as per JDBC "?" substitutions.
 void usesTables(java.util.Set c)
          Description of the Method
 
Methods inherited from class javatools.db.DbExpr
and, dateTrunc, equal, getString, greaterThan, greaterThanOrEqual, in, isNotNull, isNull, lessThan, lessThanOrEqual, like, lower, max, min, notEqual, notIn, or, setSqlValue, upper, usesTables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

c1

java.lang.Object c1

op

java.lang.String op

c2

java.lang.Object c2
Constructor Detail

DbCriterion

public DbCriterion(DbDatabase db,
                   java.lang.Object c1,
                   java.lang.String op,
                   java.lang.Object c2)
Method Detail

getQueryString

public java.lang.String getQueryString()
                                throws DbException
Description copied from class: DbExpr
Any DbExpr needs to be able to convert into the SQL string equivilent.

Specified by:
getQueryString in class DbExpr
Returns:
The queryString value
Throws:
DbException - Description of Exception

setSqlValues

public int setSqlValues(java.sql.PreparedStatement ps,
                        int i)
                 throws DbException,
                        java.sql.SQLException
Description copied from class: DbExpr
Any DbExpr needs to be able to substitute any parameters as per JDBC "?" substitutions.

Specified by:
setSqlValues in class DbExpr
Parameters:
ps - The new sqlValues value
i - The new sqlValues value
Returns:
Description of the Returned Value
Throws:
DbException - Description of Exception
java.sql.SQLException - Description of Exception

usesTables

public void usesTables(java.util.Set c)
Description copied from class: DbExpr
Description of the Method

Overrides:
usesTables in class DbExpr
Parameters:
c - Description of Parameter