|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.dbutils.ProxyFactory
Creates proxy implementations of JDBC interfaces. This avoids incompatibilities between the JDBC 2 and JDBC 3 interfaces. This class is thread safe.
Proxy,
InvocationHandler| Constructor Summary | |
protected |
ProxyFactory()
Protected constructor for ProxyFactory subclasses to use. |
| Method Summary | |
java.sql.CallableStatement |
createCallableStatement(java.lang.reflect.InvocationHandler handler)
Creates a new proxy CallableStatement object. |
java.sql.Connection |
createConnection(java.lang.reflect.InvocationHandler handler)
Creates a new proxy Connection object. |
java.sql.Driver |
createDriver(java.lang.reflect.InvocationHandler handler)
Creates a new proxy Driver object. |
java.sql.PreparedStatement |
createPreparedStatement(java.lang.reflect.InvocationHandler handler)
Creates a new proxy PreparedStatement object. |
java.sql.ResultSet |
createResultSet(java.lang.reflect.InvocationHandler handler)
Creates a new proxy ResultSet object. |
java.sql.ResultSetMetaData |
createResultSetMetaData(java.lang.reflect.InvocationHandler handler)
Creates a new proxy ResultSetMetaData object. |
java.sql.Statement |
createStatement(java.lang.reflect.InvocationHandler handler)
Creates a new proxy Statement object. |
static ProxyFactory |
instance()
Returns the Singleton instance of this class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected ProxyFactory()
| Method Detail |
public static ProxyFactory instance()
public java.sql.CallableStatement createCallableStatement(java.lang.reflect.InvocationHandler handler)
CallableStatement object.
handler - The handler that intercepts/overrides method calls.
public java.sql.Connection createConnection(java.lang.reflect.InvocationHandler handler)
Connection object.
handler - The handler that intercepts/overrides method calls.
public java.sql.Driver createDriver(java.lang.reflect.InvocationHandler handler)
Driver object.
handler - The handler that intercepts/overrides method calls.
public java.sql.PreparedStatement createPreparedStatement(java.lang.reflect.InvocationHandler handler)
PreparedStatement object.
handler - The handler that intercepts/overrides method calls.
public java.sql.ResultSet createResultSet(java.lang.reflect.InvocationHandler handler)
ResultSet object.
handler - The handler that intercepts/overrides method calls.
public java.sql.ResultSetMetaData createResultSetMetaData(java.lang.reflect.InvocationHandler handler)
ResultSetMetaData object.
handler - The handler that intercepts/overrides method calls.
public java.sql.Statement createStatement(java.lang.reflect.InvocationHandler handler)
Statement object.
handler - The handler that intercepts/overrides method calls.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||