javatools.db
Class DbExprFuncDef

java.lang.Object
  |
  +--javatools.db.DbExpr
        |
        +--javatools.db.DbExprFuncDef
All Implemented Interfaces:
DbTableUser

public class DbExprFuncDef
extends DbExpr

An SQL expression of the form FUNCNAME(parameter....).


Constructor Summary
DbExprFuncDef(DbDatabase db, java.lang.String func)
          Constructor for the DbExprFuncDef object
DbExprFuncDef(DbDatabase db, java.lang.String func, java.lang.Object arg1)
          Constructor for the DbExprFuncDef object
DbExprFuncDef(DbDatabase db, java.lang.String func, java.lang.Object arg1, java.lang.Object arg2)
          Constructor for the DbExprFuncDef object
 
Method Summary
 java.lang.String getQueryString()
          Gets the queryString attribute of the DbExprFuncDef object
 int setSqlValues(java.sql.PreparedStatement ps, int i)
          Sets the sqlValues attribute of the DbExprFuncDef object
 void usesTables(java.util.Set coll)
          Description of the Method
 
Methods inherited from class javatools.db.DbExpr
and, containsAllStrings, containsAllStrings, count, dateTrunc, equal, greaterThan, greaterThanOrEqual, in, in, isNotNull, isNull, lessThan, lessThanOrEqual, like, lower, max, min, notEqual, notIn, notIn, or, upper, usesTables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbExprFuncDef

public DbExprFuncDef(DbDatabase db,
                     java.lang.String func)
Constructor for the DbExprFuncDef object

Parameters:
db - The database that will be used.
func - The function which will be used.

DbExprFuncDef

public DbExprFuncDef(DbDatabase db,
                     java.lang.String func,
                     java.lang.Object arg1)
Constructor for the DbExprFuncDef object

Parameters:
db - The database that will be used.
func - The function that will be used.
arg1 - The first argument.

DbExprFuncDef

public DbExprFuncDef(DbDatabase db,
                     java.lang.String func,
                     java.lang.Object arg1,
                     java.lang.Object arg2)
Constructor for the DbExprFuncDef object

Parameters:
db - The database that will be used.
func - The function that will be used.
arg1 - The first argument.
arg2 - The second argument.
Method Detail

setSqlValues

public int setSqlValues(java.sql.PreparedStatement ps,
                        int i)
                 throws DbException,
                        java.sql.SQLException
Sets the sqlValues attribute of the DbExprFuncDef object

Specified by:
setSqlValues in class DbExpr
Parameters:
ps - The PreparedStatement.
i - The new sqlValues value
Returns:
Obscure...
Throws:
DbException - If something goes wrong.
java.sql.SQLException - If something goes wrong.

getQueryString

public java.lang.String getQueryString()
                                throws DbException
Gets the queryString attribute of the DbExprFuncDef object

Specified by:
getQueryString in class DbExpr
Returns:
The queryString value
Throws:
DbException - If something goes wrong.

usesTables

public void usesTables(java.util.Set coll)
Description of the Method

Specified by:
usesTables in interface DbTableUser
Overrides:
usesTables in class DbExpr
Parameters:
coll - Description of Parameter