|
|
|
@ -101,20 +101,8 @@ public class XmlManager {
|
|
|
|
|
for (int j = 0; j < tables.getLength(); j++) {
|
|
|
|
|
Element tableElement = (Element) tables.item(j);
|
|
|
|
|
Table table = new Table();
|
|
|
|
|
table.setdBhandle(module);
|
|
|
|
|
table.setTableName(tableElement.getAttribute("tableName"));
|
|
|
|
|
table.setTableComment(tableElement.getAttribute("tableComment"));
|
|
|
|
|
table.setCreate(getBoolean(tableElement.getAttribute("create")));
|
|
|
|
|
table.setDelete(getBoolean(tableElement.getAttribute("delete")));
|
|
|
|
|
table.setUpdate(getBoolean(tableElement.getAttribute("update")));
|
|
|
|
|
table.setFind(getBoolean(tableElement.getAttribute("find")));
|
|
|
|
|
table.setGet(getBoolean(tableElement.getAttribute("get")));
|
|
|
|
|
table.setSearch(getBoolean(tableElement.getAttribute("search")));
|
|
|
|
|
table.setHtml(getBoolean(tableElement.getAttribute("html")));
|
|
|
|
|
table.setSys(getBoolean(tableElement.getAttribute("sys")));
|
|
|
|
|
|
|
|
|
|
NodeList fields = tableElement.getElementsByTagName("field");
|
|
|
|
|
|
|
|
|
|
if (fields.getLength() > 0) {
|
|
|
|
|
for (int k = 0; k < fields.getLength(); k++) {
|
|
|
|
|
Element fieldElement = (Element) fields.item(k);
|
|
|
|
@ -132,6 +120,18 @@ public class XmlManager {
|
|
|
|
|
table.putField(field);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
table.setdBhandle(module);
|
|
|
|
|
table.setTableName(tableElement.getAttribute("tableName"));
|
|
|
|
|
table.setTableComment(tableElement.getAttribute("tableComment"));
|
|
|
|
|
table.setCreate(getBoolean(tableElement.getAttribute("create")));
|
|
|
|
|
table.setDelete(getBoolean(tableElement.getAttribute("delete")));
|
|
|
|
|
table.setUpdate(getBoolean(tableElement.getAttribute("update")));
|
|
|
|
|
table.setFind(getBoolean(tableElement.getAttribute("find")));
|
|
|
|
|
table.setGet(getBoolean(tableElement.getAttribute("get")));
|
|
|
|
|
table.setSearch(getBoolean(tableElement.getAttribute("search")));
|
|
|
|
|
table.setHtml(getBoolean(tableElement.getAttribute("html")));
|
|
|
|
|
table.setSys(getBoolean(tableElement.getAttribute("sys")));
|
|
|
|
|
|
|
|
|
|
module.putTable(table);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|