Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

    java.lang.Object
      fr.gouv.culture.sdx.utils.AbstractSdxObject
          fr.gouv.culture.sdx.utils.database.SQLDatabaseConnection
              fr.gouv.culture.sdx.utils.database.JDBCDatabaseConnection

All Implemented Interfaces:
  DatabaseConnection, Describable, Encodable, Identifiable, Localizable, SdxObject, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, org.apache.excalibur.xml.sax.XMLizable

    public class JDBCDatabaseConnection

extends SQLDatabaseConnection

Nested Class Summary

Nested classes/interfaces inherited from interface fr.gouv.culture.sdx.utils.SdxObject
`SdxObject.ConfigurationNode`

Field Summary

Fields inherited from class fr.gouv.culture.sdx.utils.AbstractSdxObject
`_configuration, _context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitialized`

Fields inherited from interface fr.gouv.culture.sdx.utils.database.DatabaseConnection
`CLASS_NAME_SUFFIX`

Fields inherited from interface fr.gouv.culture.sdx.utils.Encodable
`DEFAULT_ENCODING`

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, getClassNameSuffix, getConnection, initToSax, initVolatileObjectsToSax, optimize, rollback, setAutoCommit`

Methods inherited from class fr.gouv.culture.sdx.utils.AbstractSdxObject
`configure, configureDescription, contextualize, enableLogging, getBaseAttributes, getConfiguration, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, service, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, toSAX, verifyConfigurationResources`

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
`getLog`

Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled
`enableLogging`

Methods inherited from interface org.apache.avalon.framework.context.Contextualizable
`contextualize`

Methods inherited from interface org.apache.avalon.framework.service.Serviceable
`service`

Methods inherited from interface org.apache.avalon.framework.configuration.Configurable
`configure`

Methods inherited from interface fr.gouv.culture.sdx.utils.Identifiable
`getId, setId`

Methods inherited from interface fr.gouv.culture.sdx.utils.Describable
`getDescription, setDescription`

Methods inherited from interface fr.gouv.culture.sdx.utils.Encodable
`getEncoding, setEncoding`

Methods inherited from interface fr.gouv.culture.sdx.utils.Localizable
`getLocale, getXmlLang, setLocale, setXmlLang`

Methods inherited from interface org.apache.excalibur.xml.sax.XMLizable
`toSAX`

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`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.