fr.gouv.culture.sdx.utils.database
Class JDBCDatabaseConnection
java.lang.Object
fr.gouv.culture.sdx.utils.SdxObjectImpl
fr.gouv.culture.sdx.utils.database.SQLDatabaseConnection
fr.gouv.culture.sdx.utils.database.JDBCDatabaseConnection
- All Implemented Interfaces:
- DatabaseConnection, org.apache.avalon.framework.logger.LogEnabled, SdxObject
- public class JDBCDatabaseConnection
- extends SQLDatabaseConnection
Created by IntelliJ IDEA.
User: Rasik Pandey
Date: 2 f�vr. 2004
Time: 13:56:03
To change this template use Options | File Templates.
Constructor Summary |
JDBCDatabaseConnection(java.sql.Connection conn)
DataSourceComponent fucntionality not desired and should be handled by caller |
JDBCDatabaseConnection(org.apache.avalon.excalibur.datasource.DataSourceComponent dataSource)
Establishes the data source component, a simple wrapper |
Method Summary |
org.apache.avalon.excalibur.datasource.DataSourceComponent |
getDataSource()
Returns the datasource component from which this connection was derived |
protected void |
releaseSqlConnection()
Releases the SQL Connection to the datasource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled |
enableLogging |
JDBCDatabaseConnection
public JDBCDatabaseConnection(java.sql.Connection conn)
- DataSourceComponent fucntionality not desired and should be handled by caller
JDBCDatabaseConnection
public JDBCDatabaseConnection(org.apache.avalon.excalibur.datasource.DataSourceComponent dataSource)
throws java.sql.SQLException
- Establishes the data source component, a simple wrapper
- Parameters:
dataSource
-
- Throws:
java.sql.SQLException
getDataSource
public org.apache.avalon.excalibur.datasource.DataSourceComponent getDataSource()
- Returns the datasource component from which this connection was derived
releaseSqlConnection
protected void releaseSqlConnection()
throws SDXException
- Releases the SQL Connection to the datasource
- Throws:
SDXException
Copyright © 2000-2004 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.