org.apache.avalon.excalibur.datasource
クラス JdbcConnectionFactory

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLogEnabled
        |
        +--org.apache.avalon.excalibur.datasource.JdbcConnectionFactory
すべての実装インタフェース:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.logger.LogEnabled, ObjectFactory

public class JdbcConnectionFactory
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements ObjectFactory

The Factory implementation for JdbcConnections.

導入されたバージョン:
4.0
バージョン:
CVS $Revision: 1.10 $ $Date: 2002/01/26 16:58:06 $
作成者:
Berin Loritsch

コンストラクタの概要
JdbcConnectionFactory(java.lang.String url, java.lang.String username, java.lang.String password, boolean autoCommit, boolean oradb)
          推奨されていません。 Use the new constructor with the keepalive and connectionClass specified.
JdbcConnectionFactory(java.lang.String url, java.lang.String username, java.lang.String password, boolean autoCommit, boolean oradb, java.lang.String connectionClass)
           
JdbcConnectionFactory(java.lang.String url, java.lang.String username, java.lang.String password, boolean autoCommit, java.lang.String keepAlive, java.lang.String connectionClass)
          Creates and configures a new JdbcConnectionFactory.
 
メソッドの概要
 void decommission(java.lang.Object object)
           
 java.lang.Class getCreatedClass()
           
 java.lang.Object newInstance()
           
 
クラス org.apache.avalon.framework.logger.AbstractLogEnabled から継承したメソッド
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

JdbcConnectionFactory

public JdbcConnectionFactory(java.lang.String url,
                             java.lang.String username,
                             java.lang.String password,
                             boolean autoCommit,
                             boolean oradb)
推奨されていません。 Use the new constructor with the keepalive and connectionClass specified.


JdbcConnectionFactory

public JdbcConnectionFactory(java.lang.String url,
                             java.lang.String username,
                             java.lang.String password,
                             boolean autoCommit,
                             boolean oradb,
                             java.lang.String connectionClass)

JdbcConnectionFactory

public JdbcConnectionFactory(java.lang.String url,
                             java.lang.String username,
                             java.lang.String password,
                             boolean autoCommit,
                             java.lang.String keepAlive,
                             java.lang.String connectionClass)
Creates and configures a new JdbcConnectionFactory.
パラメータ:
url - full JDBC database url.
username - username to use when connecting to the database.
password - password to use when connecting to the database.
autoCommit - true if connections to the database should operate with auto commit enabled.
keepAlive - a query which will be used to check the statis of a connection after it has been idle. A null value will cause the keep alive feature to be disabled.
connectionClass - class of connections created by the factory.
メソッドの詳細

newInstance

public java.lang.Object newInstance()
                             throws java.lang.Exception
定義:
インタフェース ObjectFactory 内の newInstance

getCreatedClass

public java.lang.Class getCreatedClass()
定義:
インタフェース ObjectFactory 内の getCreatedClass

decommission

public void decommission(java.lang.Object object)
                  throws java.lang.Exception
定義:
インタフェース ObjectFactory 内の decommission


"Copyright ? 2001 Apache Jakarta Project. All Rights Reserved."