fr.gouv.culture.sdx.utils.rdbms.hsql
Class HSQLDB

java.lang.Object
  extended by fr.gouv.culture.sdx.utils.AbstractSdxObject
      extended by fr.gouv.culture.sdx.utils.rdbms.hsql.HSQLDB
All Implemented Interfaces:
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 HSQLDB
extends AbstractSdxObject


Nested Class Summary
 
Nested classes/interfaces inherited from interface fr.gouv.culture.sdx.utils.SdxObject
SdxObject.ConfigurationNode
 
Field Summary
protected  java.util.Hashtable _registeredTableNames
           
static java.lang.String CLASS_NAME_SUFFIX
           
protected  java.lang.String dbDirPath
           
protected  java.lang.String HSQLDB_DRIVER
           
protected  java.lang.String PROTOCOL_PREFIX
           
 
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.Encodable
DEFAULT_ENCODING
 
Constructor Summary
HSQLDB()
           
 
Method Summary
protected  void finalize()
           
protected  java.lang.String getClassNameSuffix()
          Sub classes should element this method to return their class name suffix for SAX output
 java.lang.String getDbDirPath()
           
 java.sql.Connection getSQLConnection()
           
protected  boolean initToSax()
          Init the LinkedHashMap _xmlizable_objects with the objects in order to describ them in XML
protected  void initVolatileObjectsToSax()
          Init the LinkedHashMap _xmlizable_volatile_objects with the objects in order to describ them in XML Some objects need to be refresh each time a toSAX is called
 void registerTableName(java.lang.String tableName)
           
 void setDbDirPath(java.lang.String dbDirPath)
           
 
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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAME_SUFFIX

public static final java.lang.String CLASS_NAME_SUFFIX
See Also:
Constant Field Values

HSQLDB_DRIVER

protected final java.lang.String HSQLDB_DRIVER
See Also:
Constant Field Values

PROTOCOL_PREFIX

protected final java.lang.String PROTOCOL_PREFIX
See Also:
Constant Field Values

dbDirPath

protected java.lang.String dbDirPath

_registeredTableNames

protected java.util.Hashtable _registeredTableNames
Constructor Detail

HSQLDB

public HSQLDB()
       throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException
Method Detail

registerTableName

public void registerTableName(java.lang.String tableName)
                       throws SDXException
Throws:
SDXException

setDbDirPath

public void setDbDirPath(java.lang.String dbDirPath)
                  throws SDXException
Throws:
SDXException

getDbDirPath

public java.lang.String getDbDirPath()

getSQLConnection

public java.sql.Connection getSQLConnection()
                                     throws SDXException
Throws:
SDXException

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

getClassNameSuffix

protected java.lang.String getClassNameSuffix()
Description copied from class: AbstractSdxObject
Sub classes should element this method to return their class name suffix for SAX output

Specified by:
getClassNameSuffix in class AbstractSdxObject

initToSax

protected boolean initToSax()
Description copied from class: AbstractSdxObject
Init the LinkedHashMap _xmlizable_objects with the objects in order to describ them in XML

Specified by:
initToSax in class AbstractSdxObject

initVolatileObjectsToSax

protected void initVolatileObjectsToSax()
Init the LinkedHashMap _xmlizable_volatile_objects with the objects in order to describ them in XML Some objects need to be refresh each time a toSAX is called

Specified by:
initVolatileObjectsToSax in class AbstractSdxObject


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