Package com.celum.dbtool.installer

Examples of com.celum.dbtool.installer.VelocityInterceptor


    @Override
  public void execute() throws MojoExecutionException, MojoFailureException
  {
        try {
            sql(initScript).interceptWith(new VelocityInterceptor(getParameters())).on(getDataSource()).run();
        } catch (Exception e) {
            getLog().error(e);
        }
    }
View Full Code Here


    @Override
    public void execute() throws MojoExecutionException, MojoFailureException
    {
        try {
            sql(cleanScript).interceptWith(new VelocityInterceptor(getParameters())).on(getDataSource()).run();
        } catch (Exception e) {
            getLog().error(e);
        }
    }
View Full Code Here

    private void init()
    {
        //prepare values for placeholders
        Map<String, String> values = new HashMap<String, String>();
        values.put(DbVars.PATCHTABLE, this.versionTable);
        VelocityInterceptor placeholders = new VelocityInterceptor(values);

        //check if version table is available
        if (!isVersionTableExist(placeholders)) {
            sql(initScript).interceptWith(new VelocityInterceptor(values)).on(getDataSource()).run();
        }
    }
View Full Code Here

        args.put(DbVars.PATCH_NAME, step.getName());
        args.putAll(variables);

        long existence =
            sql(preconditionSql)
               .interceptWith(new VelocityInterceptor(args))
               .on(dataSource)
               .runQuery().andReturnLong(-1);

        return existence <= 0;
    }
View Full Code Here

TOP

Related Classes of com.celum.dbtool.installer.VelocityInterceptor

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.