Examples of runScript()


Examples of org.apache.commons.jelly.JellyContext.runScript()

     * Simple connection
     */
    public void connect() throws Exception {
  JellyContext context = new JellyContext();
  XMLOutput xmlOutput = XMLOutput.createXMLOutput(System.out);
  context.runScript(new File ("util/ldap-connect.jelly"), xmlOutput);
  xmlOutput.flush();
    }

    /**
     * Simple query
View Full Code Here

Examples of org.apache.commons.jelly.JellyContext.runScript()

     * Simple query
     */
    public void query() throws Exception {
  JellyContext context = new JellyContext();
  XMLOutput xmlOutput = XMLOutput.createXMLOutput(System.out);
  context.runScript(new File ("util/ldap-query.jelly"), xmlOutput);
  xmlOutput.flush();
    }

    /**
     * Simple insert
View Full Code Here

Examples of org.apache.commons.jelly.JellyContext.runScript()

     * Simple insert
     */
    public void insert() throws Exception {
  JellyContext context = new JellyContext();
  XMLOutput xmlOutput = XMLOutput.createXMLOutput(System.out);
  context.runScript(new File ("util/ldap-insert.jelly"), xmlOutput);
  xmlOutput.flush();
    }

    /**
     * Simple update
View Full Code Here

Examples of org.apache.commons.jelly.JellyContext.runScript()

     * Simple update
     */
    public void update() throws Exception {
  JellyContext context = new JellyContext();
  XMLOutput xmlOutput = XMLOutput.createXMLOutput(System.out);
  context.runScript(new File ("util/ldap-update.jelly"), xmlOutput);
  xmlOutput.flush();
    }

    /**
     * Simple delete
View Full Code Here

Examples of org.apache.commons.jelly.JellyContext.runScript()

     * Simple delete
     */
    public void delete() throws Exception {
  JellyContext context = new JellyContext();
  XMLOutput xmlOutput = XMLOutput.createXMLOutput(System.out);
  context.runScript(new File ("util/ldap-delete.jelly"), xmlOutput);
  xmlOutput.flush();
    }

}

View Full Code Here

Examples of org.apache.commons.jelly.JellyContext.runScript()

     * Simple parsing test
     */
    public void runScript() throws Exception {
  JellyContext context = new JellyContext();
  XMLOutput xmlOutput = XMLOutput.createXMLOutput(System.out);
  context.runScript(new File ("util/test.jelly"), xmlOutput);
  xmlOutput.flush();
    }

    private class ExtXMLParser extends XMLParser {
  public void configure () {
View Full Code Here

Examples of org.apache.ibatis.jdbc.ScriptRunner.runScript()

        File bootstrap = scriptFile("bootstrap.sql");
        if (bootstrap.exists()) {
          out.println(horizontalLine("Applying: bootstrap.sql", 80));
          ScriptRunner runner = getScriptRunner();
          try {
            runner.runScript(new MigrationReader(new FileReader(bootstrap), false, environmentProperties()));
          } finally {
            runner.closeConnection();
          }
          out.println();
        } else {
View Full Code Here

Examples of org.apache.ibatis.jdbc.ScriptRunner.runScript()

      for (Change change : migrations) {
        if (change.getId().equals(lastChange.getId())) {
          printStream.println(horizontalLine("Undoing: " + change.getFilename(), 80));
          ScriptRunner runner = getScriptRunner();
          try {
            runner.runScript(new MigrationReader(new FileReader(scriptFile(change.getFilename())), true, environmentProperties()));
          } finally {
            runner.closeConnection();
          }
          if (changelogExists()) {
            deleteChange(change);
View Full Code Here

Examples of org.apache.ibatis.jdbc.ScriptRunner.runScript()

      for (Change change : migrations) {
        if (lastChange == null || change.getId().compareTo(lastChange.getId()) > 0) {
          out.println(horizontalLine("Applying: " + change.getFilename(), 80));
          ScriptRunner runner = getScriptRunner();
          try {
            runner.runScript(new MigrationReader(new FileReader(scriptFile(change.getFilename())), false, environmentProperties()));
          } finally {
            runner.closeConnection();
          }
          insertChangelog(change);
          out.println();
View Full Code Here

Examples of org.apache.ibatis.jdbc.ScriptRunner.runScript()

        File bootstrap = scriptFile("bootstrap.sql");
        if (bootstrap.exists()) {
          out.println(horizontalLine("Applying: bootstrap.sql", 80));
          ScriptRunner runner = getScriptRunner();
          try {
            runner.runScript(new MigrationReader(new FileReader(bootstrap), false, environmentProperties()));
          } finally {
            runner.closeConnection();
          }
          out.println();
        } else {
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.