Package com.celum.dbtool.installer

Examples of com.celum.dbtool.installer.DbInstaller.install()


     */
    public void run()
    {
        DbInstaller installer = new DbInstaller(dbConnection, variables);
        installer.setEventListener(eventListener);
        installer.install(steps);
    }


    /**
     * install method instead of patch method executes all scripts without
View Full Code Here


    public void install()
    {
        DbInstaller installer = new DbInstaller(dbConnection, variables);
        installer.setEventListener(eventListener);
        installer.setVersionUpdateSql(this.versionUpdateSqlScript);
        installer.install(steps);
    }


    /**
     * Method update the database to latest version. There are 2
View Full Code Here

        DbStepResource filteredScripts = applyFilter();

        DbInstaller installer = new DbInstaller(dbConnection, variables);
        installer.setEventListener(eventListener);
        installer.setVersionUpdateSql(versionUpdateSqlScript);
        installer.install(filteredScripts);
    }


    /**
     * Method update the database to version you wish.
View Full Code Here

        filteredScripts = VersionFilter.filter(filteredScripts).smallerOrEqualsTo(v);

        DbInstaller installer = new DbInstaller(dbConnection, variables);
        installer.setEventListener(eventListener);
        installer.setVersionUpdateSql(versionUpdateSqlScript);
        installer.install(filteredScripts);
    }


    /**
     * get and fill the current DB version value to property
View Full Code Here

     */
    public void run()
    {
        DbInstaller installer = new DbInstaller(configuration.getDataSource(), configuration.getVariables());
        installer.setEventListener(configuration.getEventListener());
        installer.install(configuration.getStepsSource());
    }


    /**
     * instead of patch method the install method executes all scripts without
View Full Code Here

    public void install()
    {
        DbInstaller installer = new DbInstaller(configuration.getDataSource(), configuration.getVariables());
        installer.setEventListener(configuration.getEventListener());
        installer.setVersionUpdateSql(configuration.getVersionUpdateSqlScript());
        installer.install(configuration.getStepsSource());
    }


    /**
     * Method update the database to latest version. There are 2
View Full Code Here

    {
        DbStepResource filteredScripts = applyFilter();
        DbInstaller installer = new DbInstaller(configuration.getDataSource(), configuration.getVariables());
        installer.setEventListener(configuration.getEventListener());
        installer.setVersionUpdateSql(configuration.getVersionUpdateSqlScript());
        installer.install(filteredScripts);
    }


    /**
     * Method update the database to version you wish.
View Full Code Here

        filteredScripts = VersionFilter.filter(filteredScripts).smallerOrEqualsTo(v);

        DbInstaller installer = new DbInstaller(configuration.getDataSource(), configuration.getVariables());
        installer.setEventListener(configuration.getEventListener());
        installer.setVersionUpdateSql(configuration.getVersionUpdateSqlScript());
        installer.install(filteredScripts);
    }


    /**
     * Method apply filter on resource by patching strategy
View Full Code Here

    {
        DbInstaller installer = new DbInstaller(dbConnection, variables);
        installer.setEventListener(eventListener);
        installer.setVersionFactory(versionFactory);
        installer.setVersionUpdateSql(versionUpdateSqlScript);
        installer.install(resource);
    }


    /**
     * get and fill the current DB version value to property
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.