org.ametys.plugins.datainclusion.datasources.components
Class DataSourceGenerator

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.xml.AbstractXMLProducer
          extended by org.apache.cocoon.generation.AbstractGenerator
              extended by org.apache.cocoon.generation.ServiceableGenerator
                  extended by org.ametys.plugins.datainclusion.datasources.components.DataSourceGenerator
All Implemented Interfaces:
Poolable, Recyclable, Disposable, Component, LogEnabled, Serviceable, Generator, SitemapModelComponent, XMLProducer
Direct Known Subclasses:
DataSourcesGenerator

public class DataSourceGenerator
extends ServiceableGenerator

Data Source generator.


Field Summary
protected  QueryDao _queryDao
          Query DAO.
 
Fields inherited from class org.apache.cocoon.generation.ServiceableGenerator
manager
 
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
 
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
 
Fields inherited from interface org.apache.cocoon.generation.Generator
ROLE
 
Constructor Summary
DataSourceGenerator()
           
 
Method Summary
 void generate()
           
static void saxDataSource(ContentHandler contentHandler, DataSource dataSource)
          Sax a Data Source.
static void saxDataSource(ContentHandler contentHandler, DataSource dataSource, Collection<Query> queries)
          Sax a Data Source.
 void service(ServiceManager serviceManager)
           
 
Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
dispose
 
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setup
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
 
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
 
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
 

Field Detail

_queryDao

protected QueryDao _queryDao
Query DAO.

Constructor Detail

DataSourceGenerator

public DataSourceGenerator()
Method Detail

service

public void service(ServiceManager serviceManager)
             throws ServiceException
Specified by:
service in interface Serviceable
Overrides:
service in class ServiceableGenerator
Throws:
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.