ca.bc.gov.webade.dbpool
Class WrapperPreparedStatement

java.lang.Object
  extended byca.bc.gov.webade.dbpool.WrapperStatement
      extended byca.bc.gov.webade.dbpool.WrapperPreparedStatement
All Implemented Interfaces:
java.sql.PreparedStatement, java.sql.Statement
Direct Known Subclasses:
WrapperCallableStatement

public class WrapperPreparedStatement
extends WrapperStatement
implements java.sql.PreparedStatement

Author:
jross

Field Summary
 
Fields inherited from interface java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
 
Method Summary
 void addBatch()
           
 void addBatch(java.lang.String arg0)
           
 void cancel()
           
 void clearBatch()
           
 void clearParameters()
           
 void clearWarnings()
           
 boolean equals(java.lang.Object arg0)
           
 boolean execute()
           
 boolean execute(java.lang.String arg0)
           
 int[] executeBatch()
           
 java.sql.ResultSet executeQuery()
           
 java.sql.ResultSet executeQuery(java.lang.String arg0)
           
 int executeUpdate()
           
 int executeUpdate(java.lang.String arg0)
           
 java.sql.Connection getConnection()
           
 int getFetchDirection()
           
 int getFetchSize()
           
 int getMaxFieldSize()
           
 int getMaxRows()
           
 java.sql.ResultSetMetaData getMetaData()
           
 boolean getMoreResults()
           
 java.sql.ParameterMetaData getParameterMetaData()
           
 int getQueryTimeout()
           
 java.sql.ResultSet getResultSet()
           
 int getResultSetConcurrency()
           
 int getResultSetType()
           
 int getUpdateCount()
           
 java.sql.SQLWarning getWarnings()
           
 int hashCode()
           
 void setArray(int arg0, java.sql.Array arg1)
           
 void setAsciiStream(int arg0, java.io.InputStream arg1, int arg2)
           
 void setBigDecimal(int arg0, java.math.BigDecimal arg1)
           
 void setBinaryStream(int arg0, java.io.InputStream arg1, int arg2)
           
 void setBlob(int arg0, java.sql.Blob arg1)
           
 void setBoolean(int arg0, boolean arg1)
           
 void setByte(int arg0, byte arg1)
           
 void setBytes(int arg0, byte[] arg1)
           
 void setCharacterStream(int arg0, java.io.Reader arg1, int arg2)
           
 void setClob(int arg0, java.sql.Clob arg1)
           
 void setCursorName(java.lang.String arg0)
           
 void setDate(int arg0, java.sql.Date arg1)
           
 void setDate(int arg0, java.sql.Date arg1, java.util.Calendar arg2)
           
 void setDouble(int arg0, double arg1)
           
 void setEscapeProcessing(boolean arg0)
           
 void setFetchDirection(int arg0)
           
 void setFetchSize(int arg0)
           
 void setFloat(int arg0, float arg1)
           
 void setInt(int arg0, int arg1)
           
 void setLong(int arg0, long arg1)
           
 void setMaxFieldSize(int arg0)
           
 void setMaxRows(int arg0)
           
 void setNull(int arg0, int arg1)
           
 void setNull(int arg0, int arg1, java.lang.String arg2)
           
 void setObject(int arg0, java.lang.Object arg1)
           
 void setObject(int arg0, java.lang.Object arg1, int arg2)
           
 void setObject(int arg0, java.lang.Object arg1, int arg2, int arg3)
           
 void setQueryTimeout(int arg0)
           
 void setRef(int arg0, java.sql.Ref arg1)
           
 void setShort(int arg0, short arg1)
           
 void setString(int arg0, java.lang.String arg1)
           
 void setTime(int arg0, java.sql.Time arg1)
           
 void setTime(int arg0, java.sql.Time arg1, java.util.Calendar arg2)
           
 void setTimestamp(int arg0, java.sql.Timestamp arg1)
           
 void setTimestamp(int arg0, java.sql.Timestamp arg1, java.util.Calendar arg2)
           
 void setUnicodeStream(int arg0, java.io.InputStream arg1, int arg2)
          Deprecated.  
 void setURL(int arg0, java.net.URL arg1)
           
 java.lang.String toString()
           
 
