org.apache.commons.dbutils
クラス ProxyFactory

java.lang.Object
  拡張org.apache.commons.dbutils.ProxyFactory

public class ProxyFactory
extends Object

JDBCインターフェースのプロキシ実装です。 これは、JDBC 2 とJDBC 3 インターフェース間における非互換性を回避します。 このクラスはスレッドセーフです。

Creates proxy implementations of JDBC interfaces. This avoids incompatibilities between the JDBC 2 and JDBC 3 interfaces. This class is thread safe.

作成者:
David Graham
関連項目:
Proxy, InvocationHandler
翻訳者:
小川 環
校正者:
日置 聡
翻訳状況:
校正者校正中
翻訳更新日:
2003/12/22

コンストラクタの概要
protected ProxyFactory()
          ProxyFactory のサブクラスのみを対象とした protected スコープのコンストラクタ。
 
メソッドの概要
 CallableStatement createCallableStatement(InvocationHandler handler)
          CallableStatement のプロキシオブジェクトを新規作成します。
 Connection createConnection(InvocationHandler handler)
          Connection のプロキシオブジェクトを新規作成します。
 Driver createDriver(InvocationHandler handler)
          Driver のプロキシオブジェクトを新規作成します。
 PreparedStatement createPreparedStatement(InvocationHandler handler)
          PreparedStatement のプロキシオブジェクトを新規作成します。
 ResultSet createResultSet(InvocationHandler handler)
          ResultSet のプロキシオブジェクトを新規作成します。
 ResultSetMetaData createResultSetMetaData(InvocationHandler handler)
          ResultSetMetaData のプロキシオブジェクトを新規作成します。
 Statement createStatement(InvocationHandler handler)
          Statement のプロキシオブジェクトを新規作成します。
static ProxyFactory instance()
          このクラスのSingletonインスタンスを返します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ProxyFactory

protected ProxyFactory()
ProxyFactory のサブクラスのみを対象とした protected スコープのコンストラクタ。
Protected constructor for ProxyFactory subclasses to use.

メソッドの詳細

instance

public static ProxyFactory instance()
このクラスのSingletonインスタンスを返します。
Returns the Singleton instance of this class.


createCallableStatement

public CallableStatement createCallableStatement(InvocationHandler handler)
CallableStatement のプロキシオブジェクトを新規作成します。
Creates a new proxy CallableStatement object.

パラメータ:
handler - メソッドの呼び出しを捕捉/オーバーライドしたハンドラ。
The handler that intercepts/overrides method calls.

createConnection

public Connection createConnection(InvocationHandler handler)
Connection のプロキシオブジェクトを新規作成します。
Creates a new proxy Connection object.

パラメータ:
handler - メソッドの呼び出しを捕捉/オーバーライドしたハンドラ。
The handler that intercepts/overrides method calls.

createDriver

public Driver createDriver(InvocationHandler handler)
Driver のプロキシオブジェクトを新規作成します。
Creates a new proxy Driver object.

パラメータ:
handler - メソッドの呼び出しを捕捉/オーバーライドしたハンドラ。
The handler that intercepts/overrides method calls.

createPreparedStatement

public PreparedStatement createPreparedStatement(InvocationHandler handler)
PreparedStatement のプロキシオブジェクトを新規作成します。
Creates a new proxy PreparedStatement object.

パラメータ:
handler - メソッドの呼び出しを捕捉/オーバーライドしたハンドラ。
The handler that intercepts/overrides method calls.

createResultSet

public ResultSet createResultSet(InvocationHandler handler)
ResultSet のプロキシオブジェクトを新規作成します。
Creates a new proxy ResultSet object.

パラメータ:
handler - メソッドの呼び出しを捕捉/オーバーライドしたハンドラ。
The handler that intercepts/overrides method calls.

createResultSetMetaData

public ResultSetMetaData createResultSetMetaData(InvocationHandler handler)
ResultSetMetaData のプロキシオブジェクトを新規作成します。
Creates a new proxy ResultSetMetaData object.

パラメータ:
handler - メソッドの呼び出しを捕捉/オーバーライドしたハンドラ。
The handler that intercepts/overrides method calls.

createStatement

public Statement createStatement(InvocationHandler handler)
Statement のプロキシオブジェクトを新規作成します。
Creates a new proxy Statement object.

パラメータ:
handler - メソッドの呼び出しを捕捉/オーバーライドしたハンドラ。
The handler that intercepts/overrides method calls.


このドキュメントは、Ja-Jakartaにより訳されました。 コメントがある場合は report@jajakarta.orgまでお願いします。
Translated into Japanese by jajakarta.org. The original page is here.
Copyright (c) 2002-2003 - Apache Software Foundation