Example #1
0
 public Node getNode(String name) {
   Collection nodes = manager.getAllQueries();
   for (Iterator iter = nodes.iterator(); iter.hasNext(); ) {
     Query node = (Query) iter.next();
     if (node.getName().equals(name)) {
       return node;
     }
   }
   return null;
 }
Example #2
0
 public void updateNode(Object node) throws EntityExistException {
   Query db = (Query) node;
   manager.updateQuery(db.getId(), db.getName(), db.getDescription());
 }
Example #3
0
 public String getNodeName(Node node) {
   Query query = (Query) node;
   return query.getName();
 }
Example #4
0
 public void addNode(Object node) throws EntityExistException {
   Query query = (Query) node;
   manager.addQuery(query.getPid(), query.getName(), query.getDescription(), query.getIsLeaf());
 }
Example #5
0
 public void copyNode(Object node) throws EntityExistException {
   Query query = (Query) node;
   manager.copyQuery(query.getId(), query.getName(), query.getDescription());
 }