Methods inherited from class ca.bc.gov.webade.dbpool.WrapperStatement
close, execute, execute, execute, executeUpdate, executeUpdate, executeUpdate, getGeneratedKeys, getMoreResults, getResultSetHoldability, getWrappedStatement
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.sql.Statement
close, execute, execute, execute, executeUpdate, executeUpdate, executeUpdate, getGeneratedKeys, getMoreResults, getResultSetHoldability
 

Method Detail

executeQuery

public java.sql.ResultSet executeQuery()
                                throws java.sql.SQLException
Specified by:
executeQuery in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.executeQuery()

executeUpdate

public int executeUpdate()
                  throws java.sql.SQLException
Specified by:
executeUpdate in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.executeUpdate()

setNull

public void setNull(int arg0,
                    int arg1)
             throws java.sql.SQLException
Specified by:
setNull in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setNull(int, int)

setBoolean

public void setBoolean(int arg0,
                       boolean arg1)
                throws java.sql.SQLException
Specified by:
setBoolean in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setBoolean(int, boolean)

setByte

public void setByte(int arg0,
                    byte arg1)
             throws java.sql.SQLException
Specified by:
setByte in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setByte(int, byte)

setShort

public void setShort(int arg0,
                     short arg1)
              throws java.sql.SQLException
Specified by:
setShort in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setShort(int, short)

setInt

public void setInt(int arg0,
                   int arg1)
            throws java.sql.SQLException
Specified by:
setInt in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setInt(int, int)

setLong

public void setLong(int arg0,
                    long arg1)
             throws java.sql.SQLException
Specified by:
setLong in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setLong(int, long)

setFloat

public void setFloat(int arg0,
                     float arg1)
              throws java.sql.SQLException
Specified by:
setFloat in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setFloat(int, float)

setDouble

public void setDouble(int arg0,
                      double arg1)
               throws java.sql.SQLException
Specified by:
setDouble in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setDouble(int, double)

setBigDecimal

public void setBigDecimal(int arg0,
                          java.math.BigDecimal arg1)
                   throws java.sql.SQLException
Specified by:
setBigDecimal in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setBigDecimal(int, java.math.BigDecimal)

setString

public void setString(int arg0,
                      java.lang.String arg1)
               throws java.sql.SQLException
Specified by:
setString in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setString(int, java.lang.String)

setBytes

public void setBytes(int arg0,
                     byte[] arg1)
              throws java.sql.SQLException
Specified by:
setBytes in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setBytes(int, byte[])

setDate

public void setDate(int arg0,
                    java.sql.Date arg1)
             throws java.sql.SQLException
Specified by:
setDate in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setDate(int, java.sql.Date)

setTime

public void setTime(int arg0,
                    java.sql.Time arg1)
             throws java.sql.SQLException
Specified by:
setTime in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setTime(int, java.sql.Time)

setTimestamp

public void setTimestamp(int arg0,
                         java.sql.Timestamp arg1)
                  throws java.sql.SQLException
Specified by:
setTimestamp in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setTimestamp(int, java.sql.Timestamp)

setAsciiStream

public void setAsciiStream(int arg0,
                           java.io.InputStream arg1,
                           int arg2)
                    throws java.sql.SQLException
Specified by:
setAsciiStream in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setAsciiStream(int, java.io.InputStream, int)

setUnicodeStream

public void setUnicodeStream(int arg0,
                             java.io.InputStream arg1,
                             int arg2)
                      throws java.sql.SQLException
Deprecated.  

Specified by:
setUnicodeStream in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setUnicodeStream(int, java.io.InputStream, int)

setBinaryStream

public void setBinaryStream(int arg0,
                            java.io.InputStream arg1,
                            int arg2)
                     throws java.sql.SQLException
Specified by:
setBinaryStream in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setBinaryStream(int, java.io.InputStream, int)

clearParameters

public void clearParameters()
                     throws java.sql.SQLException
Specified by:
clearParameters in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.clearParameters()

setObject

public void setObject(int arg0,
                      java.lang.Object arg1,
                      int arg2,
                      int arg3)
               throws java.sql.SQLException
Specified by:
setObject in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setObject(int, java.lang.Object, int, int)

setObject

public void setObject(int arg0,
                      java.lang.Object arg1,
                      int arg2)
               throws java.sql.SQLException
Specified by:
setObject in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setObject(int, java.lang.Object, int)

setObject

public void setObject(int arg0,
                      java.lang.Object arg1)
               throws java.sql.SQLException
Specified by:
setObject in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setObject(int, java.lang.Object)

execute

