org.hibernate.tool.hbm2x
Class DAOExporter

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

public class DAOExporter
extends POJOExporter


Field Summary
 
Fields inherited from class org.hibernate.tool.hbm2x.AbstractExporter
log, templatePaths
 
Constructor Summary
DAOExporter()
           
DAOExporter(org.hibernate.cfg.Configuration cfg, File outputdir)
           
 
Method Summary
protected  void exportComponent(Map additionalContext, POJOClass element)
           
 String getName()
           
 String getSessionFactoryName()
           
protected  void init()
           
 void setSessionFactoryName(String sessionFactoryName)
           
protected  void setupContext()
          Setup the context variables used by the exporter.
 
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
 

Constructor Detail

DAOExporter

public DAOExporter()

DAOExporter

public DAOExporter(org.hibernate.cfg.Configuration cfg,
                   File outputdir)
Method Detail

init

protected void init()
Overrides:
init in class POJOExporter

exportComponent

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

getSessionFactoryName

public String getSessionFactoryName()

setSessionFactoryName

public void setSessionFactoryName(String sessionFactoryName)

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 POJOExporter

getName

public String getName()
Overrides:
getName in class POJOExporter