Package com.celum.dbplugin.installer

Examples of com.celum.dbplugin.installer.StringSqlScript


      List<SqlScript> sqlScripts = new LinkedList<SqlScript>();

      for (int i = 0; i < paths.length; ++i) {
        InputStream is = classLoader.getResourceAsStream(paths[i]);
        String script = IoUtils.toString(is);
        sqlScripts.add(new StringSqlScript(paths[i], script));
      }

      Collections.sort(sqlScripts);
      return sqlScripts;
    } catch (IOException e) {
View Full Code Here


    List<SqlScript> finalScripts = new LinkedList<SqlScript>();
    for (SqlScript template : templateScripts) {
      StringWriter sw = new StringWriter();
      ve.evaluate(vc, sw, template.getId(), template.asText());
      sw.flush();
      finalScripts.add(new StringSqlScript(template.getId(), sw.toString()));
    }

    return finalScripts;
  }
View Full Code Here

TOP

Related Classes of com.celum.dbplugin.installer.StringSqlScript

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.