Examples of ISchemaExport


Examples of org.jasig.portal.tools.dbloader.ISchemaExport

        }
    }

    @Override
    public void hibernateCreate(String target, String databaseQualifier, boolean export, String outputFile) {
        final ISchemaExport schemaExportBean = getSchemaExport(databaseQualifier);
        if (schemaExportBean == null) {
            throw new RuntimeException(target + " could not find schemaExportBean " + databaseQualifier);
        }

        try {
            PortalShell.LOGGER.info("");
            PortalShell.LOGGER.info("");
            PortalShell.LOGGER.info("Hibernate Create DDL: " + databaseQualifier);

            outputFile = StringUtils.trimToNull(outputFile);

            schemaExportBean.create(export, outputFile, true);
           
            this.versionedDataUpdater.postInitDatabase(databaseQualifier);
        }
        catch (Exception e) {
            throw new RuntimeException(target + " for " + databaseQualifier + " failed", e);
View Full Code Here

Examples of org.jasig.portal.tools.dbloader.ISchemaExport

        }
    }

    @Override
    public void hibernateDrop(String target, String databaseQualifier, boolean export, String outputFile) {
        final ISchemaExport schemaExportBean = this.getSchemaExport(databaseQualifier);
        if (schemaExportBean == null) {
            throw new RuntimeException(target + " could not find schemaExportBean " + databaseQualifier);
        }

        try {
            PortalShell.LOGGER.info("");
            PortalShell.LOGGER.info("");
            PortalShell.LOGGER.info("Hibernate Drop DDL: " + databaseQualifier);

            outputFile = StringUtils.trimToNull(outputFile);

            schemaExportBean.drop(export, outputFile, true);
        }
        catch (Exception e) {
            throw new RuntimeException(target + " for " + databaseQualifier + " failed", e);
        }
    }
View Full Code Here

Examples of org.jasig.portal.tools.dbloader.ISchemaExport

    @Override
    public void hibernateUpdate(String target, String databaseQualifier, boolean export, String outputFile) {
        //TODO add upgrade-state to up_version table to handle a failure during the hbm2ddl update
        this.versionedDataUpdater.preUpdateDatabase(databaseQualifier);
       
        final ISchemaExport schemaExportBean = this.getSchemaExport(databaseQualifier);
        if (schemaExportBean == null) {
            throw new RuntimeException(target + " could not find schemaExportBean " + databaseQualifier);
        }

        try {
            PortalShell.LOGGER.info("");
            PortalShell.LOGGER.info("");
            PortalShell.LOGGER.info("Hibernate Update DDL: " + databaseQualifier);

            outputFile = StringUtils.trimToNull(outputFile);

            schemaExportBean.update(export, outputFile, true);
        }
        catch (Exception e) {
            throw new RuntimeException(target + " for " + databaseQualifier + " failed", e);
        }
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.