public abstract class DataSourceComponentBacked extends JDBC implements org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.configuration.Configurable
JDBC.QueryExecutor, JDBC.TemplateSdxObject.ConfigurationNode| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
ATTRIBUTE_DSI
String representation of the "repository" attribute name "dsi", for dataSourceIdentifier (name of connection in cocoon.xconf).
|
protected org.apache.avalon.framework.service.ServiceSelector |
dbSelector
The component selector.
|
protected java.lang.String |
dsi
The data source _identifier.
|
_configuration, _context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitializedDEFAULT_ENCODING| Constructor and Description |
|---|
DataSourceComponentBacked() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration) |
protected void |
finalize() |
protected org.apache.avalon.excalibur.datasource.DataSourceComponent |
getDataSourceComponent()
Get's the datasource service from Cocoon using the dbSelector and the dsi
class variables
|
protected void |
releaseDataSourceComponent(org.apache.avalon.excalibur.datasource.DataSourceComponent dsc)
Releases the data source service using the dbSelector
|
void |
service(org.apache.avalon.framework.service.ServiceManager manager)
Compose the object so that we get the
Services we need from the
ServiceManager. |
createTable, getTableCreationQuery, getTableName, handleUnsupportedTokens, initVolatileObjectsToSaxconfigureDescription, contextualize, enableLogging, getBaseAttributes, getClassNameSuffix, getConfiguration, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, initToSax, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, toSAX, verifyConfigurationResourcesprotected java.lang.String dsi
protected org.apache.avalon.framework.service.ServiceSelector dbSelector
protected final java.lang.String ATTRIBUTE_DSI
public void service(org.apache.avalon.framework.service.ServiceManager manager)
throws org.apache.avalon.framework.service.ServiceException
Services we need from the
ServiceManager.service in interface org.apache.avalon.framework.service.Serviceableservice in class AbstractSdxObjectmanager - The service manager from Cocoon that allow us to acquire a database selector service.org.apache.avalon.framework.service.ServiceExceptionpublic 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.ConfigurationExceptionprotected org.apache.avalon.excalibur.datasource.DataSourceComponent getDataSourceComponent()
throws org.apache.avalon.framework.service.ServiceException
org.apache.avalon.framework.service.ServiceExceptionprotected void releaseDataSourceComponent(org.apache.avalon.excalibur.datasource.DataSourceComponent dsc)
dsc - The service to releaseprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.ThrowableCopyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.