Java 类ims.clinical.vo.domain.EDischargeSTHKSummaryForProcComponentVoAssembler 实例源码

项目:AvoinApotti    文件:EDischargeOpsProcsComponentImpl.java   
public EDischargeSTHKSummaryForProcComponentVo getEDischargeSummary(SummaryRefVo summary) 
{
    if(summary == null || summary.getID_Summary() == null)
        throw new CodingRuntimeException("Can not get EDischargeSummary on nul Id.");

    return EDischargeSTHKSummaryForProcComponentVoAssembler.create((Summary) getDomainFactory().getDomainObject(Summary.class, summary.getID_Summary()));
}
项目:AvoinApotti    文件:EDischargeOpsProcsComponentImpl.java   
public EDischargeSTHKSummaryForProcComponentVo saveEDischargeSummary(EDischargeSTHKSummaryForProcComponentVo summary) throws StaleObjectException 
{
    if(summary == null)
        throw new CodingRuntimeException("Cannot save a null EDischargeSTHKSummary.");

    if(!summary.isValidated())
        throw new CodingRuntimeException("EDischargeSTHKSummary is not validated.");

    DomainFactory factory = getDomainFactory();

    Summary doSummary = EDischargeSTHKSummaryForProcComponentVoAssembler.extractSummary(factory, summary);
    factory.save(doSummary);

    return EDischargeSTHKSummaryForProcComponentVoAssembler.create(doSummary);
}
项目:openMAXIMS    文件:EDischargeOpsProcsComponentImpl.java   
public EDischargeSTHKSummaryForProcComponentVo getEDischargeSummary(SummaryRefVo summary) 
{
    if(summary == null || summary.getID_Summary() == null)
        throw new CodingRuntimeException("Can not get EDischargeSummary on nul Id.");

    return EDischargeSTHKSummaryForProcComponentVoAssembler.create((Summary) getDomainFactory().getDomainObject(Summary.class, summary.getID_Summary()));
}
项目:openMAXIMS    文件:EDischargeOpsProcsComponentImpl.java   
public EDischargeSTHKSummaryForProcComponentVo saveEDischargeSummary(EDischargeSTHKSummaryForProcComponentVo summary) throws StaleObjectException 
{
    if(summary == null)
        throw new CodingRuntimeException("Cannot save a null EDischargeSTHKSummary.");

    if(!summary.isValidated())
        throw new CodingRuntimeException("EDischargeSTHKSummary is not validated.");

    DomainFactory factory = getDomainFactory();

    Summary doSummary = EDischargeSTHKSummaryForProcComponentVoAssembler.extractSummary(factory, summary);
    factory.save(doSummary);

    return EDischargeSTHKSummaryForProcComponentVoAssembler.create(doSummary);
}
项目:openMAXIMS    文件:EDischargeOpsProcsComponentImpl.java   
public EDischargeSTHKSummaryForProcComponentVo getEDischargeSummary(SummaryRefVo summary) 
{
    if(summary == null || summary.getID_Summary() == null)
        throw new CodingRuntimeException("Can not get EDischargeSummary on nul Id.");

    return EDischargeSTHKSummaryForProcComponentVoAssembler.create((Summary) getDomainFactory().getDomainObject(Summary.class, summary.getID_Summary()));
}
项目:openMAXIMS    文件:EDischargeOpsProcsComponentImpl.java   
public EDischargeSTHKSummaryForProcComponentVo saveEDischargeSummary(EDischargeSTHKSummaryForProcComponentVo summary) throws StaleObjectException 
{
    if(summary == null)
        throw new CodingRuntimeException("Cannot save a null EDischargeSTHKSummary.");

    if(!summary.isValidated())
        throw new CodingRuntimeException("EDischargeSTHKSummary is not validated.");

    DomainFactory factory = getDomainFactory();

    Summary doSummary = EDischargeSTHKSummaryForProcComponentVoAssembler.extractSummary(factory, summary);
    factory.save(doSummary);

    return EDischargeSTHKSummaryForProcComponentVoAssembler.create(doSummary);
}
项目:openmaxims-linux    文件:EDischargeOpsProcsComponentImpl.java   
public EDischargeSTHKSummaryForProcComponentVo getEDischargeSummary(SummaryRefVo summary) 
{
    if(summary == null || summary.getID_Summary() == null)
        throw new CodingRuntimeException("Can not get EDischargeSummary on nul Id.");

    return EDischargeSTHKSummaryForProcComponentVoAssembler.create((Summary) getDomainFactory().getDomainObject(Summary.class, summary.getID_Summary()));
}
项目:openmaxims-linux    文件:EDischargeOpsProcsComponentImpl.java   
public EDischargeSTHKSummaryForProcComponentVo saveEDischargeSummary(EDischargeSTHKSummaryForProcComponentVo summary) throws StaleObjectException 
{
    if(summary == null)
        throw new CodingRuntimeException("Cannot save a null EDischargeSTHKSummary.");

    if(!summary.isValidated())
        throw new CodingRuntimeException("EDischargeSTHKSummary is not validated.");

    DomainFactory factory = getDomainFactory();

    Summary doSummary = EDischargeSTHKSummaryForProcComponentVoAssembler.extractSummary(factory, summary);
    factory.save(doSummary);

    return EDischargeSTHKSummaryForProcComponentVoAssembler.create(doSummary);
}