| org.apache.cocoon.generation.AbstractGenerator org.apache.cocoon.generation.ServiceableGenerator org.apache.cocoon.generation.XMLDBGenerator
XMLDBGenerator | public class XMLDBGenerator extends ServiceableGenerator implements CacheableProcessingComponent,Configurable,Initializable(Code) | | This class implements generation of XML documents from a
XML:DB compliant database.
It must to be configured as follows:
<driver>
(a valid DB:XML compliant driver)
</driver>
<base>
xmldb:yourdriver://host/an/optional/path/to/be/prepended
</base>
NOTE: the driver can be any DB:XML compliant driver (although this
component has been tested only with
dbXML, and the trailing
slash in the base tag is important!
author: Gianugo Rabellino version: CVS $Id: XMLDBGenerator.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public void | configure(Configuration conf) Configure the component. | public void | generate() Parse the requested URI, connect to the XML:DB database
and fetch the requested resource. | public java.io.Serializable | getKey() | public SourceValidity | getValidity() | public void | initialize() Initialize the component getting a database instance. | public void | recycle() Recycle the component, keep only the configuration variables
and the database instance for reuse. | public void | setup(SourceResolver resolver, Map objectModel, String src, Parameters par) |
collection | protected Collection collection(Code) | | |
database | protected Database database(Code) | | |
xmlResource | protected XMLResource xmlResource(Code) | | |
configure | public void configure(Configuration conf) throws ConfigurationException(Code) | | Configure the component. This class is expecting a configuration
like the following one:
<driver>org.dbxml.client.xmldb.DatabaseImpl</driver>
<base>xmldb:dbxml:///db/</base>
NOTE: the driver can be any DB:XML compliant driver (although this
component has been tested only with
dbXML, and the trailing
slash in the base tag is important!
exception: ConfigurationException - (configuration invalid or missing) |
getValidity | public SourceValidity getValidity()(Code) | | The component isn't cached (yet)
|
initialize | public void initialize() throws Exception(Code) | | Initialize the component getting a database instance.
exception: Exception - if an error occurs |
recycle | public void recycle()(Code) | | Recycle the component, keep only the configuration variables
and the database instance for reuse.
|
Fields inherited from org.apache.cocoon.generation.ServiceableGenerator | protected ServiceManager manager(Code)(Java Doc)
|
Methods inherited from org.apache.cocoon.generation.ServiceableGenerator | public void dispose()(Code)(Java Doc) public void service(ServiceManager manager) throws ServiceException(Code)(Java Doc)
|
|
|