fr.gouv.culture.sdx.repository
Class HSQLRepository

java.lang.Object
  extended byfr.gouv.culture.sdx.utils.SdxObjectImpl
      extended byfr.gouv.culture.sdx.utils.rdbms.JDBC
          extended byfr.gouv.culture.sdx.utils.rdbms.DataSourceComponentBacked
              extended byfr.gouv.culture.sdx.repository.AbstractDataSourceComponentBackedRepository
                  extended byfr.gouv.culture.sdx.repository.JDBCRepository
                      extended byfr.gouv.culture.sdx.repository.HSQLRepository
All Implemented Interfaces:
org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, Repository, SdxObject

public class HSQLRepository
extends JDBCRepository

The same as JDBCRespository, but the method for the table creation query is overridden.


Nested Class Summary
 
Nested classes inherited from class fr.gouv.culture.sdx.utils.rdbms.JDBC
JDBC.QueryExecutor, JDBC.Template
 
Field Summary
 
Fields inherited from class fr.gouv.culture.sdx.repository.JDBCRepository
FIELD_DATA, NO_SPECIFIC_TYPE, PARAM_INDEX_FIELD_DATA_ORIGINAL
 
Fields inherited from class fr.gouv.culture.sdx.repository.AbstractDataSourceComponentBackedRepository
FIELD_ID, isDefault, PARAM_INDEX_FIELD_ID, props
 
Fields inherited from class fr.gouv.culture.sdx.utils.rdbms.DataSourceComponentBacked
ATTRIBUTE_DSI, dbSelector, dsi, manager
 
Fields inherited from class fr.gouv.culture.sdx.utils.rdbms.JDBC
id, tableName
 
Fields inherited from class fr.gouv.culture.sdx.utils.SdxObjectImpl
encoding, logger
 
Fields inherited from interface fr.gouv.culture.sdx.repository.Repository
ATTRIBUTE_DEFAULT, ATTRIBUTE_ID, ATTRIBUTE_REF, ATTRIBUTE_TYPE, CLASS_NAME_SUFFIX, ELEMENT_NAME_REPOSITORIES, ELEMENT_NAME_REPOSITORY, PACKAGE_QUALNAME
 
Constructor Summary
HSQLRepository()
           
 
Method Summary
protected  java.lang.String getTableCreationQuery()
          Returns an SQL query that could create the table.
protected  java.lang.String getTableName()
          Returns a table name used to store the repository's data.
 void init()
          Initializes the repository.
 
Methods inherited from class fr.gouv.culture.sdx.repository.JDBCRepository
add, compose, configure, delete, empty, get, getConnection, getDeleteAllQuery, getDocumentAddQuery, getDocumentDeleteQuery, lists, openStream, releaseConnection, size, toSAX
 
Methods inherited from class fr.gouv.culture.sdx.repository.AbstractDataSourceComponentBackedRepository
checkConnection, checkEncoding, exists, getDocumentGetQuery, getId, isDefault, loadBaseConfiguration, optimize, setIsDefault, setProperties
 
Methods inherited from class fr.gouv.culture.sdx.utils.rdbms.DataSourceComponentBacked
getDataSourceComponent, releaseDataSourceComponent
 
Methods inherited from class fr.gouv.culture.sdx.utils.rdbms.JDBC
createTable, handleUnsupportedTokens
 
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 org.apache.avalon.framework.logger.LogEnabled
enableLogging
 

Constructor Detail

HSQLRepository

public HSQLRepository()
Method Detail

getTableCreationQuery

protected java.lang.String getTableCreationQuery()
Returns an SQL query that could create the table.

This query should not have any parameter.

Overrides:
getTableCreationQuery in class JDBCRepository
Returns:
The query.

init

public void init()
          throws SDXException
Initializes the repository. If there are no tables in the database, we create the necessary table

Specified by:
init in interface Repository
Overrides:
init in class JDBCRepository
Throws:
SDXException

getTableName

protected java.lang.String getTableName()
Description copied from class: JDBC
Returns a table name used to store the repository's data.

Overrides:
getTableName in class JDBC
Returns:
The table name should be appropriately escaped for table building.


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