Package org.hibernate.tool.hbm2x.doc

Examples of org.hibernate.tool.hbm2x.doc.DocFile


    public void generateTablesDetails() {
        Iterator tables = getConfiguration().getTableMappings();
        while (tables.hasNext() ) {
            Table table = (Table) tables.next();

            DocFile docFile = docFileManager.getTableDocFile(table);
            if(docFile!=null) {
              File file = docFile.getFile();

              Map parameters = new HashMap();
              parameters.put("docFile", docFile);
              parameters.put("table", table);
View Full Code Here


      Iterator classes = docHelper.getClasses().iterator();
      while(classes.hasNext()){
        POJOClass pcObj = (POJOClass)classes.next()
       
        pcObj.getPropertiesForMinimalConstructor();   
        DocFile docFile = docFileManager.getEntityDocFile(pcObj);
        File file = docFile.getFile();
       
        Map parameters = new HashMap();
        parameters.put("docFile", docFile);
        parameters.put("class", pcObj);       
        processTemplate(parameters, FTL_ENTITIES_ENTITY, file);
View Full Code Here

    /**
     * Generates the html file containig list of packages (allpackages.html)
     *
     */
    public void generateEntitiesAllPackagesList() {
        DocFile docFile = docFileManager.getAllPackagesDocFile();

        File file = docFile.getFile();

        Map parameters = new HashMap();
        parameters.put("docFile", docFile);
        List list = docHelper.getPackages();
        //Remove All Classes
View Full Code Here

    /**
     * Generates the html file containing list of classes (allclases.html)
     *
     */
    public void generateEntitiesAllEntitiesList() {
        DocFile docFile = docFileManager.getAllEntitiesDocFile();

        File file = docFile.getFile();  

        Map parameters = new HashMap();
        parameters.put("docFile", docFile);
        parameters.put("classList", docHelper.getClasses())

View Full Code Here

        while (packages.hasNext() ) {
            String packageName = (String) packages.next();
           
            if(!packageName.equals(DocHelper.DEFAULT_NO_PACKAGE)){
                DocFile docFile = docFileManager.getPackageEntityListDocFile(packageName);
                File file = docFile.getFile();

                Map parameters = new HashMap();
                parameters.put("docFile", docFile);
                parameters.put("title", packageName);
                parameters.put("classList", docHelper.getClasses(packageName));
View Full Code Here

        Iterator packages = packageList.iterator();
       
        while (packages.hasNext() ) {
            String packageName = (String) packages.next();

            DocFile summaryDocFile = docFileManager.getPackageSummaryDocFile(packageName);
            Map parameters = new HashMap();
            parameters.put("docFile", summaryDocFile);
            parameters.put("package", packageName);          
            parameters.put("classList", docHelper.getClasses(packageName));                      

            processTemplate(parameters, FTL_ENTITIES_PACKAGE_SUMMARY,
                    summaryDocFile.getFile() );
        }
    }   
View Full Code Here

    /**
     * Generate a file with a list of all the schemas in the configuration.
     */
    public void generateTablesAllSchemasList() {
        DocFile docFile = docFileManager.getAllSchemasDocFile();

        File file = docFile.getFile();

        Map parameters = new HashMap();
        parameters.put("docFile", docFile);
        parameters.put("schemaList", docHelper.getSchemas() );

View Full Code Here

    /**
     * Generate a file with a list of all the tables in the configuration.
     */
    public void generateTablesAllTablesList() {
        DocFile docFile = docFileManager.getAllTablesDocFile();

        File file = docFile.getFile();

        Map parameters = new HashMap();
        parameters.put("docFile", docFile);
        parameters.put("tableList", docHelper.getTables() );

View Full Code Here

        Iterator schemas = docHelper.getSchemas().iterator();

        while (schemas.hasNext() ) {
            String schemaName = (String) schemas.next();

            DocFile docFile = docFileManager.getSchemaTableListDocFile(schemaName);

            File file = docFile.getFile();

            Map parameters = new HashMap();
            parameters.put("docFile", docFile);
            parameters.put("title", schemaName);
            parameters.put("tableList", docHelper.getTables(schemaName) );
View Full Code Here

    public void generateTablesSchemaDetailedInfo() {
        Iterator schemas = docHelper.getSchemas().iterator();
        while (schemas.hasNext() ) {
            String schemaName = (String) schemas.next();

            DocFile summaryDocFile = docFileManager.getSchemaSummaryDocFile(schemaName);

            Map parameters = new HashMap();
            parameters.put("docFile", summaryDocFile);
            parameters.put("schema", schemaName);

            processTemplate(parameters, FTL_TABLES_SCHEMA_SUMMARY,
                    summaryDocFile.getFile() );

            DocFile tableListDocFile = docFileManager.getSchemaSummaryDocFile(schemaName);

            parameters = new HashMap();
            parameters.put("docFile", tableListDocFile);
            parameters.put("schema", schemaName);

            processTemplate(parameters, FTL_TABLES_SCHEMA_SUMMARY,
                    tableListDocFile.getFile() );
           
            //processTemplate( new HashMap(), templateName, outputFile );
        }
    }
View Full Code Here

TOP

Related Classes of org.hibernate.tool.hbm2x.doc.DocFile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.