private List<com.relteq.sirius.jaxb.Table> restoreTables(com.relteq.sirius.db.BaseObject db_obj) throws TorqueException { Criteria crit = new Criteria(); crit.add(TablesPeer.PARENT_ELEMENT_ID, db_obj.getId()); crit.add(TablesPeer.PARENT_ELEMENT_TYPE, db_obj.getElementType()); @SuppressWarnings("unchecked") List<Tables> db_table_l = TablesPeer.doSelect(crit); List<com.relteq.sirius.jaxb.Table> table_l = new java.util.ArrayList<com.relteq.sirius.jaxb.Table>(db_table_l.size()); for (Tables db_table : db_table_l) table_l.add(restoreTable(db_table)); return table_l; }
private com.relteq.sirius.jaxb.FeedbackElements restoreFeedbackElements( com.relteq.sirius.db.BaseObject db_parent) throws TorqueException { com.relteq.sirius.jaxb.FeedbackElements elems = factory.createFeedbackElements(); Criteria crit = new Criteria(); crit.add(ReferencedScenarioElementsPeer.PARENT_ELEMENT_ID, db_parent.getId()); crit.add(ReferencedScenarioElementsPeer.PARENT_ELEMENT_TYPE, db_parent.getElementType()); crit.add(ReferencedScenarioElementsPeer.TYPE, "feedback"); @SuppressWarnings("unchecked") List<ReferencedScenarioElements> db_elem_l = ReferencedScenarioElementsPeer.doSelect(crit); for (ReferencedScenarioElements db_elem : db_elem_l) elems.getScenarioElement().add(restoreScenarioElement(db_elem)); return elems; }
private com.relteq.sirius.jaxb.Parameters restoreParameters( com.relteq.sirius.db.BaseObject db_obj) throws TorqueException { com.relteq.sirius.jaxb.Parameters params = factory.createParameters(); Criteria crit = new Criteria(); crit.add(ParametersPeer.SCENARIO_ELEMENT_ID, db_obj.getId()); crit.add(ParametersPeer.SCENARIO_ELEMENT_TYPE, db_obj.getElementType()); @SuppressWarnings("unchecked") List<Parameters> db_param_l = ParametersPeer.doSelect(crit); for (Parameters db_param : db_param_l) params.getParameter().add(restoreParameter(db_param)); return params; }