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

java.lang.Object
  extended byfr.gouv.culture.sdx.utils.SdxObjectImpl
      extended byfr.gouv.culture.sdx.utils.database.AbstractDatabase
All Implemented Interfaces:
org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, Database, org.apache.avalon.framework.logger.LogEnabled, SdxObject

public abstract class AbstractDatabase
extends SdxObjectImpl
implements Database

An abstract representation of a database


Field Summary
protected  java.util.Hashtable props
           
 
Fields inherited from class fr.gouv.culture.sdx.utils.SdxObjectImpl
encoding, logger
 
Fields inherited from interface fr.gouv.culture.sdx.utils.database.Database
DATABASE_DIR_PATH, SEARCH_MODE_AND, SEARCH_MODE_NOT, SEARCH_MODE_OR
 
Constructor Summary
AbstractDatabase()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
           
 void optimize()
          Utility method for database maintenance, normally used to optimize indices of Lucene based repositories It is the responsibility of the Repository to ensure that unnecessary optimizations are not performed when this method is called.
 void setProperties(java.util.Hashtable props)
          Provides a list of properties of this class which can be used at configuration and/or initialization time
 
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.database.Database
addProperty, delete, empty, entityExists, getConnection, getDatabaseDirectoryName, getEntities, getEntity, getId, getProperties, getPropertyValue, getPropertyValues, getWildcardSearchToken, init, releaseConnection, removeProperty, removeProperty, save, search, setId, size, update
 
Methods inherited from interface fr.gouv.culture.sdx.utils.SdxObject
setEncoding
 
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled
enableLogging
 
Methods inherited from interface org.apache.avalon.framework.component.Composable
compose
 

Field Detail

props

protected java.util.Hashtable props
Constructor Detail

AbstractDatabase

public AbstractDatabase()
Method Detail

setProperties

public void setProperties(java.util.Hashtable props)
Description copied from interface: Database
Provides a list of properties of this class which can be used at configuration and/or initialization time

Specified by:
setProperties in interface Database
Parameters:
props -

optimize

public void optimize()
              throws SDXException
Description copied from interface: Database
Utility method for database maintenance, normally used to optimize indices of Lucene based repositories It is the responsibility of the Repository to ensure that unnecessary optimizations are not performed when this method is called.

Specified by:
optimize in interface Database
Throws:
SDXException

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Throws:
org.apache.avalon.framework.configuration.ConfigurationException


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