public abstract class AbstractRepositoryConnection extends AbstractSdxObject implements RepositoryConnection
SdxObject.ConfigurationNode
_configuration, _context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitialized
CLASS_NAME_SUFFIX
DEFAULT_ENCODING
Constructor and Description |
---|
AbstractRepositoryConnection() |
Modifier and Type | Method and Description |
---|---|
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.
|
configure, configureDescription, contextualize, enableLogging, getBaseAttributes, getConfiguration, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, service, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, toSAX, verifyConfigurationResources
public void optimize() throws SDXException
optimize
in interface RepositoryConnection
SDXException
public void setAutoCommit(boolean autoCommit) throws SDXException
setAutoCommit
in interface RepositoryConnection
autoCommit
- true enables auto-commit ; false disables auto-commit.SDXException
public void rollback() throws SDXException
rollback
in interface RepositoryConnection
SDXException
public void commit() throws SDXException
commit
in interface RepositoryConnection
SDXException
protected java.lang.String getClassNameSuffix()
AbstractSdxObject
getClassNameSuffix
in class AbstractSdxObject
protected boolean initToSax()
AbstractSdxObject
initToSax
in class AbstractSdxObject
protected void initVolatileObjectsToSax()
initVolatileObjectsToSax
in class AbstractSdxObject
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.