Examples of DDLDataTransformer


Examples of tosa.loader.data.DDLDataTransformer

  private ColumnAssertionData column(String name, String gosuType, int jdbcType) {
    return new ColumnAssertionData(name, gosuType, jdbcType);
  }

  private List<TableData> parse(String sql) {
    return new DDLDataTransformer().transformParseTree(new DDLParser(Token.tokenize(sql)).parseDDL());
  }
View Full Code Here

Examples of tosa.loader.data.DDLDataTransformer

      // TODO - AHK - Lots o' error handling
      String path = module.pathRelativeToRoot(ddlFile.getSecond());
      String source = readFile(ddlFile.getSecond());
      Token token = Token.tokenize(source);
      List<CreateTableStatement> createTableStatements = new DDLParser(token).parseDDL();
      List<TableData> tables = new DDLDataTransformer().transformParseTree(createTableStatements);
      String fileName = ddlFile.getFirst();
      String namespace = fileName.substring(0, fileName.length() - ".ddl".length()).replace("/", ".");
      DBData dbData = new DBData(namespace, tables, ddlFile.getSecond());
      results.put(namespace, dbData);
    }
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.