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
Modifier and TypeFieldDescriptionprotected OSEExportExtensionPoint
The OSE export extension pointFields 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
-
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 fromOSEExportExtensionPoint
to SAXprotected List<ParameterizableQuery>
Retrieve the static queries (hardcoded) to SAXprotected void
_saxQueries
(List<ParameterizableQuery> queries) SAX queriesvoid
generate()
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 Details
-
_oseExportEP
The OSE export extension point
-
-
Constructor Details
-
ExportInitGenerator
public ExportInitGenerator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in 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 fromOSEExportExtensionPoint
to SAX- Returns:
- the queries from
OSEExportExtensionPoint
to 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
-