net.sf.infrared.bootstrap.jdbc.p6spy
Class InfraREDP6Factory

java.lang.Object
  extended bycom.p6spy.engine.spy.P6CoreFactory
      extended bynet.sf.infrared.bootstrap.jdbc.p6spy.InfraREDP6Factory
All Implemented Interfaces:
com.p6spy.engine.spy.P6Factory

public class InfraREDP6Factory
extends com.p6spy.engine.spy.P6CoreFactory

Provide an implementation of the Factory class to plug in our wrapper class implementation inplace of P6Spy. For the classes in which we are not interested return the real JDBC class instead of the P6 wrapper. This is to minimize the performance overhead.


Constructor Summary
InfraREDP6Factory()
           
 
Method Summary
 Array getArray(Array real, com.p6spy.engine.spy.P6Statement statement, String preparedQuery, String query)
           
 CallableStatement getCallableStatement(CallableStatement real, com.p6spy.engine.spy.P6Connection conn, String p0)
           
 Connection getConnection(Connection conn)
           
 DatabaseMetaData getDatabaseMetaData(DatabaseMetaData real, com.p6spy.engine.spy.P6Connection conn)
           
 PreparedStatement getPreparedStatement(PreparedStatement real, com.p6spy.engine.spy.P6Connection conn, String p0)
           
 ResultSet getResultSet(ResultSet real, com.p6spy.engine.spy.P6Statement statement, String preparedQuery, String query)
           
 ResultSetMetaData getResultSetMetaData(ResultSetMetaData real)
           
 Statement getStatement(Statement statement, com.p6spy.engine.spy.P6Connection conn)
           
 
Methods inherited from class com.p6spy.engine.spy.P6CoreFactory
getOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfraREDP6Factory

public InfraREDP6Factory()
Method Detail

getConnection

public Connection getConnection(Connection conn)
                         throws SQLException
Throws:
SQLException

getPreparedStatement

public PreparedStatement getPreparedStatement(PreparedStatement real,
                                              com.p6spy.engine.spy.P6Connection conn,
                                              String p0)
                                       throws SQLException
Throws:
SQLException

getStatement

public Statement getStatement(Statement statement,
                              com.p6spy.engine.spy.P6Connection conn)
                       throws SQLException
Throws:
SQLException

getResultSet

public ResultSet getResultSet(ResultSet real,
                              com.p6spy.engine.spy.P6Statement statement,
                              String preparedQuery,
                              String query)
                       throws SQLException
Throws:
SQLException

getArray

public Array getArray(Array real,
                      com.p6spy.engine.spy.P6Statement statement,
                      String preparedQuery,
                      String query)
               throws SQLException
Throws:
SQLException

getResultSetMetaData

public ResultSetMetaData getResultSetMetaData(ResultSetMetaData real)
                                       throws SQLException
Throws:
SQLException

getCallableStatement

public CallableStatement getCallableStatement(CallableStatement real,
                                              com.p6spy.engine.spy.P6Connection conn,
                                              String p0)
                                       throws SQLException
Throws:
SQLException

getDatabaseMetaData

public DatabaseMetaData getDatabaseMetaData(DatabaseMetaData real,
                                            com.p6spy.engine.spy.P6Connection conn)
                                     throws SQLException
Throws:
SQLException