Java 类ims.ocrr.vo.domain.ChemotherapyDetailsVoAssembler 实例源码

项目:AvoinApotti    文件:ChemotherapyDetailsImpl.java   
public ChemotherapyDetailsVo getChemotherapyDetailsVo(ChemotherapyDetailsRefVo voChemotherapyDetailsRef)
{
    if(voChemotherapyDetailsRef == null || !voChemotherapyDetailsRef.getID_ChemotherapyDetailsIsNotNull())
        return null;

    return ChemotherapyDetailsVoAssembler.create((ChemotherapyDetails)getDomainFactory().getDomainObject(ChemotherapyDetails.class, voChemotherapyDetailsRef.getID_ChemotherapyDetails()));
}
项目:AvoinApotti    文件:ChemotherapyDetailsImpl.java   
public ChemotherapyDetailsVo saveChemotherapyDetailsVo(ChemotherapyDetailsVo voChemotherapyDetails) throws StaleObjectException
{
    if(voChemotherapyDetails == null)
        throw new RuntimeException("Cannot save null ChemotherapyDetailsVo");

    if(voChemotherapyDetails.isValidated() == false)
        throw new CodingRuntimeException("ChemotherapyDetailsVo is not validated");

    DomainFactory factory = getDomainFactory();
    ChemotherapyDetails doChemotherapyDetails = ChemotherapyDetailsVoAssembler.extractChemotherapyDetails(factory, voChemotherapyDetails);
    factory.save(doChemotherapyDetails);

    return ChemotherapyDetailsVoAssembler.create(doChemotherapyDetails);
}
项目:openMAXIMS    文件:ChemotherapyDetailsImpl.java   
public ChemotherapyDetailsVo getChemotherapyDetailsVo(ChemotherapyDetailsRefVo voChemotherapyDetailsRef)
{
    if(voChemotherapyDetailsRef == null || !voChemotherapyDetailsRef.getID_ChemotherapyDetailsIsNotNull())
        return null;

    return ChemotherapyDetailsVoAssembler.create((ChemotherapyDetails)getDomainFactory().getDomainObject(ChemotherapyDetails.class, voChemotherapyDetailsRef.getID_ChemotherapyDetails()));
}
项目:openMAXIMS    文件:ChemotherapyDetailsImpl.java   
public ChemotherapyDetailsVo saveChemotherapyDetailsVo(ChemotherapyDetailsVo voChemotherapyDetails) throws StaleObjectException
{
    if(voChemotherapyDetails == null)
        throw new RuntimeException("Cannot save null ChemotherapyDetailsVo");

    if(voChemotherapyDetails.isValidated() == false)
        throw new CodingRuntimeException("ChemotherapyDetailsVo is not validated");

    DomainFactory factory = getDomainFactory();
    ChemotherapyDetails doChemotherapyDetails = ChemotherapyDetailsVoAssembler.extractChemotherapyDetails(factory, voChemotherapyDetails);
    factory.save(doChemotherapyDetails);

    return ChemotherapyDetailsVoAssembler.create(doChemotherapyDetails);
}
项目:openMAXIMS    文件:ChemotherapyDetailsImpl.java   
public ChemotherapyDetailsVo getChemotherapyDetailsVo(ChemotherapyDetailsRefVo voChemotherapyDetailsRef)
{
    if(voChemotherapyDetailsRef == null || !voChemotherapyDetailsRef.getID_ChemotherapyDetailsIsNotNull())
        return null;

    return ChemotherapyDetailsVoAssembler.create((ChemotherapyDetails)getDomainFactory().getDomainObject(ChemotherapyDetails.class, voChemotherapyDetailsRef.getID_ChemotherapyDetails()));
}
项目:openMAXIMS    文件:ChemotherapyDetailsImpl.java   
public ChemotherapyDetailsVo saveChemotherapyDetailsVo(ChemotherapyDetailsVo voChemotherapyDetails) throws StaleObjectException
{
    if(voChemotherapyDetails == null)
        throw new RuntimeException("Cannot save null ChemotherapyDetailsVo");

    if(voChemotherapyDetails.isValidated() == false)
        throw new CodingRuntimeException("ChemotherapyDetailsVo is not validated");

    DomainFactory factory = getDomainFactory();
    ChemotherapyDetails doChemotherapyDetails = ChemotherapyDetailsVoAssembler.extractChemotherapyDetails(factory, voChemotherapyDetails);
    factory.save(doChemotherapyDetails);

    return ChemotherapyDetailsVoAssembler.create(doChemotherapyDetails);
}
项目:openmaxims-linux    文件:ChemotherapyDetailsImpl.java   
public ChemotherapyDetailsVo getChemotherapyDetailsVo(ChemotherapyDetailsRefVo voChemotherapyDetailsRef)
{
    if(voChemotherapyDetailsRef == null || !voChemotherapyDetailsRef.getID_ChemotherapyDetailsIsNotNull())
        return null;

    return ChemotherapyDetailsVoAssembler.create((ChemotherapyDetails)getDomainFactory().getDomainObject(ChemotherapyDetails.class, voChemotherapyDetailsRef.getID_ChemotherapyDetails()));
}
项目:openmaxims-linux    文件:ChemotherapyDetailsImpl.java   
public ChemotherapyDetailsVo saveChemotherapyDetailsVo(ChemotherapyDetailsVo voChemotherapyDetails) throws StaleObjectException
{
    if(voChemotherapyDetails == null)
        throw new RuntimeException("Cannot save null ChemotherapyDetailsVo");

    if(voChemotherapyDetails.isValidated() == false)
        throw new CodingRuntimeException("ChemotherapyDetailsVo is not validated");

    DomainFactory factory = getDomainFactory();
    ChemotherapyDetails doChemotherapyDetails = ChemotherapyDetailsVoAssembler.extractChemotherapyDetails(factory, voChemotherapyDetails);
    factory.save(doChemotherapyDetails);

    return ChemotherapyDetailsVoAssembler.create(doChemotherapyDetails);
}