org.hibernate.tool.hbm2x
Class HibernateMappingExporter

java.lang.Object
  extended by org.hibernate.tool.hbm2x.AbstractExporter
      extended by org.hibernate.tool.hbm2x.GenericExporter
          extended by org.hibernate.tool.hbm2x.HibernateMappingExporter
All Implemented Interfaces:
Exporter

public class HibernateMappingExporter
extends GenericExporter

Author:
david and max

Field Summary
protected  HibernateMappingGlobalSettings globalSettings
           
 
Fields inherited from class org.hibernate.tool.hbm2x.AbstractExporter
log, templatePaths
 
Constructor Summary
HibernateMappingExporter()
           
HibernateMappingExporter(org.hibernate.cfg.Configuration cfg, File outputdir)
           
 
Method Summary
 void doStart()
           
protected  void exportComponent(Map additionalContext, POJOClass element)
           
protected  String getClassNameForFile(POJOClass element)
           
 String getName()
           
protected  String getPackageNameForFile(POJOClass element)
           
protected  void init()
           
 void setGlobalSettings(HibernateMappingGlobalSettings hgs)
           
protected  void setupContext()
          Setup the context variables used by the exporter.
 
Methods inherited from class org.hibernate.tool.hbm2x.GenericExporter
exportPersistentClass, exportPOJO, getFilePattern, 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

globalSettings

protected HibernateMappingGlobalSettings globalSettings
Constructor Detail

HibernateMappingExporter

public HibernateMappingExporter(org.hibernate.cfg.Configuration cfg,
                                File outputdir)

HibernateMappingExporter

public HibernateMappingExporter()
Method Detail

setupContext

protected void setupContext()
Description copied from class: AbstractExporter
Setup the context variables used by the exporter. Subclasses should call super.setupContext() to ensure all needed variables are in the context.

Overrides:
setupContext in class AbstractExporter

setGlobalSettings

public void setGlobalSettings(HibernateMappingGlobalSettings hgs)

doStart

public void doStart()
Overrides:
doStart in class GenericExporter

init

protected void init()

getClassNameForFile

protected String getClassNameForFile(POJOClass element)
Overrides:
getClassNameForFile in class GenericExporter

getPackageNameForFile

protected String getPackageNameForFile(POJOClass element)
Overrides:
getPackageNameForFile in class GenericExporter

exportComponent

protected void exportComponent(Map additionalContext,
                               POJOClass element)
Overrides:
exportComponent in class GenericExporter

getName

public String getName()
Overrides:
getName in class AbstractExporter