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
The generator which generates the SQL initialization file for Ametys connector.
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OSEExportExtensionPointThe OSE export extension pointFields inherited from class org.apache.cocoon.generation.ServiceableGenerator
managerFields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, sourceFields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected String_queryText(ParameterizableQuery query) Gets the text representation of the query to SAXprotected List<ParameterizableQuery>Retrieve the queries to SAXprotected List<ParameterizableQuery>Retrieve the queries fromOSEExportExtensionPointto SAXprotected List<ParameterizableQuery>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
disposeMethods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setupMethods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandlerMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer 
- 
Field Details
- 
_oseExportEP
The OSE export extension point 
 - 
 - 
Constructor Details
- 
ExportInitGenerator
public ExportInitGenerator() 
 - 
 - 
Method Details
- 
service
- Specified by:
 servicein interfaceServiceable- Overrides:
 servicein classServiceableGenerator- Throws:
 ServiceException
 - 
generate
 - 
_retrieveQueries
Retrieve the queries to SAX- Returns:
 - the queries to SAX
 
 - 
_retrieveStaticQueries
Retrieve the static queries (hardcoded) to SAX- Returns:
 - the static queries (hardcoded) to SAX
 
 - 
_retrieveQueriesFromExtensions
Retrieve the queries fromOSEExportExtensionPointto SAX- Returns:
 - the queries from 
OSEExportExtensionPointto SAX 
 - 
_saxQueries
SAX queries- Parameters:
 queries- The queries to SAX- Throws:
 SAXException- Any SAX exception
 - 
_queryText
Gets the text representation of the query to SAX- Parameters:
 query- The query to SAX- Returns:
 - The string representation of the query
 
 
 -