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; }
public void updateNode(Object node) throws EntityExistException { Query db = (Query) node; manager.updateQuery(db.getId(), db.getName(), db.getDescription()); }
public String getNodeName(Node node) { Query query = (Query) node; return query.getName(); }
public void addNode(Object node) throws EntityExistException { Query query = (Query) node; manager.addQuery(query.getPid(), query.getName(), query.getDescription(), query.getIsLeaf()); }
public void copyNode(Object node) throws EntityExistException { Query query = (Query) node; manager.copyQuery(query.getId(), query.getName(), query.getDescription()); }