com.p6spy.engine.spy
Interface P6Factory
- P6CoreFactory, P6LogFactory, P6OutageFactory
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.
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)
|
getArray
public Array getArray(Array real,
P6Statement statement,
String preparedQuery,
String query)
throws SQLException
getCallableStatement
public CallableStatement getCallableStatement(CallableStatement real,
P6Connection conn,
String p0)
throws SQLException
getConnection
public Connection getConnection(Connection conn)
throws SQLException
getDatabaseMetaData
public DatabaseMetaData getDatabaseMetaData(DatabaseMetaData real,
P6Connection conn)
throws SQLException
getOptions
public P6Options getOptions()
throws SQLException
getPreparedStatement
public PreparedStatement getPreparedStatement(PreparedStatement real,
P6Connection conn,
String p0)
throws SQLException
getResultSet
public ResultSet getResultSet(ResultSet real,
P6Statement statement,
String preparedQuery,
String query)
throws SQLException
getResultSetMetaData
public ResultSetMetaData getResultSetMetaData(ResultSetMetaData real)
throws SQLException
getStatement
public Statement getStatement(Statement real,
P6Connection conn)
throws SQLException