Package gw.fs

Examples of gw.fs.IFile


  @Override
  public void createTables() {
    try {
      Connection connection = _database.getConnection().connect();
      IFile createTableFile = _database.getDdlFile();
      String statements = readFile(createTableFile);
      connection.createStatement().executeUpdate(statements);
      connection.close();
    } catch (SQLException e) {
      throw new RuntimeException(e);
View Full Code Here


  private Map<String, SQLFileInfo> initializeSQLFiles() {
    HashMap<String, SQLFileInfo> results = new HashMap<String, SQLFileInfo>();
    for (Pair<String, IFile> pair : _module.getFileRepository().findAllFilesByExtension(".sql")) {
      String fileName = pair.getFirst();
      IFile sqlFil = pair.getSecond();
      for (DatabaseImpl db : _typeDataByNamespace.get().values()) {
        if (sqlFil.isDescendantOf(db.getDBData().getDdlFile().getParent())) {
          String queryName = fileName.substring(0, fileName.length() - ".sql".length()).replace("/", ".");
          results.put(queryName, new SQLFileInfo(queryName, db, sqlFil));
          break;
        }
      }
View Full Code Here

TOP

Related Classes of gw.fs.IFile

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.