public boolean execute()
                throws java.sql.SQLException
Specified by:
execute in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.execute()

addBatch

public void addBatch()
              throws java.sql.SQLException
Specified by:
addBatch in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.addBatch()

setCharacterStream

public void setCharacterStream(int arg0,
                               java.io.Reader arg1,
                               int arg2)
                        throws java.sql.SQLException
Specified by:
setCharacterStream in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setCharacterStream(int, java.io.Reader, int)

setRef

public void setRef(int arg0,
                   java.sql.Ref arg1)
            throws java.sql.SQLException
Specified by:
setRef in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setRef(int, java.sql.Ref)

setBlob

public void setBlob(int arg0,
                    java.sql.Blob arg1)
             throws java.sql.SQLException
Specified by:
setBlob in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setBlob(int, java.sql.Blob)

setClob

public void setClob(int arg0,
                    java.sql.Clob arg1)
             throws java.sql.SQLException
Specified by:
setClob in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setClob(int, java.sql.Clob)

setArray

public void setArray(int arg0,
                     java.sql.Array arg1)
              throws java.sql.SQLException
Specified by:
setArray in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setArray(int, java.sql.Array)

getMetaData

public java.sql.ResultSetMetaData getMetaData()
                                       throws java.sql.SQLException
Specified by:
getMetaData in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.getMetaData()

setDate

public void setDate(int arg0,
                    java.sql.Date arg1,
                    java.util.Calendar arg2)
             throws java.sql.SQLException
Specified by:
setDate in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setDate(int, java.sql.Date, java.util.Calendar)

setTime

public void setTime(int arg0,
                    java.sql.Time arg1,
                    java.util.Calendar arg2)
             throws java.sql.SQLException
Specified by:
setTime in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setTime(int, java.sql.Time, java.util.Calendar)

setTimestamp

public void setTimestamp(int arg0,
                         java.sql.Timestamp arg1,
                         java.util.Calendar arg2)
                  throws java.sql.SQLException
Specified by:
setTimestamp in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setTimestamp(int, java.sql.Timestamp, java.util.Calendar)

setNull

public void setNull(int arg0,
                    int arg1,
                    java.lang.String arg2)
             throws java.sql.SQLException
Specified by:
setNull in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setNull(int, int, java.lang.String)

executeQuery

public java.sql.ResultSet executeQuery(java.lang.String arg0)
                                throws java.sql.SQLException
Specified by:
executeQuery in interface java.sql.Statement
Overrides:
executeQuery in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.executeQuery(java.lang.String)

executeUpdate

public int executeUpdate(java.lang.String arg0)
                  throws java.sql.SQLException
Specified by:
executeUpdate in interface java.sql.Statement
Overrides:
executeUpdate in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.executeUpdate(java.lang.String)

getMaxFieldSize

public int getMaxFieldSize()
                    throws java.sql.SQLException
Specified by:
getMaxFieldSize in interface java.sql.Statement
Overrides:
getMaxFieldSize in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.getMaxFieldSize()

setMaxFieldSize

public void setMaxFieldSize(int arg0)
                     throws java.sql.SQLException
Specified by:
setMaxFieldSize in interface java.sql.Statement
Overrides:
setMaxFieldSize in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.setMaxFieldSize(int)

getMaxRows

public int getMaxRows()
               throws java.sql.SQLException
Specified by:
getMaxRows in interface java.sql.Statement
Overrides:
getMaxRows in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.getMaxRows()

setMaxRows

public void setMaxRows(int arg0)
                throws java.sql.SQLException
Specified by:
setMaxRows in interface java.sql.Statement
Overrides:
setMaxRows in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.setMaxRows(int)

setEscapeProcessing

public void setEscapeProcessing(boolean arg0)
                         throws java.sql.SQLException
Specified by:
setEscapeProcessing in interface java.sql.Statement
Overrides:
setEscapeProcessing in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.setEscapeProcessing(boolean)

getQueryTimeout

public int getQueryTimeout()
                    throws java.sql.SQLException
Specified by:
getQueryTimeout in interface java.sql.Statement
Overrides:
getQueryTimeout in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.getQueryTimeout()

setQueryTimeout

public void setQueryTimeout(int arg0)
                     throws java.sql.SQLException
Specified by:
setQueryTimeout in interface java.sql.Statement
Overrides:
setQueryTimeout in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.setQueryTimeout(int)

cancel

