Java 类ims.emergency.vo.domain.ProblemTriageProtocolVoAssembler 实例源码

项目:AvoinApotti    文件:ManchesterTreatmentProtocolAdminImpl.java   
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();
}
项目:AvoinApotti    文件:ManchesterTreatmentProtocolAdminImpl.java   
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);

}
项目:AvoinApotti    文件:ManchesterTreatmentProtocolAdminImpl.java   
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()));
}
项目:openMAXIMS    文件:ManchesterTreatmentProtocolAdminImpl.java   
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();
}
项目:openMAXIMS    文件:ManchesterTreatmentProtocolAdminImpl.java   
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);

}
项目:openMAXIMS    文件:ManchesterTreatmentProtocolAdminImpl.java   
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()));
}
项目:openmaxims-linux    文件:ManchesterTreatmentProtocolAdminImpl.java   
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();
}
项目:openmaxims-linux    文件:ManchesterTreatmentProtocolAdminImpl.java   
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);

}
项目:openmaxims-linux    文件:ManchesterTreatmentProtocolAdminImpl.java   
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()));
}