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

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.utils.database.AbstractJDBCDatabase
                  extended byfr.gouv.culture.sdx.utils.database.JDBCDatabase
All Implemented Interfaces:
org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, Database, org.apache.avalon.framework.logger.LogEnabled, SdxObject
Direct Known Subclasses:
MYSQLDatabase

public class JDBCDatabase
extends AbstractJDBCDatabase

Created by IntelliJ IDEA. User: Rasik Pandey Date: 2 f�vr. 2004 Time: 14:51:22 To change this template use Options | File Templates.


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.utils.database.AbstractJDBCDatabase
_searchModes, COLUMN_PARAM_INDEX_FIELD_ID, COLUMN_PARAM_INDEX_FIELD_PROPERTY_NAME, COLUMN_PARAM_INDEX_FIELD_PROPERTY_VALUE, entityCache, FIELD_ID, FIELD_PROPERTY_NAME, FIELD_PROPERTY_VALUE, 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.utils.database.Database
DATABASE_DIR_PATH, SEARCH_MODE_AND, SEARCH_MODE_NOT, SEARCH_MODE_OR
 
Constructor Summary
JDBCDatabase()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
           
 DatabaseConnection getConnection()
           
 java.lang.String getDatabaseDirectoryName()
          Not needed
 void optimize()
          Not needed
 void releaseConnection(DatabaseConnection conn)
           
 
Methods inherited from class fr.gouv.culture.sdx.utils.database.AbstractJDBCDatabase
addEntityToCache, addProperty, createIndicies, delete, delete, deleteEntityFromCache, empty, entityExists, getAllEntitiesQuery, getCreateIndiciesQuery, getDeleteAllQuery, getEntities, getEntities, getEntity, getEntity, getEntityDeleteQuery, getEntityFromCache, getEntityGetQuery, getEntityIds, getId, getProperties, getPropertyAddQuery, getPropertyRemoveQueryWithId, getPropertyRemoveQueryWithoutId, getPropertyValue, getPropertyValues, getTableCreationQuery, getWildcardSearchToken, init, isEntityInCache, refreshEntityCache, removeProperty, removeProperty, save, search, search, searchWithParams, setId, setProperties, size, update
 
Methods inherited from class fr.gouv.culture.sdx.utils.rdbms.DataSourceComponentBacked
compose, getDataSourceComponent, releaseDataSourceComponent
 
Methods inherited from class fr.gouv.culture.sdx.utils.rdbms.JDBC
createTable, getTableName, 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 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
 

Constructor Detail

JDBCDatabase

public JDBCDatabase()
Method Detail

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
Overrides:
configure in class AbstractJDBCDatabase
Throws:
org.apache.avalon.framework.configuration.ConfigurationException

getConnection

public DatabaseConnection getConnection()
                                 throws SDXException
Throws:
SDXException

releaseConnection

public void releaseConnection(DatabaseConnection conn)
                       throws SDXException
Throws:
SDXException

getDatabaseDirectoryName

public java.lang.String getDatabaseDirectoryName()
Not needed

Returns:
A directory name (not a full path)

optimize

public void optimize()
              throws SDXException
Not needed

Throws:
SDXException


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