|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.tool.hbm2x.AbstractExporter
org.hibernate.tool.hbm2x.GenericExporter
org.hibernate.tool.hbm2x.POJOExporter
org.codehaus.mojo.appfuse.exporter.AppfuseExporter
public class AppfuseExporter
This method provides a sample on how to extend the pojo processor when processing new objects from the hbm.xml into jaa objects using freemarker.
| Field Summary | |
|---|---|
static org.apache.commons.logging.Log |
LOG
A static logger for the class. |
| Fields inherited from class org.hibernate.tool.hbm2x.AbstractExporter |
|---|
log, templatePaths |
| Constructor Summary | |
|---|---|
AppfuseExporter()
Creates a new AppfuseExporter object. |
|
AppfuseExporter(org.hibernate.cfg.Configuration inConfiguration,
java.io.File inOutputDirectory)
Creates a new AppfuseExporter object. |
|
| Method Summary | |
|---|---|
protected void |
exportComponent(java.util.Map inAdditionalContext,
org.hibernate.tool.hbm2x.pojo.POJOClass inElement)
This method determines if the components should be exported or not. |
protected void |
setupContext()
This method will set up the processing context for this object such as template and file pattern processing information. |
| Methods inherited from class org.hibernate.tool.hbm2x.POJOExporter |
|---|
getName, init |
| Methods inherited from class org.hibernate.tool.hbm2x.GenericExporter |
|---|
doStart, exportPersistentClass, exportPOJO, getClassNameForFile, getFilePattern, getPackageNameForFile, getTemplateName, resolveFilename, setFilePattern, setForEach, setTemplateName |
| Methods inherited from class org.hibernate.tool.hbm2x.AbstractExporter |
|---|
cleanUpContext, getArtifactCollector, getCfg2HbmTool, getCfg2JavaTool, getConfiguration, getFileForClassName, getOutputDirectory, getProperties, getTemplateHelper, getTemplatePath, getTemplatePaths, setArtifactCollector, setConfiguration, setOutputDirectory, setProperties, setTemplateHelper, setTemplatePath, setupTemplates, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log LOG
| Constructor Detail |
|---|
public AppfuseExporter(org.hibernate.cfg.Configuration inConfiguration,
java.io.File inOutputDirectory)
inConfiguration - The configuration object containing useful configuration information.inOutputDirectory - The directory to output the results into.public AppfuseExporter()
| Method Detail |
|---|
protected void setupContext()
setupContext in class org.hibernate.tool.hbm2x.POJOExporter
protected void exportComponent(java.util.Map inAdditionalContext,
org.hibernate.tool.hbm2x.pojo.POJOClass inElement)
exportComponent in class org.hibernate.tool.hbm2x.GenericExporterinAdditionalContext - Any additional context objects used for processing.inElement - The object to process.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||