Save This Page
Home » hibernate-entity-src-20081106 » org.hibernate.tool.hbm2x » [javadoc | source]
org.hibernate.tool.hbm2x
abstract public class: AbstractExporter [javadoc | source]
java.lang.Object
   org.hibernate.tool.hbm2x.AbstractExporter

All Implemented Interfaces:
    Exporter

Direct Known Subclasses:
    HbmLintExporter, HibernateConfigurationExporter, HibernateMappingExporter, DAOExporter, POJOExporter, GenericExporter, QueryExporter, DocExporter, DAONewExporter

Base exporter for the template and direct output generation. Sets up the template environment
Field Summary
protected  Log log     
protected  String[] templatePaths     
Constructor:
 public AbstractExporter() 
 public AbstractExporter(Configuration cfg,
    File outputdir) 
Method from org.hibernate.tool.hbm2x.AbstractExporter Summary:
cleanUpContext,   doStart,   getArtifactCollector,   getCfg2HbmTool,   getCfg2JavaTool,   getConfiguration,   getFileForClassName,   getName,   getOutputDirectory,   getProperties,   getTemplateHelper,   getTemplatePaths,   setArtifactCollector,   setConfiguration,   setOutputDirectory,   setProperties,   setTemplateHelper,   setTemplatePath,   setupContext,   setupTemplates,   start,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.tool.hbm2x.AbstractExporter Detail:
 protected  void cleanUpContext() 
 abstract protected  void doStart()
 public ArtifactCollector getArtifactCollector() 
 public Cfg2HbmTool getCfg2HbmTool() 
 public Cfg2JavaTool getCfg2JavaTool() 
 public Configuration getConfiguration() 
 protected File getFileForClassName(File baseDir,
    String className,
    String extension) 
 public String getName() 
 public File getOutputDirectory() 
 public Properties getProperties() 
 protected TemplateHelper getTemplateHelper() 
 public String[] getTemplatePaths() 
 public  void setArtifactCollector(ArtifactCollector collector) 
 public  void setConfiguration(Configuration cfg) 
 public  void setOutputDirectory(File outputdir) 
 public  void setProperties(Properties properties) 
 protected  void setTemplateHelper(TemplateHelper vh) 
 public  void setTemplatePath(String[] templatePaths) 
 protected  void setupContext() 
    Setup the context variables used by the exporter. Subclasses should call super.setupContext() to ensure all needed variables are in the context.
 protected  void setupTemplates() 
 public  void start() 
    Builds template context and performs file generation Subclasses mostly implement doStart() instead.
 static String toString(Object[] a)