Class DocExporter

java.lang.Object
org.hibernate.tool.internal.export.common.AbstractExporter
org.hibernate.tool.internal.export.doc.DocExporter
All Implemented Interfaces:
Exporter, ExporterConstants

public class DocExporter extends AbstractExporter
Exporter implementation that creates Hibernate Documentation. Creates Tables and Classes Details
Author:
Ricardo C. Moral, Amit Bhayani
  • Field Details

    • OS_NAME

      public static final String OS_NAME
    • IS_LINUX

      public static final boolean IS_LINUX
  • Constructor Details

    • DocExporter

      public DocExporter()
  • Method Details

    • doStart

      public void doStart()
      Specified by:
      doStart in class AbstractExporter
    • setupContext

      protected void setupContext()
      Overrides:
      setupContext in class AbstractExporter
    • 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

      protected void processTemplate(Map<String,Object> parameters, String templateName, File outputFile)
      Run templates.
      Parameters:
      parameters - the parameters to pass to the templates template.
      templateName - the template to use.
      outputFile - the output file.
    • getName

      public String getName()
      Overrides:
      getName in class AbstractExporter