butler.sql.util
Class JPreparedStatement

java.lang.Object
  extended by butler.sql.util.JPreparedStatement

public class JPreparedStatement
extends java.lang.Object


Constructor Summary
JPreparedStatement(java.sql.Connection conn, java.lang.String sql)
           
 
Method Summary
 void addBatch()
           
 void addBatch(java.lang.String sql)
           
 void close()
           
 int[] executeBatch()
           
 java.sql.ResultSet executeQuery()
           
 int executeUpdate()
           
 java.util.List getParams()
           
 int hashCode()
           
 void setCharacterStream(int parameterIndex, java.io.Reader reader, int length)
           
 void setDate(int parameterIndex, java.sql.Date x)
           
 void setNull(int index, int sqlType)
           
 void setObject(int parameterIndex, java.lang.Object x)
           
 void setString(int parameterIndex, java.lang.String x)
           
 void setTimestamp(int parameterIndex, java.sql.Timestamp x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPreparedStatement

public JPreparedStatement(java.sql.Connection conn,
                          java.lang.String sql)
                   throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

executeQuery

public java.sql.ResultSet executeQuery()
                                throws java.lang.Exception
Throws:
java.lang.Exception

executeUpdate

public int executeUpdate()
                  throws java.lang.Exception
Throws:
java.lang.Exception

executeBatch

public int[] executeBatch()
                   throws java.lang.Exception
Throws:
java.lang.Exception

setObject

public void setObject(int parameterIndex,
                      java.lang.Object x)
               throws java.lang.Exception
Throws:
java.lang.Exception

setString

public void setString(int parameterIndex,
                      java.lang.String x)
               throws java.lang.Exception
Throws:
java.lang.Exception

setDate

public void setDate(int parameterIndex,
                    java.sql.Date x)
             throws java.lang.Exception
Throws:
java.lang.Exception

setTimestamp

public void setTimestamp(int parameterIndex,
                         java.sql.Timestamp x)
                  throws java.lang.Exception
Throws:
java.lang.Exception

setNull

public void setNull(int index,
                    int sqlType)
             throws java.lang.Exception
Throws:
java.lang.Exception

setCharacterStream

public void setCharacterStream(int parameterIndex,
                               java.io.Reader reader,
                               int length)
                        throws java.sql.SQLException
Throws:
java.sql.SQLException

close

public void close()
           throws java.lang.Exception
Throws:
java.lang.Exception

addBatch

public void addBatch()
              throws java.sql.SQLException
Throws:
java.sql.SQLException

getParams

public java.util.List getParams()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

addBatch

public void addBatch(java.lang.String sql)
              throws java.sql.SQLException
Throws:
java.sql.SQLException