org.ametys.plugins.datainclusion.queries.components
Class QueryGenerator

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.queries.components.QueryGenerator
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:
QueriesGenerator

public class QueryGenerator
extends ServiceableGenerator

Query 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
QueryGenerator()
           
 
Method Summary
 void generate()
           
static void saxQuery(ContentHandler contentHandler, Query query, boolean saxDataSource)
          Sax a Query.
 void service(org.apache.avalon.framework.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

QueryGenerator

public QueryGenerator()
Method Detail

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

saxQuery

public static void saxQuery(ContentHandler contentHandler,
                            Query query,
                            boolean saxDataSource)
                     throws IOException,
                            SAXException,
                            ProcessingException
Sax a Query.

Parameters:
contentHandler - the content handler to send the SAX events to.
query - the Query.
saxDataSource -
Throws:
IOException
SAXException
ProcessingException


Copyright © 2010 Anyware Services. All Rights Reserved.