Class AbstractExporter
java.lang.Object
org.hibernate.tool.internal.export.common.AbstractExporter
- All Implemented Interfaces:
Exporter,ExporterConstants
- Direct Known Subclasses:
CfgExporter,DdlExporter,DocExporter,GenericExporter,QueryExporter
Base exporter for the template and direct output generation.
Sets up the template environment
- Author:
- max and david, koen
-
Field Summary
FieldsFields inherited from interface org.hibernate.tool.api.export.ExporterConstants
ARTIFACT_COLLECTOR, CREATE_DATABASE, DELIMITER, DESTINATION_FOLDER, DROP_DATABASE, EXPORT_TO_CONSOLE, EXPORT_TO_DATABASE, FILE_PATTERN, FOR_EACH, FORMAT, HALT_ON_ERROR, METADATA_DESCRIPTOR, OUTPUT_FILE_NAME, QUERY_LIST, SCHEMA_UPDATE, TEMPLATE_NAME, TEMPLATE_PATH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.hibernate.boot.Metadataprotected voidprotected abstract voiddoStart()protected FilegetFileForClassName(File baseDir, String className, String extension) org.hibernate.boot.Metadataprotected MetadataDescriptorgetName()protected Fileprotected TemplateHelperprotected voidprotected voidprotected voidvoidstart()Called when exporter should start generating its output
-
Field Details
-
log
protected org.jboss.logging.Logger log
-
-
Constructor Details
-
AbstractExporter
public AbstractExporter()
-
-
Method Details
-
getMetadataDescriptor
-
getMetadata
public org.hibernate.boot.Metadata getMetadata() -
getOutputDirectory
-
getProperties
- Specified by:
getPropertiesin interfaceExporter
-
getArtifactCollector
-
getName
-
getCfg2HbmTool
-
getCfg2JavaTool
-
start
public void start()Description copied from interface:ExporterCalled when exporter should start generating its output -
doStart
protected abstract void doStart() -
cleanUpContext
protected void cleanUpContext() -
setupContext
protected void setupContext() -
setupTemplates
protected void setupTemplates() -
setTemplateHelper
-
getTemplateHelper
-
getFileForClassName
-
buildMetadata
protected org.hibernate.boot.Metadata buildMetadata()
-