fr.gouv.culture.sdx.repository
Class AbstractRepositoryConnection
java.lang.Object
fr.gouv.culture.sdx.utils.AbstractSdxObject
fr.gouv.culture.sdx.repository.AbstractRepositoryConnection
- All Implemented Interfaces:
- RepositoryConnection, 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
- Direct Known Subclasses:
- JDBCRepositoryConnection, LuceneRepositoryConnection
public abstract class AbstractRepositoryConnection
- extends AbstractSdxObject
- implements RepositoryConnection
Fields inherited from class fr.gouv.culture.sdx.utils.AbstractSdxObject |
_configuration, _context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitialized |
Method Summary |
void |
commit()
Commit all operation done with this active connection. |
protected java.lang.String |
getClassNameSuffix()
Sub classes should element this method to return their class name suffix for SAX output |
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()
Can do optimization of a Repository if needed |
void |
rollback()
Undo all operations done with this connection. |
void |
setAutoCommit(boolean autoCommit)
Sets this connection in autocommit mode or not. |
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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled |
enableLogging |
AbstractRepositoryConnection
public AbstractRepositoryConnection()
optimize
public void optimize()
throws SDXException
- Can do optimization of a Repository if needed
- Specified by:
optimize
in interface RepositoryConnection
- Throws:
SDXException
setAutoCommit
public void setAutoCommit(boolean autoCommit)
throws SDXException
- Sets this connection in autocommit mode or not.
- Specified by:
setAutoCommit
in interface RepositoryConnection
- Parameters:
autoCommit
- true enables auto-commit ; false disables auto-commit.
- Throws:
SDXException
rollback
public void rollback()
throws SDXException
- Undo all operations done with this connection.
- Specified by:
rollback
in interface RepositoryConnection
- Throws:
SDXException
commit
public void commit()
throws SDXException
- Commit all operation done with this active connection.
- Specified by:
commit
in interface RepositoryConnection
- Throws:
SDXException
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.