org.apache.avalon.excalibur.datasource
クラス JdbcConnection
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLogEnabled
|
+--org.apache.avalon.excalibur.datasource.AbstractJdbcConnection
|
+--org.apache.avalon.excalibur.datasource.JdbcConnection
- すべての実装インタフェース:
- java.sql.Connection, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.LogEnabled, Poolable, Recyclable
- public class JdbcConnection
- extends AbstractJdbcConnection
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.0
- バージョン:
- CVS $Revision: 1.6 $ $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 |
コンストラクタの概要 |
JdbcConnection(java.sql.Connection connection,
java.lang.String keepAlive)
|
クラス org.apache.avalon.framework.logger.AbstractLogEnabled から継承したメソッド |
getLogger, setupLogger, setupLogger, setupLogger |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JdbcConnection
public JdbcConnection(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.
createStatement
public final java.sql.Statement createStatement()
throws java.sql.SQLException
prepareStatement
public final java.sql.PreparedStatement prepareStatement(java.lang.String sql)
throws java.sql.SQLException
prepareCall
public final java.sql.CallableStatement prepareCall(java.lang.String sql)
throws java.sql.SQLException
nativeSQL
public final java.lang.String nativeSQL(java.lang.String sql)
throws java.sql.SQLException
setAutoCommit
public final void setAutoCommit(boolean autoCommit)
throws java.sql.SQLException
getAutoCommit
public final boolean getAutoCommit()
throws java.sql.SQLException
commit
public final void commit()
throws java.sql.SQLException
rollback
public final void rollback()
throws java.sql.SQLException
getMetaData
public final java.sql.DatabaseMetaData getMetaData()
throws java.sql.SQLException
setReadOnly
public final void setReadOnly(boolean readOnly)
throws java.sql.SQLException
isReadOnly
public final boolean isReadOnly()
throws java.sql.SQLException
setCatalog
public final void setCatalog(java.lang.String catalog)
throws java.sql.SQLException
getCatalog
public final java.lang.String getCatalog()
throws java.sql.SQLException
setTransactionIsolation
public final void setTransactionIsolation(int level)
throws java.sql.SQLException
getTransactionIsolation
public final int getTransactionIsolation()
throws java.sql.SQLException
getWarnings
public final java.sql.SQLWarning getWarnings()
throws java.sql.SQLException
clearWarnings
public final void clearWarnings()
throws java.sql.SQLException
createStatement
public final java.sql.Statement createStatement(int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
prepareStatement
public final java.sql.PreparedStatement prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
prepareCall
public final java.sql.CallableStatement prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
getTypeMap
public final java.util.Map getTypeMap()
throws java.sql.SQLException
setTypeMap
public final void setTypeMap(java.util.Map map)
throws java.sql.SQLException
"Copyright ? 2001 Apache Jakarta Project. All Rights Reserved."