public abstract class DataSourceComponentBacked extends JDBC implements org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.configuration.Configurable
JDBC.QueryExecutor, JDBC.Template
SdxObject.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, isToSaxInitialized
DEFAULT_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
Service s we need from the
ServiceManager . |
createTable, getTableCreationQuery, getTableName, handleUnsupportedTokens, initVolatileObjectsToSax
configureDescription, contextualize, enableLogging, getBaseAttributes, getClassNameSuffix, getConfiguration, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, initToSax, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, toSAX, verifyConfigurationResources
protected 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
Service
s we need from the
ServiceManager
.service
in interface org.apache.avalon.framework.service.Serviceable
service
in class AbstractSdxObject
manager
- The service manager from Cocoon that allow us to acquire a database selector service.org.apache.avalon.framework.service.ServiceException
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.Configurable
configure
in class AbstractSdxObject
org.apache.avalon.framework.configuration.ConfigurationException
protected org.apache.avalon.excalibur.datasource.DataSourceComponent getDataSourceComponent() throws org.apache.avalon.framework.service.ServiceException
org.apache.avalon.framework.service.ServiceException
protected 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.Object
java.lang.Throwable
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.