com.p6spy.engine.spy

Interface P6Factory

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
ArraygetArray(Array real, P6Statement statement, String preparedQuery, String query)
CallableStatementgetCallableStatement(CallableStatement real, P6Connection conn, String p0)
ConnectiongetConnection(Connection conn)
DatabaseMetaDatagetDatabaseMetaData(DatabaseMetaData real, P6Connection conn)
P6OptionsgetOptions()
PreparedStatementgetPreparedStatement(PreparedStatement real, P6Connection conn, String p0)
ResultSetgetResultSet(ResultSet real, P6Statement statement, String preparedQuery, String query)
ResultSetMetaDatagetResultSetMetaData(ResultSetMetaData real)
StatementgetStatement(Statement real, P6Connection conn)

Method Detail

getArray

public Array getArray(Array real, P6Statement statement, String preparedQuery, String query)

getCallableStatement

public CallableStatement getCallableStatement(CallableStatement real, P6Connection conn, String p0)

getConnection

public Connection getConnection(Connection conn)

getDatabaseMetaData

public DatabaseMetaData getDatabaseMetaData(DatabaseMetaData real, P6Connection conn)

getOptions

public P6Options getOptions()

getPreparedStatement

public PreparedStatement getPreparedStatement(PreparedStatement real, P6Connection conn, String p0)

getResultSet

public ResultSet getResultSet(ResultSet real, P6Statement statement, String preparedQuery, String query)

getResultSetMetaData

public ResultSetMetaData getResultSetMetaData(ResultSetMetaData real)

getStatement

public Statement getStatement(Statement real, P6Connection conn)