Package org.ametys.odf.ose.generators
Class ExportInitGenerator
- 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.odf.ose.generators.ExportInitGenerator
 
 
 
 
 
 
- 
- All Implemented Interfaces:
 Poolable,Recyclable,Disposable,Component,LogEnabled,Serviceable,Generator,SitemapModelComponent,XMLProducer
public class ExportInitGenerator extends ServiceableGenerator
The generator which generates the SQL initialization file for Ametys connector. 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected OSEExportExtensionPoint_oseExportEPThe OSE export extension point- 
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 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ExportInitGenerator() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String_queryText(ParameterizableQuery query)Gets the text representation of the query to SAXprotected List<ParameterizableQuery>_retrieveQueries()Retrieve the queries to SAXprotected List<ParameterizableQuery>_retrieveQueriesFromExtensions()Retrieve the queries fromOSEExportExtensionPointto SAXprotected List<ParameterizableQuery>_retrieveStaticQueries()Retrieve the static queries (hardcoded) to SAXprotected void_saxQueries(List<ParameterizableQuery> queries)SAX queriesvoidgenerate()voidservice(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
- 
_oseExportEP
protected OSEExportExtensionPoint _oseExportEP
The OSE export extension point 
 - 
 
- 
Constructor Detail
- 
ExportInitGenerator
public ExportInitGenerator()
 
 - 
 
- 
Method Detail
- 
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
 servicein interfaceServiceable- Overrides:
 servicein classServiceableGenerator- Throws:
 ServiceException
 
- 
generate
public void generate() throws IOException, SAXException, ProcessingException
 
- 
_retrieveQueries
protected List<ParameterizableQuery> _retrieveQueries()
Retrieve the queries to SAX- Returns:
 - the queries to SAX
 
 
- 
_retrieveStaticQueries
protected List<ParameterizableQuery> _retrieveStaticQueries()
Retrieve the static queries (hardcoded) to SAX- Returns:
 - the static queries (hardcoded) to SAX
 
 
- 
_retrieveQueriesFromExtensions
protected List<ParameterizableQuery> _retrieveQueriesFromExtensions()
Retrieve the queries fromOSEExportExtensionPointto SAX- Returns:
 - the queries from 
OSEExportExtensionPointto SAX 
 
- 
_saxQueries
protected void _saxQueries(List<ParameterizableQuery> queries) throws SAXException
SAX queries- Parameters:
 queries- The queries to SAX- Throws:
 SAXException- Any SAX exception
 
- 
_queryText
protected String _queryText(ParameterizableQuery query)
Gets the text representation of the query to SAX- Parameters:
 query- The query to SAX- Returns:
 - The string representation of the query
 
 
 - 
 
 -