资 源 简 介
Java API and utility that parses OpenEdge and Progress 4GL Definitions file into manageable objects, including: Tables, Fields, Indexes, Sequences, Database Triggers.
Example:
```
DatabaseParser parser = new DatabaseParser();
parser.parseDefinitions(new File("definitionsFile.df"));
List tables = parser.getTables();
for (Table table : tables) {
System.out.println("Table: " + table.getName() + " (" + table.getLabel() + ")");
System.out.println("Total Fields: " + table.getFields().size());
for (Field field : table.getFields()) {
System.out.println(".. Field: " + field.getName());
}
//Test if table contains "Cust-Num" field
if (table.containsField("Cust-Num")) {
System.out.println("Table " + table.getName() + " have Customer Reference!!!");
}
}
```
Founder: Bruno Candido Volpato da Cunha