org.apache.avalon.excalibur.datasource
クラス AbstractJdbcConnection
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLogEnabled
|
+--org.apache.avalon.excalibur.datasource.AbstractJdbcConnection
- すべての実装インタフェース:
- java.sql.Connection, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.LogEnabled, Poolable, Recyclable
- 直系の既知のサブクラス:
- JdbcConnection
- public abstract class AbstractJdbcConnection
- extends org.apache.avalon.framework.logger.AbstractLogEnabled
- implements java.sql.Connection, Recyclable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable
The Connection object used in conjunction with the JdbcDataSource
object.
TODO: Implement a configurable closed end Pool, where the Connection
acts like JDBC PooledConnections work. That means we can limit the
total number of Connection objects that are created.
- 導入されたバージョン:
- 4.1
- バージョン:
- CVS $Revision: 1.11 $ $Date: 2002/01/26 16:57:42 $
- 作成者:
- Berin Loritsch
インタフェース java.sql.Connection から継承したフィールド |
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
クラス org.apache.avalon.framework.logger.AbstractLogEnabled から継承したメソッド |
getLogger, setupLogger, setupLogger, setupLogger |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
インタフェース java.sql.Connection から継承したメソッド |
clearWarnings, commit, createStatement, createStatement, getAutoCommit, getCatalog, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareStatement, prepareStatement, rollback, setAutoCommit, setCatalog, setReadOnly, setTransactionIsolation, setTypeMap |
m_connection
protected java.sql.Connection m_connection
m_pool
protected Pool m_pool
m_testStatement
protected java.sql.PreparedStatement m_testStatement
m_testException
protected java.sql.SQLException m_testException
m_lastUsed
protected long m_lastUsed
AbstractJdbcConnection
public AbstractJdbcConnection(java.sql.Connection connection,
boolean oradb)
- 推奨されていません。 Use the version with keepAlive specified
AbstractJdbcConnection
public AbstractJdbcConnection(java.sql.Connection connection,
java.lang.String keepAlive)
- パラメータ:
connection
- a driver specific JDBC connection to be wrapped.keepAlive
- a query which will be used to check the statis of the connection after it
has been idle. A null value will cause the keep alive feature to
be disabled.
initialize
public void initialize()
- 定義:
- インタフェース
org.apache.avalon.framework.activity.Initializable
内の initialize
enableLogging
public void enableLogging(org.apache.avalon.framework.logger.Logger log)
- オーバーライド:
- クラス
org.apache.avalon.framework.logger.AbstractLogEnabled
内の enableLogging
setPool
protected void setPool(Pool pool)
recycle
public void recycle()
- インタフェース
Recyclable
の記述:
- This method should be implemented to remove all costly resources
in object. These resources can be object references, database connections,
threads, etc. What is categorised as "costly" resources is determined on
a case by case analysis.
- 定義:
- インタフェース
Recyclable
内の recycle
isClosed
public boolean isClosed()
throws java.sql.SQLException
- 定義:
- インタフェース
java.sql.Connection
内の isClosed
close
public void close()
throws java.sql.SQLException
- 定義:
- インタフェース
java.sql.Connection
内の close
dispose
public void dispose()
- 定義:
- インタフェース
org.apache.avalon.framework.activity.Disposable
内の dispose
"Copyright ? 2001 Apache Jakarta Project. All Rights Reserved."