Examples of VelocityInterceptor


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

Examples of com.celum.dbtool.installer.VelocityInterceptor

    @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

Examples of com.celum.dbtool.installer.VelocityInterceptor

    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

Examples of com.celum.dbtool.installer.VelocityInterceptor

        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

Examples of com.celum.dbtool.sql.VelocityInterceptor

    public void execute(DbStep step)
    {
        LOG.info("[SQL STEP]:" + step.getName() + " (" + step.getVersion() + ")");

        Sql.fromReader(step.getStepReader())
           .interceptingWith(new VelocityInterceptor(variables), new LogInterceptor())
           .execute(dbConnection);
    }
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.