Java 类ims.nursing.vo.AssessmentComponentCollection 实例源码

项目:openMAXIMS    文件:InfectionControlRepeatableAssessmentImpl.java   
public AssessmentComponent getInfectionComponent(InfectionControlRepeatableAssessmentVo value)
{
    DomainFactory factory = getDomainFactory();

    String hql =" from InfectionControlComponent as infectionControlComponent " +
            "where infectionControlComponent.infectionControlAssessment.id = "+value.getBoId();

    List comps = factory.find(hql);

    AssessmentComponentCollection result = AssessmentComponentAssembler.createAssessmentComponentCollectionFromAssessmentComponent(comps);

    if(result.size() >0)
        return result.get(0);
    else
        return null;
}