com.mchange.v2.sql.filter
Class FilterPreparedStatement

java.lang.Object
  extended by com.mchange.v2.sql.filter.FilterPreparedStatement
All Implemented Interfaces:
PreparedStatement, Statement, Wrapper

public abstract class FilterPreparedStatement
extends Object
implements PreparedStatement


Field Summary
protected  PreparedStatement inner
           
 
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
 
Constructor Summary
FilterPreparedStatement()
           
FilterPreparedStatement(PreparedStatement inner)
           
 
Method Summary
 void addBatch()
           
 void addBatch(String a)
           
 void cancel()
           
 void clearBatch()
           
 void clearParameters()
           
 void clearWarnings()
           
 void close()
           
 boolean execute()
           
 boolean execute(String a)
           
 boolean execute(String a, int b)
           
 boolean execute(String a, int[] b)
           
 boolean execute(String a, String[] b)
           
 int[] executeBatch()
           
 ResultSet executeQuery()
           
 ResultSet executeQuery(String a)
           
 int executeUpdate()
           
 int executeUpdate(String a)
           
 int executeUpdate(String a, int b)
           
 int executeUpdate(String a, int[] b)
           
 int executeUpdate(String a, String[] b)
           
 Connection getConnection()
           
 int getFetchDirection()
           
 int getFetchSize()
           
 ResultSet getGeneratedKeys()
           
 PreparedStatement getInner()
           
 int getMaxFieldSize()
           
 int getMaxRows()
           
 ResultSetMetaData getMetaData()
           
 boolean getMoreResults()
           
 boolean getMoreResults(int a)
           
 ParameterMetaData getParameterMetaData()
           
 int getQueryTimeout()
           
 ResultSet getResultSet()
           
 int getResultSetConcurrency()
           
 int getResultSetHoldability()
           
 int getResultSetType()
           
 int getUpdateCount()
           
 SQLWarning getWarnings()
           
 void setArray(int a, Array b)
           
 void setAsciiStream(int a, InputStream b, int c)
           
 void setBigDecimal(int a, BigDecimal b)
           
 void setBinaryStream(int a, InputStream b, int c)
           
 void setBlob(int a, Blob b)
           
 void setBoolean(int a, boolean b)
           
 void setByte(int a, byte b)
           
 void setBytes(int a, byte[] b)
           
 void setCharacterStream(int a, Reader b, int c)
           
 void setClob(int a, Clob b)
           
 void setCursorName(String a)
           
 void setDate(int a, Date b)
           
 void setDate(int a, Date b, Calendar c)
           
 void setDouble(int a, double b)
           
 void setEscapeProcessing(boolean a)
           
 void setFetchDirection(int a)
           
 void setFetchSize(int a)
           
 void setFloat(int a, float b)
           
 void setInner(PreparedStatement inner)
           
 void setInt(int a, int b)
           
 void setLong(int a, long b)
           
 void setMaxFieldSize(int a)
           
 void setMaxRows(int a)
           
 void setNull(int a, int b)
           
 void setNull(int a, int b, String c)
           
 void setObject(int a, Object b)
           
 void setObject(int a, Object b, int c)
           
 void setObject(int a, Object b, int c, int d)
           
 void setQueryTimeout(int a)
           
 void setRef(int a, Ref b)
           
 void setShort(int a, short b)
           
 void setString(int a, String b)
           
 void setTime(int a, Time b)
           
 void setTime(int a, Time b, Calendar c)
           
 void setTimestamp(int a, Timestamp b)
           
 void setTimestamp(int a, Timestamp b, Calendar c)
           
 void setUnicodeStream(int a, InputStream b, int c)
           
 void setURL(int a, URL b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.sql.PreparedStatement
setAsciiStream, setAsciiStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setCharacterStream, setCharacterStream, setClob, setClob, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setRowId, setSQLXML
 
Methods inherited from interface java.sql.Statement
isClosed, isPoolable, setPoolable
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Field Detail

inner

protected PreparedStatement inner
Constructor Detail

FilterPreparedStatement

public FilterPreparedStatement(PreparedStatement inner)

FilterPreparedStatement

public FilterPreparedStatement()
Method Detail

setInner

public void setInner(PreparedStatement inner)

getInner

public PreparedStatement getInner()

getMetaData

public ResultSetMetaData getMetaData()
                              throws SQLException
Specified by:
getMetaData in interface PreparedStatement
Throws:
SQLException

executeQuery

public ResultSet executeQuery()
                       throws SQLException
Specified by:
executeQuery in interface PreparedStatement
Throws:
SQLException

executeUpdate

public int executeUpdate()
                  throws SQLException
Specified by:
executeUpdate in interface PreparedStatement
Throws:
SQLException

addBatch

public void addBatch()
              throws SQLException
Specified by:
addBatch in interface PreparedStatement
Throws:
SQLException

setNull

public void setNull(int a,
                    int b,
                    String c)
             throws SQLException
Specified by:
setNull in interface PreparedStatement
Throws:
SQLException

setNull

public void setNull(int a,
                    int b)
             throws SQLException
Specified by:
setNull in interface PreparedStatement
Throws:
SQLException

setBigDecimal

public void setBigDecimal(int a,
                          BigDecimal b)
                   throws SQLException
Specified by:
setBigDecimal in interface PreparedStatement
Throws:
SQLException

setBytes

public void setBytes(int a,
                     byte[] b)
              throws SQLException
Specified by:
setBytes in interface PreparedStatement
Throws:
SQLException

setTimestamp

public void setTimestamp(int a,
                         Timestamp b,
                         Calendar c)
                  throws SQLException
Specified by:
setTimestamp in interface PreparedStatement
Throws:
SQLException

setTimestamp

public void setTimestamp(int a,
                         Timestamp b)
                  throws SQLException
Specified by:
setTimestamp in interface PreparedStatement
Throws:
SQLException

setAsciiStream

public void setAsciiStream(int a,
                           InputStream b,
                           int c)
                    throws SQLException
Specified by:
setAsciiStream in interface PreparedStatement
Throws:
SQLException

setUnicodeStream

public void setUnicodeStream(int a,
                             InputStream b,
                             int c)
                      throws SQLException
Specified by:
setUnicodeStream in interface PreparedStatement
Throws:
SQLException

setBinaryStream

public void setBinaryStream(int a,
                            InputStream b,
                            int c)
                     throws SQLException
Specified by:
setBinaryStream in interface PreparedStatement
Throws:
SQLException

clearParameters

public void clearParameters()
                     throws SQLException
Specified by:
clearParameters in interface PreparedStatement
Throws:
SQLException

setObject

public void setObject(int a,
                      Object b)
               throws SQLException
Specified by:
setObject in interface PreparedStatement
Throws:
SQLException

setObject

public void setObject(int a,
                      Object b,
                      int c,
                      int d)
               throws SQLException
Specified by:
setObject in interface PreparedStatement
Throws:
SQLException

setObject

public void setObject(int a,
                      Object b,
                      int c)
               throws SQLException
Specified by:
setObject in interface PreparedStatement
Throws:
SQLException

setCharacterStream

public void setCharacterStream(int a,
                               Reader b,
                               int c)
                        throws SQLException
Specified by:
setCharacterStream in interface PreparedStatement
Throws:
SQLException

setRef

public void setRef(int a,
                   Ref b)
            throws SQLException
Specified by:
setRef in interface PreparedStatement
Throws:
SQLException

setBlob

public void setBlob(int a,
                    Blob b)
             throws SQLException
Specified by:
setBlob in interface PreparedStatement
Throws:
SQLException

setClob

public void setClob(int a,
                    Clob b)
             throws SQLException
Specified by:
setClob in interface PreparedStatement
Throws:
SQLException

setArray

public void setArray(int a,
                     Array b)
              throws SQLException
Specified by:
setArray in interface PreparedStatement
Throws:
SQLException

getParameterMetaData

public ParameterMetaData getParameterMetaData()
                                       throws SQLException
Specified by:
getParameterMetaData in interface PreparedStatement
Throws:
SQLException

setBoolean

public void setBoolean(int a,
                       boolean b)
                throws SQLException
Specified by:
setBoolean in interface PreparedStatement
Throws:
SQLException

setByte

public void setByte(int a,
                    byte b)
             throws SQLException
Specified by:
setByte in interface PreparedStatement
Throws:
SQLException

setShort

public void setShort(int a,
                     short b)
              throws SQLException
Specified by:
setShort in interface PreparedStatement
Throws:
SQLException

setInt

public void setInt(int a,
                   int b)
            throws SQLException
Specified by:
setInt in interface PreparedStatement
Throws:
SQLException

setLong

public void setLong(int a,
                    long b)
             throws SQLException
Specified by:
setLong in interface PreparedStatement
Throws:
SQLException

setFloat

public void setFloat(int a,
                     float b)
              throws SQLException
Specified by:
setFloat in interface PreparedStatement
Throws:
SQLException

setDouble

public void setDouble(int a,
                      double b)
               throws SQLException
Specified by:
setDouble in interface PreparedStatement
Throws:
SQLException

setURL

public void setURL(int a,
                   URL b)
            throws SQLException
Specified by:
setURL in interface PreparedStatement
Throws:
SQLException

setTime

public void setTime(int a,
                    Time b)
             throws SQLException
Specified by:
setTime in interface PreparedStatement
Throws:
SQLException

setTime

public void setTime(int a,
                    Time b,
                    Calendar c)
             throws SQLException
Specified by:
setTime in interface PreparedStatement
Throws:
SQLException

execute

public boolean execute()
                throws SQLException
Specified by:
execute in interface PreparedStatement
Throws:
SQLException

setString

public void setString(int a,
                      String b)
               throws SQLException
Specified by:
setString in interface PreparedStatement
Throws:
SQLException

setDate

public void setDate(int a,
                    Date b,
                    Calendar c)
             throws SQLException
Specified by:
setDate in interface PreparedStatement
Throws:
SQLException

setDate

public void setDate(int a,
                    Date b)
             throws SQLException
Specified by:
setDate in interface PreparedStatement
Throws:
SQLException

getWarnings

public SQLWarning getWarnings()
                       throws SQLException
Specified by:
getWarnings in interface Statement
Throws:
SQLException

clearWarnings

public void clearWarnings()
                   throws SQLException
Specified by:
clearWarnings in interface Statement
Throws:
SQLException

setFetchDirection

public void setFetchDirection(int a)
                       throws SQLException
Specified by:
setFetchDirection in interface Statement
Throws:
SQLException

getFetchDirection

public int getFetchDirection()
                      throws SQLException
Specified by:
getFetchDirection in interface Statement
Throws:
SQLException

setFetchSize

public void setFetchSize(int a)
                  throws SQLException
Specified by:
setFetchSize in interface Statement
Throws:
SQLException

getFetchSize

public int getFetchSize()
                 throws SQLException
Specified by:
getFetchSize in interface Statement
Throws:
SQLException

getResultSetHoldability

public int getResultSetHoldability()
                            throws SQLException
Specified by:
getResultSetHoldability in interface Statement
Throws:
SQLException

executeQuery

public ResultSet executeQuery(String a)
                       throws SQLException
Specified by:
executeQuery in interface Statement
Throws:
SQLException

executeUpdate

public int executeUpdate(String a,
                         int b)
                  throws SQLException
Specified by:
executeUpdate in interface Statement
Throws:
SQLException

executeUpdate

public int executeUpdate(String a,
                         String[] b)
                  throws SQLException
Specified by:
executeUpdate in interface Statement
Throws:
SQLException

executeUpdate

public int executeUpdate(String a,
                         int[] b)
                  throws SQLException
Specified by:
executeUpdate in interface Statement
Throws:
SQLException

executeUpdate

public int executeUpdate(String a)
                  throws SQLException
Specified by:
executeUpdate in interface Statement
Throws:
SQLException

getMaxFieldSize

public int getMaxFieldSize()
                    throws SQLException
Specified by:
getMaxFieldSize in interface Statement
Throws:
SQLException

setMaxFieldSize

public void setMaxFieldSize(int a)
                     throws SQLException
Specified by:
setMaxFieldSize in interface Statement
Throws:
SQLException

getMaxRows

public int getMaxRows()
               throws SQLException
Specified by:
getMaxRows in interface Statement
Throws:
SQLException

setMaxRows

public void setMaxRows(int a)
                throws SQLException
Specified by:
setMaxRows in interface Statement
Throws:
SQLException

setEscapeProcessing

public void setEscapeProcessing(boolean a)
                         throws SQLException
Specified by:
setEscapeProcessing in interface Statement
Throws:
SQLException

getQueryTimeout

public int getQueryTimeout()
                    throws SQLException
Specified by:
getQueryTimeout in interface Statement
Throws:
SQLException

setQueryTimeout

public void setQueryTimeout(int a)
                     throws SQLException
Specified by:
setQueryTimeout in interface Statement
Throws:
SQLException

setCursorName

public void setCursorName(String a)
                   throws SQLException
Specified by:
setCursorName in interface Statement
Throws:
SQLException

getResultSet

public ResultSet getResultSet()
                       throws SQLException
Specified by:
getResultSet in interface Statement
Throws:
SQLException

getUpdateCount

public int getUpdateCount()
                   throws SQLException
Specified by:
getUpdateCount in interface Statement
Throws:
SQLException

getMoreResults

public boolean getMoreResults()
                       throws SQLException
Specified by:
getMoreResults in interface Statement
Throws:
SQLException

getMoreResults

public boolean getMoreResults(int a)
                       throws SQLException
Specified by:
getMoreResults in interface Statement
Throws:
SQLException

getResultSetConcurrency

public int getResultSetConcurrency()
                            throws SQLException
Specified by:
getResultSetConcurrency in interface Statement
Throws:
SQLException

getResultSetType

public int getResultSetType()
                     throws SQLException
Specified by:
getResultSetType in interface Statement
Throws:
SQLException

addBatch

public void addBatch(String a)
              throws SQLException
Specified by:
addBatch in interface Statement
Throws:
SQLException

clearBatch

public void clearBatch()
                throws SQLException
Specified by:
clearBatch in interface Statement
Throws:
SQLException

executeBatch

public int[] executeBatch()
                   throws SQLException
Specified by:
executeBatch in interface Statement
Throws:
SQLException

getGeneratedKeys

public ResultSet getGeneratedKeys()
                           throws SQLException
Specified by:
getGeneratedKeys in interface Statement
Throws:
SQLException

close

public void close()
           throws SQLException
Specified by:
close in interface Statement
Throws:
SQLException

execute

public boolean execute(String a,
                       int b)
                throws SQLException
Specified by:
execute in interface Statement
Throws:
SQLException

execute

public boolean execute(String a)
                throws SQLException
Specified by:
execute in interface Statement
Throws:
SQLException

execute

public boolean execute(String a,
                       int[] b)
                throws SQLException
Specified by:
execute in interface Statement
Throws:
SQLException

execute

public boolean execute(String a,
                       String[] b)
                throws SQLException
Specified by:
execute in interface Statement
Throws:
SQLException

getConnection

public Connection getConnection()
                         throws SQLException
Specified by:
getConnection in interface Statement
Throws:
SQLException

cancel

public void cancel()
            throws SQLException
Specified by:
cancel in interface Statement
Throws:
SQLException