com.p6spy.engine.spy
Interface P6Factory

All Known Implementing Classes:
P6CoreFactory

public interface P6Factory

p6factory exists to make extending the spy core easier when making a new module. Since there are so many methods that return a NEW object of some type (connection, etc) either you would be forced to overload them all, or we could use this factory method to handle that situation. not perfect, but should make extending and maintaining the code far easier.


Method Summary
 Array getArray(Array real, P6Statement statement, String preparedQuery, String query)
           
 CallableStatement getCallableStatement(CallableStatement real, P6Connection conn, String p0)
           
 Connection getConnection(Connection conn)
           
 DatabaseMetaData getDatabaseMetaData(DatabaseMetaData real, P6Connection conn)
           
 P6Options getOptions()
           
 PreparedStatement getPreparedStatement(PreparedStatement real, P6Connection conn, String p0)
           
 ResultSet getResultSet(ResultSet real, P6Statement statement, String preparedQuery, String query)
           
 ResultSetMetaData getResultSetMetaData(ResultSetMetaData real)
           
 Statement getStatement(Statement real, P6Connection conn)
           
 

Method Detail

getOptions

public P6Options getOptions()
                     throws SQLException
Throws:
SQLException

getConnection

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

getPreparedStatement

public PreparedStatement getPreparedStatement(PreparedStatement real,
                                              P6Connection conn,
                                              String p0)
                                       throws SQLException
Throws:
SQLException

getStatement

public Statement getStatement(Statement real,
                              P6Connection conn)
                       throws SQLException
Throws:
SQLException

getCallableStatement

public CallableStatement getCallableStatement(CallableStatement real,
                                              P6Connection conn,
                                              String p0)
                                       throws SQLException
Throws:
SQLException

getDatabaseMetaData

public DatabaseMetaData getDatabaseMetaData(DatabaseMetaData real,
                                            P6Connection conn)
                                     throws SQLException
Throws:
SQLException

getResultSet

public ResultSet getResultSet(ResultSet real,
                              P6Statement statement,
                              String preparedQuery,
                              String query)
                       throws SQLException
Throws:
SQLException

getArray

public Array getArray(Array real,
                      P6Statement statement,
                      String preparedQuery,
                      String query)
               throws SQLException
Throws:
SQLException

getResultSetMetaData

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