fr.gouv.culture.sdx.utils.database
Class JDBCDatabase
java.lang.Object
fr.gouv.culture.sdx.utils.AbstractSdxObject
fr.gouv.culture.sdx.utils.rdbms.JDBC
fr.gouv.culture.sdx.utils.rdbms.DataSourceComponentBacked
fr.gouv.culture.sdx.utils.database.AbstractJDBCDatabase
fr.gouv.culture.sdx.utils.database.JDBCDatabase
- All Implemented Interfaces:
- org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, Database, Describable, Encodable, Identifiable, Localizable, org.apache.avalon.framework.logger.LogEnabled, Saveable, SdxObject, org.apache.avalon.framework.service.Serviceable, org.apache.excalibur.xml.sax.XMLizable
- Direct Known Subclasses:
- MYSQLDatabase, ORACLEDatabase, POSTGRESQLDatabase
- 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.
Fields inherited from class fr.gouv.culture.sdx.utils.rdbms.JDBC |
tableName |
Fields inherited from class fr.gouv.culture.sdx.utils.AbstractSdxObject |
_configuration, _context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitialized |
Method Summary |
java.lang.String |
getDatabaseDirectoryName()
Not needed |
protected java.lang.String |
getEntriesWithLimitQuery(long offset,
long number)
Implementation of statement with a limit parameter |
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 |
optimize()
Not needed |
Methods inherited from class fr.gouv.culture.sdx.utils.database.AbstractJDBCDatabase |
addProperty, backup, configure, createIndicies, delete, delete, empty, entityExists, getAllEntitiesQuery, getClassNameSuffix, getConnection, getCreateIndiciesQuery, getDeleteAllQuery, getEntities, getEntities, getEntity, getEntity, getEntityDeleteQuery, getEntityGetQuery, getEntityIds, getProperties, getPropertyAddQuery, getPropertyRemoveQueryWithId, getPropertyRemoveQueryWithoutId, getPropertyValue, getPropertyValues, getTableCreationQuery, getWildcardSearchToken, init, releaseConnection, removeProperty, removeProperty, restore, save, search, search, searchWithParams, size, update |
Methods inherited from class fr.gouv.culture.sdx.utils.AbstractSdxObject |
configureDescription, contextualize, enableLogging, getBaseAttributes, getConfiguration, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, 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 |
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.excalibur.xml.sax.XMLizable |
toSAX |
JDBCDatabase
public JDBCDatabase()
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
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
- Overrides:
initVolatileObjectsToSax
in class JDBC
getEntriesWithLimitQuery
protected java.lang.String getEntriesWithLimitQuery(long offset,
long number)
- Description copied from class:
AbstractJDBCDatabase
- Implementation of statement with a limit parameter
- Specified by:
getEntriesWithLimitQuery
in class AbstractJDBCDatabase
- Parameters:
offset
- number
-
- Returns:
- the query
- See Also:
JDBC implementation
Should not be called
Copyright © 2000-2003 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.