com.p6spy.engine.spy

Class P6Statement

Implemented Interfaces:
Statement
Known Direct Subclasses:
P6LogStatement, P6OutageStatement, P6PreparedStatement

public class P6Statement
extends P6Base
implements Statement

Description: Wrapper class for Statement $Author: aarvesen $ $Revision: 1.4 $ $Date: 2003/06/20 20:31:55 $ $Id: P6Statement.java,v 1.4 2003/06/20 20:31:55 aarvesen Exp $ $Log: P6Statement.java,v $ Revision 1.4 2003/06/20 20:31:55 aarvesen fix for bug 161: null result sets Revision 1.3 2003/01/03 20:33:43 aarvesen Added getJDBC() method to return the underlying jdbc object. Revision 1.2 2002/12/06 22:44:42 aarvesen Extend P6Base. New factory registration in the constructor. jdk 1.4 Revision 1.1 2002/05/24 07:31:13 jeffgoke version 1 rewrite Revision 1.8 2002/05/18 06:39:52 jeffgoke Peter Laird added Outage detection. Added junit tests for outage detection. Fixed multi-driver tests. Revision 1.7 2002/05/16 04:58:40 jeffgoke Viktor Szathmary added multi-driver support. Rewrote P6SpyOptions to be easier to manage. Fixed several bugs. Revision 1.6 2002/04/21 06:15:35 jeffgoke added test cases, fixed batch bugs Revision 1.5 2002/04/18 06:54:39 jeffgoke added batch statement logging support Revision 1.4 2002/04/15 05:13:32 jeffgoke Simon Sadedin added timing support. Fixed bug where batch execute was not getting logged. Added result set timing. Updated the log format to include categories, and updated options to control the categories. Updated documentation. Revision 1.3 2002/04/11 04:18:03 jeffgoke fixed bug where callable & prepared were not passing their ancestors the correct constructor information Revision 1.2 2002/04/10 04:24:26 jeffgoke added support for callable statements and fixed numerous bugs that allowed the real class to be returned Revision 1.1.1.1 2002/04/07 04:52:26 jeffgoke no message Revision 1.3 2001-08-05 09:16:04-05 andy final version on the website Revision 1.2 2001-08-02 07:52:44-05 andy <> Revision 1.1 2001-07-30 23:03:31-05 andy <> Revision 1.0 2001-07-30 17:46:23-05 andy Initial revision

Field Summary

protected P6Connection
connection
protected Statement
passthru
protected String
statementQuery

Fields inherited from class com.p6spy.engine.spy.P6Base

factory

Constructor Summary

P6Statement(P6Factory factory, Statement statement, P6Connection conn)

Method Summary

void
addBatch(String p0)
void
cancel()
void
clearBatch()
void
clearWarnings()
void
close()
boolean
execute(String p0)
boolean
execute(String p0, int p1)
boolean
execute(String p0, p1[] )
boolean
execute(String p0, p1[] )
int[]
executeBatch()
ResultSet
executeQuery(String p0)
int
executeUpdate(String p0)
int
executeUpdate(String p0, int p1)
int
executeUpdate(String p0, p1[] )
int
executeUpdate(String p0, p1[] )
Connection
getConnection()
int
getFetchDirection()
int
getFetchSize()
ResultSet
getGeneratedKeys()
Statement
getJDBC()
Returns the underlying JDBC object (in this case, a java.sql.Statement)
int
getMaxFieldSize()
int
getMaxRows()
boolean
getMoreResults()
boolean
getMoreResults(int p0)
int
getQueryTimeout()
ResultSet
getResultSet()
int
getResultSetConcurrency()
int
getResultSetHoldability()
int
getResultSetType()
int
getUpdateCount()
SQLWarning
getWarnings()
void
setCursorName(String p0)
void
setEscapeProcessing(boolean p0)
void
setFetchDirection(int p0)
void
setFetchSize(int p0)
void
setMaxFieldSize(int p0)
void
setMaxRows(int p0)
void
setQueryTimeout(int p0)

Methods inherited from class com.p6spy.engine.spy.P6Base

getP6Factory, setP6Factory

Field Details

connection

protected P6Connection connection


passthru

protected Statement passthru


statementQuery

protected String statementQuery

Constructor Details

P6Statement

public P6Statement(P6Factory factory,
                   Statement statement,
                   P6Connection conn)

Method Details

addBatch

public void addBatch(String p0)
            throws SQLException


cancel

public void cancel()
            throws SQLException


clearBatch

public void clearBatch()
            throws SQLException


clearWarnings

public void clearWarnings()
            throws SQLException


close

public void close()
            throws SQLException


execute

public boolean execute(String p0)
            throws SQLException


execute

public boolean execute(String p0,
                       int p1)
            throws SQLException


execute

public boolean execute(String p0,
                       p1[] )
            throws SQLException


execute

public boolean execute(String p0,
                       p1[] )
            throws SQLException


executeBatch

public int[] executeBatch()
            throws SQLException


executeQuery

public ResultSet executeQuery(String p0)
            throws SQLException


executeUpdate

public int executeUpdate(String p0)
            throws SQLException


executeUpdate

public int executeUpdate(String p0,
                         int p1)
            throws SQLException


executeUpdate

public int executeUpdate(String p0,
                         p1[] )
            throws SQLException


executeUpdate

public int executeUpdate(String p0,
                         p1[] )
            throws SQLException


getConnection

public Connection getConnection()
            throws SQLException


getFetchDirection

public int getFetchDirection()
            throws SQLException


getFetchSize

public int getFetchSize()
            throws SQLException


getGeneratedKeys

public ResultSet getGeneratedKeys()
            throws SQLException


getJDBC

public Statement getJDBC()
Returns the underlying JDBC object (in this case, a java.sql.Statement)

Returns:
the wrapped JDBC object


getMaxFieldSize

public int getMaxFieldSize()
            throws SQLException


getMaxRows

public int getMaxRows()
            throws SQLException


getMoreResults

public boolean getMoreResults()
            throws SQLException


getMoreResults

public boolean getMoreResults(int p0)
            throws SQLException


getQueryTimeout

public int getQueryTimeout()
            throws SQLException


getResultSet

public ResultSet getResultSet()
            throws SQLException


getResultSetConcurrency

public int getResultSetConcurrency()
            throws SQLException


getResultSetHoldability

public int getResultSetHoldability()
            throws SQLException


getResultSetType

public int getResultSetType()
            throws SQLException


getUpdateCount

public int getUpdateCount()
            throws SQLException


getWarnings

public SQLWarning getWarnings()
            throws SQLException


setCursorName

public void setCursorName(String p0)
            throws SQLException


setEscapeProcessing

public void setEscapeProcessing(boolean p0)
            throws SQLException


setFetchDirection

public void setFetchDirection(int p0)
            throws SQLException


setFetchSize

public void setFetchSize(int p0)
            throws SQLException


setMaxFieldSize

public void setMaxFieldSize(int p0)
            throws SQLException


setMaxRows

public void setMaxRows(int p0)
            throws SQLException


setQueryTimeout

public void setQueryTimeout(int p0)
            throws SQLException