Class DocExporter
java.lang.Object
org.hibernate.tool.internal.export.common.AbstractExporter
org.hibernate.tool.internal.export.doc.DocExporter
- All Implemented Interfaces:
Exporter,ExporterConstants
Exporter implementation that creates Hibernate Documentation.
Creates Tables and Classes Details
- Author:
- Ricardo C. Moral, Amit Bhayani
-
Field Summary
FieldsFields inherited from class org.hibernate.tool.internal.export.common.AbstractExporter
logFields 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 TypeMethodDescriptionvoiddoStart()voidGenerate common files and copy assets.voidGenerates the html file containing list of classes (allclases.html)voidGenerates the html file containig list of packages (allpackages.html)voidgenerates one html file for each class containing detail information of classvoidGenerate the index file of the class documentationvoidGenerates the html file containing list of classes and interfaces for given packagevoidgenerates the list of classes sepcific to packagevoidgeneratePackageSummary(boolean graphsGenerated) Generate summary (summaty.html) to show all the packagesvoidGenerate a file with a list of all the schemas in the configuration.voidGenerate a file with a list of all the tables in the configuration.voidGenerate one file per table with detail information.voidGenerate the index file of the table documentation.voidGenerate two files per schema.voidvoidgenerateTablesSummary(boolean graphsGenerated) Generate a file with an summary of all the tables.getName()protected voidRun templates.protected voidMethods inherited from class org.hibernate.tool.internal.export.common.AbstractExporter
buildMetadata, cleanUpContext, getArtifactCollector, getCfg2HbmTool, getCfg2JavaTool, getFileForClassName, getMetadata, getMetadataDescriptor, getOutputDirectory, getProperties, getTemplateHelper, setTemplateHelper, setupTemplates, start
-
Field Details
-
OS_NAME
-
IS_LINUX
public static final boolean IS_LINUX
-
-
Constructor Details
-
DocExporter
public DocExporter()
-
-
Method Details
-
doStart
public void doStart()- Specified by:
doStartin classAbstractExporter
-
setupContext
protected void setupContext()- Overrides:
setupContextin classAbstractExporter
-
generateCommmonAndAssets
public void generateCommmonAndAssets()Generate common files and copy assets. -
generateTablesIndex
public void generateTablesIndex()Generate the index file of the table documentation. -
generateEntitiesIndex
public void generateEntitiesIndex()Generate the index file of the class documentation -
generateTablesSummary
public void generateTablesSummary(boolean graphsGenerated) Generate a file with an summary of all the tables.- Parameters:
graphsGenerated-
-
generatePackageSummary
public void generatePackageSummary(boolean graphsGenerated) Generate summary (summaty.html) to show all the packages -
generateTablesDetails
public void generateTablesDetails()Generate one file per table with detail information. -
generateEntitiesDetails
public void generateEntitiesDetails()generates one html file for each class containing detail information of class -
generateEntitiesAllPackagesList
public void generateEntitiesAllPackagesList()Generates the html file containig list of packages (allpackages.html) -
generateEntitiesAllEntitiesList
public void generateEntitiesAllEntitiesList()Generates the html file containing list of classes (allclases.html) -
generateEntitiesPackageEntityList
public void generateEntitiesPackageEntityList()generates the list of classes sepcific to package -
generateEntitiesPackageDetailedInfo
public void generateEntitiesPackageDetailedInfo()Generates the html file containing list of classes and interfaces for given package -
generateTablesAllSchemasList
public void generateTablesAllSchemasList()Generate a file with a list of all the schemas in the configuration. -
generateTablesAllTablesList
public void generateTablesAllTablesList()Generate a file with a list of all the tables in the configuration. -
generateTablesSchemaTableList
public void generateTablesSchemaTableList() -
generateTablesSchemaDetailedInfo
public void generateTablesSchemaDetailedInfo()Generate two files per schema. One with a summary of the tables in the schema and another one with a list of tables. -
processTemplate
Run templates.- Parameters:
parameters- the parameters to pass to the templates template.templateName- the template to use.outputFile- the output file.
-
getName
- Overrides:
getNamein classAbstractExporter
-