javatools.db
Class DbColumn

java.lang.Object
  |
  +--javatools.db.DbExpr
        |
        +--javatools.db.DbColumn

public class DbColumn
extends DbExpr

A class that represents a particular column within a particular DbTable. The constructor is not public. Use DbTable.getColumn(...).


Field Summary
(package private)  int index
           
(package private)  DbTable table
           
 
Fields inherited from class javatools.db.DbExpr
db
 
Constructor Summary
(package private) DbColumn(DbTable table, int index)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getIndex()
           
 java.lang.String getName()
           
 java.lang.String getQueryString()
          Any DbExpr needs to be able to convert into the SQL string equivilent.
 int getSize()
           
 int setSqlValues(java.sql.PreparedStatement ps, int i)
          Any DbExpr needs to be able to substitute any parameters as per JDBC "?" substitutions.
 java.lang.String toString()
          The fully qualified name of this column.
 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

table

DbTable table

index

int index
Constructor Detail

DbColumn

DbColumn(DbTable table,
         int index)
Method Detail

getQueryString

public java.lang.String getQueryString()
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

getName

public java.lang.String getName()

setSqlValues

public int setSqlValues(java.sql.PreparedStatement ps,
                        int i)
                 throws DbException
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

getSize

public int getSize()

getIndex

public int getIndex()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
The fully qualified name of this column.

Overrides:
toString in class java.lang.Object

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