Examples of DbInstaller


Examples of com.celum.dbtool.installer.DbInstaller

     * method executes the scripts without any 'version' updating
     * checking etc. It's usable for DB initialization or dropping.
     */
    public void run()
    {
        DbInstaller installer = new DbInstaller(dbConnection, variables);
        installer.setEventListener(eventListener);
        installer.install(steps);
    }
View Full Code Here

Examples of com.celum.dbtool.installer.DbInstaller

     * any version check but the version table is updated anyway (if it's
     * defined via 'withVersionUpdate()'
     */
    public void install()
    {
        DbInstaller installer = new DbInstaller(dbConnection, variables);
        installer.setEventListener(eventListener);
        installer.setVersionUpdateSql(this.versionUpdateSqlScript);
        installer.install(steps);
    }
View Full Code Here

Examples of com.celum.dbtool.installer.DbInstaller

     */
    public void patch()
    {
        DbStepResource filteredScripts = applyFilter();

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

Examples of com.celum.dbtool.installer.DbInstaller

    public void patchTo(Version v)
    {
        DbStepResource filteredScripts = applyFilter();
        filteredScripts = VersionFilter.filter(filteredScripts).smallerOrEqualsTo(v);

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

Examples of com.celum.dbtool.installer.DbInstaller

     * method executes the scripts without any 'version' updating
     * checking etc. It's usable for DB initialization or dropping.
     */
    public void run()
    {
        DbInstaller installer = new DbInstaller(configuration.getDataSource(), configuration.getVariables());
        installer.setEventListener(configuration.getEventListener());
        installer.install(configuration.getStepsSource());
    }
View Full Code Here

Examples of com.celum.dbtool.installer.DbInstaller

     * any version check but the version table is updated anyway (if it's
     * defined via 'withVersionUpdate()'
     */
    public void install()
    {
        DbInstaller installer = new DbInstaller(configuration.getDataSource(), configuration.getVariables());
        installer.setEventListener(configuration.getEventListener());
        installer.setVersionUpdateSql(configuration.getVersionUpdateSqlScript());
        installer.install(configuration.getStepsSource());
    }
View Full Code Here

Examples of com.celum.dbtool.installer.DbInstaller

     *
     */
    public void patch()
    {
        DbStepResource filteredScripts = applyFilter();
        DbInstaller installer = new DbInstaller(configuration.getDataSource(), configuration.getVariables());
        installer.setEventListener(configuration.getEventListener());
        installer.setVersionUpdateSql(configuration.getVersionUpdateSqlScript());
        installer.install(filteredScripts);
    }
View Full Code Here

Examples of com.celum.dbtool.installer.DbInstaller

    public void patchTo(Version v)
    {
        DbStepResource filteredScripts = applyFilter();
        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);
    }
View Full Code Here

Examples of com.celum.dbtool.installer.DbInstaller

    /**
     * Inner method create exec
     */
    private void executeScriptsFromResource(DbScriptsResource resource)
    {
        DbInstaller installer = new DbInstaller(dbConnection, variables);
        installer.setEventListener(eventListener);
        installer.setVersionFactory(versionFactory);
        installer.setVersionUpdateSql(versionUpdateSqlScript);
        installer.install(resource);
    }
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.