public void cancel()
            throws java.sql.SQLException
Specified by:
cancel in interface java.sql.Statement
Overrides:
cancel in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.cancel()

getWarnings

public java.sql.SQLWarning getWarnings()
                                throws java.sql.SQLException
Specified by:
getWarnings in interface java.sql.Statement
Overrides:
getWarnings in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.getWarnings()

clearWarnings

public void clearWarnings()
                   throws java.sql.SQLException
Specified by:
clearWarnings in interface java.sql.Statement
Overrides:
clearWarnings in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.clearWarnings()

setCursorName

public void setCursorName(java.lang.String arg0)
                   throws java.sql.SQLException
Specified by:
setCursorName in interface java.sql.Statement
Overrides:
setCursorName in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.setCursorName(java.lang.String)

execute

public boolean execute(java.lang.String arg0)
                throws java.sql.SQLException
Specified by:
execute in interface java.sql.Statement
Overrides:
execute in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.execute(java.lang.String)

getResultSet

public java.sql.ResultSet getResultSet()
                                throws java.sql.SQLException
Specified by:
getResultSet in interface java.sql.Statement
Overrides:
getResultSet in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.getResultSet()

getUpdateCount

public int getUpdateCount()
                   throws java.sql.SQLException
Specified by:
getUpdateCount in interface java.sql.Statement
Overrides:
getUpdateCount in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.getUpdateCount()

getMoreResults

public boolean getMoreResults()
                       throws java.sql.SQLException
Specified by:
getMoreResults in interface java.sql.Statement
Overrides:
getMoreResults in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.getMoreResults()

setFetchDirection

public void setFetchDirection(int arg0)
                       throws java.sql.SQLException
Specified by:
setFetchDirection in interface java.sql.Statement
Overrides:
setFetchDirection in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.setFetchDirection(int)

getFetchDirection

public int getFetchDirection()
                      throws java.sql.SQLException
Specified by:
getFetchDirection in interface java.sql.Statement
Overrides:
getFetchDirection in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.getFetchDirection()

setFetchSize

public void setFetchSize(int arg0)
                  throws java.sql.SQLException
Specified by:
setFetchSize in interface java.sql.Statement
Overrides:
setFetchSize in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.setFetchSize(int)

getFetchSize

public int getFetchSize()
                 throws java.sql.SQLException
Specified by:
getFetchSize in interface java.sql.Statement
Overrides:
getFetchSize in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.getFetchSize()

getResultSetConcurrency

public int getResultSetConcurrency()
                            throws java.sql.SQLException
Specified by:
getResultSetConcurrency in interface java.sql.Statement
Overrides:
getResultSetConcurrency in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.getResultSetConcurrency()

getResultSetType

public int getResultSetType()
                     throws java.sql.SQLException
Specified by:
getResultSetType in interface java.sql.Statement
Overrides:
getResultSetType in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.getResultSetType()

addBatch

public void addBatch(java.lang.String arg0)
              throws java.sql.SQLException
Specified by:
addBatch in interface java.sql.Statement
Overrides:
addBatch in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.addBatch(java.lang.String)

clearBatch

public void clearBatch()
                throws java.sql.SQLException
Specified by:
clearBatch in interface java.sql.Statement
Overrides:
clearBatch in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.clearBatch()

executeBatch

public int[] executeBatch()
                   throws java.sql.SQLException
Specified by:
executeBatch in interface java.sql.Statement
Overrides:
executeBatch in class WrapperStatement
Throws:
java.sql.SQLException
See Also:
Statement.executeBatch()

getConnection

public java.sql.Connection getConnection()
Specified by:
getConnection in interface java.sql.Statement
Overrides:
getConnection in class WrapperStatement
See Also:
Statement.getConnection()

setURL

public void setURL(int arg0,
                   java.net.URL arg1)
            throws java.sql.SQLException
Specified by:
setURL in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.setURL(int, java.net.URL)

getParameterMetaData

public java.sql.ParameterMetaData getParameterMetaData()
                                                throws java.sql.SQLException
Specified by:
getParameterMetaData in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException
See Also:
PreparedStatement.getParameterMetaData()

equals

public boolean equals(java.lang.Object arg0)
Overrides:
equals in class WrapperStatement
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class WrapperStatement
See Also:
Object.hashCode()

toString

public java.lang.String toString()
Overrides:
toString in class WrapperStatement
See Also:
Object.toString()