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 |
java.sql.Array |
getArray(java.sql.Array real,
P6Statement statement,
java.lang.String preparedQuery,
java.lang.String query)
|
java.sql.CallableStatement |
getCallableStatement(java.sql.CallableStatement real,
P6Connection conn,
java.lang.String p0)
|
java.sql.Connection |
getConnection(java.sql.Connection conn)
|
java.sql.DatabaseMetaData |
getDatabaseMetaData(java.sql.DatabaseMetaData real,
P6Connection conn)
|
P6Options |
getOptions()
|
java.sql.PreparedStatement |
getPreparedStatement(java.sql.PreparedStatement real,
P6Connection conn,
java.lang.String p0)
|
java.sql.ResultSet |
getResultSet(java.sql.ResultSet real,
P6Statement statement,
java.lang.String preparedQuery,
java.lang.String query)
|
java.sql.ResultSetMetaData |
getResultSetMetaData(java.sql.ResultSetMetaData real)
|
java.sql.Statement |
getStatement(java.sql.Statement real,
P6Connection conn)
|
getOptions
public P6Options getOptions()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getConnection
public java.sql.Connection getConnection(java.sql.Connection conn)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getPreparedStatement
public java.sql.PreparedStatement getPreparedStatement(java.sql.PreparedStatement real,
P6Connection conn,
java.lang.String p0)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getStatement
public java.sql.Statement getStatement(java.sql.Statement real,
P6Connection conn)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getCallableStatement
public java.sql.CallableStatement getCallableStatement(java.sql.CallableStatement real,
P6Connection conn,
java.lang.String p0)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getDatabaseMetaData
public java.sql.DatabaseMetaData getDatabaseMetaData(java.sql.DatabaseMetaData real,
P6Connection conn)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getResultSet
public java.sql.ResultSet getResultSet(java.sql.ResultSet real,
P6Statement statement,
java.lang.String preparedQuery,
java.lang.String query)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getArray
public java.sql.Array getArray(java.sql.Array real,
P6Statement statement,
java.lang.String preparedQuery,
java.lang.String query)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getResultSetMetaData
public java.sql.ResultSetMetaData getResultSetMetaData(java.sql.ResultSetMetaData real)
throws java.sql.SQLException
- Throws:
java.sql.SQLException