org.apache.log4j.db
クラス DataSourceConnectionSource
java.lang.Object
org.apache.log4j.spi.ComponentBase
org.apache.log4j.db.ConnectionSourceSkeleton
org.apache.log4j.db.DataSourceConnectionSource
- すべての実装されたインタフェース:
- ConnectionSource, org.apache.log4j.spi.Component, org.apache.log4j.spi.OptionHandler, org.apache.log4j.xml.UnrecognizedElementHandler
public class DataSourceConnectionSource
- extends ConnectionSourceSkeleton
- implements org.apache.log4j.xml.UnrecognizedElementHandler
The DataSourceConnectionSource is an implementation of ConnectionSource
that obtains the Connection in the recommended JDBC manner based on
a DataSource.
- 作成者:
- Ray DeCampo, Ceki Gülcü
| クラス org.apache.log4j.spi.ComponentBase から継承されたフィールド |
repository |
| クラス org.apache.log4j.spi.ComponentBase から継承されたメソッド |
getLogger, getLoggerRepository, getNonFloodingLogger, resetErrorCount, setLoggerRepository |
| クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| インタフェース org.apache.log4j.spi.Component から継承されたメソッド |
setLoggerRepository |
DataSourceConnectionSource
public DataSourceConnectionSource()
activateOptions
public void activateOptions()
- 定義:
- インタフェース
org.apache.log4j.spi.OptionHandler 内の activateOptions
getConnection
public java.sql.Connection getConnection()
throws java.sql.SQLException
- インタフェース
ConnectionSource の記述:
- Obtain a
Connection for use. The client is
responsible for closing the Connection when it is no
longer required.
- 定義:
- インタフェース
ConnectionSource 内の getConnection
- 例外:
java.sql.SQLException - if a Connection could not be
obtained- 関連項目:
ConnectionSource.getConnection()
getDataSource
public javax.sql.DataSource getDataSource()
setDataSource
public void setDataSource(javax.sql.DataSource dataSource)
parseUnrecognizedElement
public boolean parseUnrecognizedElement(org.w3c.dom.Element element,
java.util.Properties props)
throws java.lang.Exception
- 定義:
- インタフェース
org.apache.log4j.xml.UnrecognizedElementHandler 内の parseUnrecognizedElement
- 例外:
java.lang.Exception
Copyright © 2010 Apache Software Foundation. All Rights Reserved.