Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/xml
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23625/src/net/sourceforge/bprocessor/model/xml
Modified Files:
PersistenceManager.java
Log Message:
Changed return of all create methods to void
Index: PersistenceManager.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/xml/PersistenceManager.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** PersistenceManager.java 30 Sep 2005 10:52:00 -0000 1.8
--- PersistenceManager.java 30 Sep 2005 11:35:06 -0000 1.9
***************
*** 135,139 ****
new net.sourceforge.bprocessor.model.Attribute(a.getName(), a.getType(), a.getValue());
! am = AttributeFacade.getInstance().create(am);
mapper.put(new Long(a.getId()), am.getId());
--- 135,139 ----
new net.sourceforge.bprocessor.model.Attribute(a.getName(), a.getType(), a.getValue());
! AttributeFacade.getInstance().create(am);
mapper.put(new Long(a.getId()), am.getId());
***************
*** 154,158 ****
ConstructionSpace csm = new ConstructionSpace(cs.getName());
! csm = ConstructionSpaceFacade.getInstance().create(csm);
mapper.put(new Long(cs.getId()), csm.getId());
--- 154,158 ----
ConstructionSpace csm = new ConstructionSpace(cs.getName());
! ConstructionSpaceFacade.getInstance().create(csm);
mapper.put(new Long(cs.getId()), csm.getId());
***************
*** 171,175 ****
FunctionalSpace fsm = new FunctionalSpace(fs.getName());
! fsm = FunctionalSpaceFacade.getInstance().create(fsm);
mapper.put(new Long(fs.getId()), fsm.getId());
--- 171,175 ----
FunctionalSpace fsm = new FunctionalSpace(fs.getName());
! FunctionalSpaceFacade.getInstance().create(fsm);
mapper.put(new Long(fs.getId()), fsm.getId());
***************
*** 190,194 ****
new net.sourceforge.bprocessor.model.Element(e.getName());
! em = ElementFacade.getInstance().create(em);
mapper.put(new Long(e.getId()), em.getId());
--- 190,194 ----
new net.sourceforge.bprocessor.model.Element(e.getName());
! ElementFacade.getInstance().create(em);
mapper.put(new Long(e.getId()), em.getId());
***************
*** 209,213 ****
new net.sourceforge.bprocessor.model.Part(p.getName());
! pm = PartFacade.getInstance().create(pm);
mapper.put(new Long(p.getId()), pm.getId());
--- 209,213 ----
new net.sourceforge.bprocessor.model.Part(p.getName());
! PartFacade.getInstance().create(pm);
mapper.put(new Long(p.getId()), pm.getId());
***************
*** 232,236 ****
sm.setIsInner(s.isIsinner());
! sm = SurfaceFacade.getInstance().create(sm);
mapper.put(new Long(s.getId()), sm.getId());
--- 232,236 ----
sm.setIsInner(s.isIsinner());
! SurfaceFacade.getInstance().create(sm);
mapper.put(new Long(s.getId()), sm.getId());
***************
*** 251,255 ****
new net.sourceforge.bprocessor.model.Edge(e.getName());
! em = EdgeFacade.getInstance().create(em);
mapper.put(new Long(e.getId()), em.getId());
--- 251,255 ----
new net.sourceforge.bprocessor.model.Edge(e.getName());
! EdgeFacade.getInstance().create(em);
mapper.put(new Long(e.getId()), em.getId());
***************
*** 275,279 ****
vm.setW(v.getW());
! vm = VertexFacade.getInstance().create(vm);
mapper.put(new Long(v.getId()), vm.getId());
--- 275,279 ----
vm.setW(v.getW());
! VertexFacade.getInstance().create(vm);
mapper.put(new Long(v.getId()), vm.getId());
|