public ProblemTriageProtocolVoCollection listProblemTriageProtocols(Boolean activeOnly) { if (activeOnly.booleanValue()) return ProblemTriageProtocolVoAssembler.createProblemTriageProtocolVoCollectionFromProblemTriageProtocol(getDomainFactory().find(" from ProblemTriageProtocol ptp where ptp.isActive = " + activeOnly)).sort(); else return ProblemTriageProtocolVoAssembler.createProblemTriageProtocolVoCollectionFromProblemTriageProtocol(getDomainFactory().find(" from ProblemTriageProtocol ")).sort(); }
public ProblemTriageProtocolVo saveProblemTriageProtocol(ProblemTriageProtocolVo ptProtocolVo) throws StaleObjectException { if(ptProtocolVo == null) throw new DomainRuntimeException("Invalid record"); if(!ptProtocolVo.isValidated()) throw new CodingRuntimeException("Record not validated"); DomainFactory factory = getDomainFactory(); ProblemTriageProtocol doPTP = ProblemTriageProtocolVoAssembler.extractProblemTriageProtocol(factory, ptProtocolVo); factory.save(doPTP); return ProblemTriageProtocolVoAssembler.create(doPTP); }
public ProblemTriageProtocolVo getProblemTriageProtocol(ProblemTriageProtocolRefVo probtriProtocolRefVo) { if(probtriProtocolRefVo == null || probtriProtocolRefVo.getID_ProblemTriageProtocol() == null) throw new DomainRuntimeException("Invalid record"); return ProblemTriageProtocolVoAssembler.create((ProblemTriageProtocol)getDomainFactory().getDomainObject(ProblemTriageProtocol.class, probtriProtocolRefVo.getID_ProblemTriageProtocol())); }