org.hibernate.tool.hbm2x
Interface Exporter

All Known Implementing Classes:
AbstractExporter, DAOExporter, DAONewExporter, DocExporter, GenericExporter, Hbm2DDLExporter, HbmLintExporter, HibernateConfigurationExporter, HibernateMappingExporter, POJOExporter, QueryExporter

public interface Exporter

Author:
max and david

Method Summary
 ArtifactCollector getArtifactCollector()
           
 org.hibernate.cfg.Configuration getConfiguration()
           
 File getOutputDirectory()
           
 Properties getProperties()
           
 String[] getTemplatePath()
           
 void setArtifactCollector(ArtifactCollector collector)
           
 void setConfiguration(org.hibernate.cfg.Configuration cfg)
           
 void setOutputDirectory(File file)
           
 void setProperties(Properties properties)
           
 void setTemplatePath(String[] templatePath)
           
 void start()
          Called when exporter should start generating its output
 

Method Detail

setConfiguration

void setConfiguration(org.hibernate.cfg.Configuration cfg)
Parameters:
cfg - An Hibernate org.hibernate.Configuration or subclass instance that defines the hibernate meta model to be exported.

getConfiguration

org.hibernate.cfg.Configuration getConfiguration()

setOutputDirectory

void setOutputDirectory(File file)
Parameters:
file - basedirectory to be used for generated files.

getOutputDirectory

File getOutputDirectory()

setTemplatePath

void setTemplatePath(String[] templatePath)
Parameters:
templatePath - array of directories used sequentially to lookup templates

getTemplatePath

String[] getTemplatePath()

setProperties

void setProperties(Properties properties)
Parameters:
properties - set of properties to be used by exporter.

getProperties

Properties getProperties()

setArtifactCollector

void setArtifactCollector(ArtifactCollector collector)
Parameters:
collector - Instance to be consulted when adding a new file.

getArtifactCollector

ArtifactCollector getArtifactCollector()
Returns:
artifact collector

start

void start()
Called when exporter should start generating its output