private com.relteq.sirius.jaxb.Outputs restoreOutputs(Nodes db_node) throws TorqueException { Criteria crit = new Criteria(); crit.add(LinksPeer.NETWORK_ID, db_node.getNetworkId()); crit.add(LinksPeer.BEG_NODE_ID, db_node.getId()); @SuppressWarnings("unchecked") List<Links> db_link_l = LinksPeer.doSelect(crit); com.relteq.sirius.jaxb.Outputs outputs = factory.createOutputs(); for (Links db_link : db_link_l) outputs.getOutput().add(restoreOutput(db_link)); return outputs; }
private com.relteq.sirius.jaxb.Node restoreNode(Nodes db_node) throws TorqueException { com.relteq.sirius.jaxb.Node node = factory.createNode(); node.setId(id2str(db_node.getId())); node.setInSynch(db_node.getInSynch()); NodeType db_nodetype = NodeTypePeer.retrieveByPK(db_node.getId(), db_node.getNetworkId()); node.setType(db_nodetype.getType()); node.setRoadwayMarkers(restoreRoadwayMarkers(db_node)); node.setInputs(restoreInputs(db_node)); node.setOutputs(restoreOutputs(db_node)); node.setPosition(restorePosition(db_node.getGeom())); return node; }