Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javatools.db
Class DbValueList  view DbValueList download DbValueList.java

java.lang.Object
  extended byjavatools.db.DbExpr
      extended byjavatools.db.DbValueList
All Implemented Interfaces:
DbTableUser

public class DbValueList
extends DbExpr

This class represents a set of values to be used in an expression.

Version:
0.1.0

Field Summary
private  java.util.Collection valueList
           
 
Fields inherited from class javatools.db.DbExpr
db
 
Constructor Summary
DbValueList(DbDatabase db, java.util.Collection pValueList)
          Creates new DbValueList
 
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.
 
Methods inherited from class javatools.db.DbExpr
and, containsAllStrings, containsAllStrings, count, dateTrunc, equal, getString, greaterThan, greaterThanOrEqual, in, in, isNotNull, isNull, lessThan, lessThanOrEqual, like, lower, max, min, notEqual, notIn, notIn, or, setSqlValue, upper, usesTables, usesTables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valueList

private java.util.Collection valueList
Constructor Detail

DbValueList

public DbValueList(DbDatabase db,
                   java.util.Collection pValueList)
Creates new DbValueList

Method Detail

getQueryString

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

Specified by:
getQueryString in class DbExpr

setSqlValues

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

Specified by:
setSqlValues in class DbExpr