| org.apache.cocoon.components.source.impl.AbstractConfigurableSourceInspector org.apache.cocoon.components.source.impl.AbstractConfigurableSourceDescriptor org.apache.cocoon.components.source.impl.SimpleJdbcSourceDescriptor
SimpleJdbcSourceDescriptor | public class SimpleJdbcSourceDescriptor extends AbstractConfigurableSourceDescriptor implements SourceDescriptor,Serviceable,Configurable,Initializable,ThreadSafe(Code) | | Simple SourceDescriptor implementation that can stores
properties over JDBC.
The descriptor is to be configured with the name of a datasource that
contains a table with the following scheme:
CREATE TABLE SOURCEPROPS(
SOURCE VARCHAR NOT NULL,
NAMESPACE VARCHAR NOT NULL,
NAME VARCHAR NOT NULL,
VALUE VARCHAR NOT NULL,
CONSTRAINT SYS_CT_11 UNIQUE(SOURCE,NAMESPACE,NAME))
The implementation will attempt to connect to the EventAware cache in
order to notify it during changes. If it can't find the EventAware cache
sources that are described by this SourceDescriptor will NOT be cacheable.
version: $Id: SimpleJdbcSourceDescriptor.java 433543 2006-08-22 06:22:54Z crossley $ |
SimpleJdbcSourceDescriptor | public SimpleJdbcSourceDescriptor()(Code) | | |
configure | public void configure(Configuration configuration) throws ConfigurationException(Code) | | Configuration options:
- element
property (multiple,required)
- define a property that this store should handle.
- element
datasource (single,optional,[cocoondb])
- the name of the excalibur datasource to use.
|
doRemoveSourceProperty | public void doRemoveSourceProperty(Source source, String namespace, String name) throws SourceException(Code) | | |
doSetSourceProperty | public void doSetSourceProperty(Source source, SourceProperty property) throws SourceException(Code) | | |
getSourceProperties | public SourceProperty[] getSourceProperties(Source source) throws SourceException(Code) | | |
getValidity | public SourceValidity getValidity(Source source)(Code) | | |
service | public void service(ServiceManager manager) throws ServiceException(Code) | | |
Methods inherited from org.apache.cocoon.components.source.impl.AbstractConfigurableSourceDescriptor | abstract protected void doRemoveSourceProperty(Source source, String namespace, String name) throws SourceException(Code)(Java Doc) abstract protected void doSetSourceProperty(Source source, SourceProperty property) throws SourceException(Code)(Java Doc) final public void removeSourceProperty(Source source, String namespace, String name) throws SourceException(Code)(Java Doc) final public void setSourceProperty(Source source, SourceProperty property) throws SourceException(Code)(Java Doc)
|
|
|