net.spy.db
Class GenericPreparedStatementStub

java.lang.Object
  extended by net.spy.SpyObject
      extended by net.spy.db.GenericPreparedStatementStub
Direct Known Subclasses:
CachePreparedStatementStub

public abstract class GenericPreparedStatementStub
extends SpyObject


Constructor Summary
GenericPreparedStatementStub(String q)
           
 
Method Summary
 void close()
           
protected  Object[] getApplicableArgs()
          Get the args as can be applied to a database.
protected  Object[] getArgs()
           
protected  String getQuery()
           
protected  int[] getTypes()
           
 void setBigDecimal(int a0, BigDecimal a1)
           
 void setBoolean(int a0, boolean a1)
           
 void setDate(int a0, Date a1)
           
 void setDouble(int a0, double a1)
           
 void setFloat(int a0, float a1)
           
 void setInt(int a0, int a1)
           
 void setLong(int a0, long a1)
           
 void setNull(int a0, int a1)
           
 void setObject(int a0, Object a1)
           
 void setShort(int a0, short a1)
           
 void setString(int a0, String a1)
           
 void setTime(int a0, Time a1)
           
 void setTimestamp(int a0, Timestamp a1)
          Set a timetamp value.
 
Methods inherited from class net.spy.SpyObject
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericPreparedStatementStub

public GenericPreparedStatementStub(String q)
Method Detail

getQuery

protected String getQuery()

getArgs

protected Object[] getArgs()

getApplicableArgs

protected Object[] getApplicableArgs()
Get the args as can be applied to a database.

Returns:
the arguments, with DBNulls replaced with null

getTypes

protected int[] getTypes()

setBoolean

public void setBoolean(int a0,
                       boolean a1)
                throws SQLException
Throws:
SQLException

setDate

public void setDate(int a0,
                    Date a1)
             throws SQLException
Throws:
SQLException

setDouble

public void setDouble(int a0,
                      double a1)
               throws SQLException
Throws:
SQLException

setFloat

public void setFloat(int a0,
                     float a1)
              throws SQLException
Throws:
SQLException

setInt

public void setInt(int a0,
                   int a1)
            throws SQLException
Throws:
SQLException

setLong

public void setLong(int a0,
                    long a1)
             throws SQLException
Throws:
SQLException

setNull

public void setNull(int a0,
                    int a1)
             throws SQLException
Throws:
SQLException

setBigDecimal

public void setBigDecimal(int a0,
                          BigDecimal a1)
                   throws SQLException
Throws:
SQLException

setObject

public void setObject(int a0,
                      Object a1)
               throws SQLException
Throws:
SQLException

setShort

public void setShort(int a0,
                     short a1)
              throws SQLException
Throws:
SQLException

setString

public void setString(int a0,
                      String a1)
               throws SQLException
Throws:
SQLException

setTime

public void setTime(int a0,
                    Time a1)
             throws SQLException
Throws:
SQLException

setTimestamp

public void setTimestamp(int a0,
                         Timestamp a1)
                  throws SQLException
Set a timetamp value.

Throws:
SQLException

close

public void close()
           throws SQLException
Throws:
SQLException


Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.