Exemplo n.º 1
0
 private com.relteq.sirius.jaxb.DestinationNetwork restoreDestinationNetwork(
     DestinationNetworks db_destnet) throws TorqueException {
   com.relteq.sirius.jaxb.DestinationNetwork destnet = factory.createDestinationNetwork();
   destnet.setId(id2str(db_destnet.getId()));
   destnet.setLinkIdDestination(id2str(db_destnet.getDestinationLinkId()));
   com.relteq.sirius.jaxb.LinkReferences linkrefs = factory.createLinkReferences();
   @SuppressWarnings("unchecked")
   List<DestinationNetworkLinks> db_dnl_l = db_destnet.getDestinationNetworkLinkss();
   for (DestinationNetworkLinks db_dnl : db_dnl_l)
     linkrefs.getLinkReference().add(restoreDestinationNetworkLinks(db_dnl));
   destnet.setLinkReferences(linkrefs);
   return destnet;
 }
Exemplo n.º 2
0
 private com.relteq.sirius.jaxb.Route restoreRoute(Routes db_route) throws TorqueException {
   com.relteq.sirius.jaxb.Route route = factory.createRoute();
   route.setId(id2str(db_route.getId()));
   route.setName(db_route.getName());
   com.relteq.sirius.jaxb.LinkReferences lrs = factory.createLinkReferences();
   Criteria crit = new Criteria();
   crit.addAscendingOrderByColumn(RouteLinksPeer.ORDINAL);
   @SuppressWarnings("unchecked")
   List<RouteLinks> db_rl_l = db_route.getRouteLinkss(crit);
   for (RouteLinks db_rl : db_rl_l) {
     com.relteq.sirius.jaxb.LinkReference lr = factory.createLinkReference();
     lr.setId(id2str(db_rl.getLinkId()));
     lrs.getLinkReference().add(lr);
   }
   route.setLinkReferences(lrs);
   return route;
 }
Exemplo n.º 3
0
 private com.relteq.sirius.jaxb.Phase restorePhase(Phases db_ph) throws TorqueException {
   com.relteq.sirius.jaxb.Phase phase = factory.createPhase();
   phase.setNema(BigInteger.valueOf(db_ph.getNema()));
   phase.setProtected(db_ph.getIsProtected());
   phase.setPermissive(db_ph.getPermissive());
   phase.setLag(db_ph.getLag());
   phase.setRecall(db_ph.getRecall());
   phase.setMinGreenTime(db_ph.getMinGreenTime());
   phase.setYellowTime(db_ph.getYellowTime());
   phase.setRedClearTime(db_ph.getRedClearTime());
   @SuppressWarnings("unchecked")
   List<PhaseLinks> db_phl_l = db_ph.getPhaseLinkss();
   com.relteq.sirius.jaxb.LinkReferences linkrefs = factory.createLinkReferences();
   for (PhaseLinks db_phl : db_phl_l) linkrefs.getLinkReference().add(restorePhaseLink(db_phl));
   phase.setLinkReferences(linkrefs);
   return phase;
 }