public class DatabaseBacked extends AbstractSdxObject implements org.apache.avalon.framework.service.Serviceable
SdxObject.ConfigurationNode| Modifier and Type | Field and Description |
|---|---|
protected Database |
_database |
static java.lang.String |
CLASS_NAME_SUFFIX |
java.lang.String |
DATABASE_DIR_NAME |
protected org.apache.avalon.framework.configuration.Configuration |
databaseConf |
protected java.io.File |
dbLocation |
protected java.lang.String |
dbPath |
static java.lang.String |
DEFAULT_DATABASE_TYPE |
_configuration, _context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitializedDEFAULT_ENCODING| Constructor and Description |
|---|
DatabaseBacked() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration) |
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration,
boolean useMetadata) |
protected java.lang.String |
getClassNameSuffix()
Sub classes should element this method to return their class name suffix for SAX output
|
Database |
getDatabase() |
void |
init() |
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
|
configureDescription, contextualize, enableLogging, getBaseAttributes, getConfiguration, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, service, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, toSAX, verifyConfigurationResourcespublic static final java.lang.String DEFAULT_DATABASE_TYPE
public static final java.lang.String CLASS_NAME_SUFFIX
public java.lang.String DATABASE_DIR_NAME
protected Database _database
protected java.lang.String dbPath
protected java.io.File dbLocation
protected org.apache.avalon.framework.configuration.Configuration databaseConf
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableconfigure in class AbstractSdxObjectorg.apache.avalon.framework.configuration.ConfigurationExceptionpublic void configure(org.apache.avalon.framework.configuration.Configuration configuration,
boolean useMetadata)
throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationExceptionpublic void init()
throws SDXException
SDXExceptionpublic Database getDatabase()
protected java.lang.String getClassNameSuffix()
AbstractSdxObjectgetClassNameSuffix in class AbstractSdxObjectprotected boolean initToSax()
AbstractSdxObjectinitToSax in class AbstractSdxObjectprotected void initVolatileObjectsToSax()
initVolatileObjectsToSax in class AbstractSdxObjectCopyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.