Example #1
0
 private com.relteq.sirius.jaxb.Network restoreNetwork(Networks db_net) throws TorqueException {
   com.relteq.sirius.jaxb.Network net = factory.createNetwork();
   net.setId(id2str(db_net.getId()));
   net.setName(db_net.getName());
   net.setDescription(db_net.getDescription());
   // TODO net.setPosition();
   net.setDt(new BigDecimal(1)); // TODO change this when the DB schema is updated
   net.setLocked(db_net.getLocked());
   net.setNodeList(restoreNodeList(db_net));
   net.setLinkList(restoreLinkList(db_net));
   return net;
 }