org.ametys.plugins.datainclusion.datasources.components
Class DataSourceGenerator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.generation.AbstractGenerator
org.apache.cocoon.generation.ServiceableGenerator
org.ametys.plugins.datainclusion.datasources.components.DataSourceGenerator
- All Implemented Interfaces:
- org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.excalibur.pool.Recyclable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, Generator, SitemapModelComponent, XMLProducer
- Direct Known Subclasses:
- DataSourcesGenerator
public class DataSourceGenerator
- extends ServiceableGenerator
Data Source generator.
| Fields inherited from interface org.apache.cocoon.generation.Generator |
ROLE |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_queryDao
protected QueryDao _queryDao
- Query DAO.
DataSourceGenerator
public DataSourceGenerator()
service
public void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
throws org.apache.avalon.framework.service.ServiceException
- Specified by:
service in interface org.apache.avalon.framework.service.Serviceable- Overrides:
service in class ServiceableGenerator
- Throws:
org.apache.avalon.framework.service.ServiceException
generate
public void generate()
throws IOException,
SAXException,
ProcessingException
- Throws:
IOException
SAXException
ProcessingException
saxDataSource
public static void saxDataSource(ContentHandler contentHandler,
DataSource dataSource)
throws IOException,
SAXException,
ProcessingException
- Sax a Data Source.
- Parameters:
contentHandler - the content handler to sax into.dataSource - the Data Source.
- Throws:
IOException
SAXException
ProcessingException
saxDataSource
public static void saxDataSource(ContentHandler contentHandler,
DataSource dataSource,
Collection<Query> queries)
throws IOException,
SAXException,
ProcessingException
- Sax a Data Source.
- Parameters:
contentHandler - the content handler to sax into.dataSource - the Data Source.queries -
- Throws:
IOException
SAXException
ProcessingException
Copyright © 2010 Anyware Services. All Rights Reserved.