fr.gouv.culture.sdx.utils.database
Class JDBCDatabaseConnection

java.lang.Object
  extended byfr.gouv.culture.sdx.utils.SdxObjectImpl
      extended byfr.gouv.culture.sdx.utils.database.SQLDatabaseConnection
          extended byfr.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.


Field Summary
 
Fields inherited from class fr.gouv.culture.sdx.utils.SdxObjectImpl
encoding, logger
 
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 fr.gouv.culture.sdx.utils.database.SQLDatabaseConnection
close, commit, getConnection, optimize, rollback, setAutoCommit
 
Methods inherited from class fr.gouv.culture.sdx.utils.SdxObjectImpl
enableLogging, getChildLogger, setEncoding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.gouv.culture.sdx.utils.SdxObject
setEncoding
 
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled
enableLogging
 

Constructor Detail

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
Method Detail

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.