Java 类ims.therapies.vo.StandingSessionVoCollection 实例源码

项目:AvoinApotti    文件:StandingImpl.java   
public StandingSessionVo getStandingSessionByClinicalContact(ClinicalContactRefVo voClinicalContactRef)
{
    if(voClinicalContactRef == null)
        throw new CodingRuntimeException("Standing Session Filter not provided for get call. ");

    String hql = new String("from StandingSession s where s.clinicalContact.id = :CLINICAL_CONTACT_ID");

    java.util.List list = getDomainFactory().find(hql, "CLINICAL_CONTACT_ID", voClinicalContactRef.getID_ClinicalContact());

    StandingSessionVoCollection vo = StandingSessionVoAssembler.createStandingSessionVoCollectionFromStandingSession(list);
    if(vo!=null && vo.size()>0 )
        return vo.get(0);
    else
        return null;
}
项目:openMAXIMS    文件:StandingImpl.java   
public StandingSessionVo getStandingSessionByClinicalContact(ClinicalContactRefVo voClinicalContactRef)
{
    if(voClinicalContactRef == null)
        throw new CodingRuntimeException("Standing Session Filter not provided for get call. ");

    String hql = new String("from StandingSession s where s.clinicalContact.id = :CLINICAL_CONTACT_ID");

    java.util.List list = getDomainFactory().find(hql, "CLINICAL_CONTACT_ID", voClinicalContactRef.getID_ClinicalContact());

    StandingSessionVoCollection vo = StandingSessionVoAssembler.createStandingSessionVoCollectionFromStandingSession(list);
    if(vo!=null && vo.size()>0 )
        return vo.get(0);
    else
        return null;
}
项目:openMAXIMS    文件:StandingImpl.java   
public StandingSessionVo getStandingSessionByClinicalContact(ClinicalContactRefVo voClinicalContactRef)
{
    if(voClinicalContactRef == null)
        throw new CodingRuntimeException("Standing Session Filter not provided for get call. ");

    String hql = new String("from StandingSession s where s.clinicalContact.id = :CLINICAL_CONTACT_ID");

    java.util.List list = getDomainFactory().find(hql, "CLINICAL_CONTACT_ID", voClinicalContactRef.getID_ClinicalContact());

    StandingSessionVoCollection vo = StandingSessionVoAssembler.createStandingSessionVoCollectionFromStandingSession(list);
    if(vo!=null && vo.size()>0 )
        return vo.get(0);
    else
        return null;
}
项目:openmaxims-linux    文件:StandingImpl.java   
public StandingSessionVo getStandingSessionByClinicalContact(ClinicalContactRefVo voClinicalContactRef)
{
    if(voClinicalContactRef == null)
        throw new CodingRuntimeException("Standing Session Filter not provided for get call. ");

    String hql = new String("from StandingSession s where s.clinicalContact.id = :CLINICAL_CONTACT_ID");

    java.util.List list = getDomainFactory().find(hql, "CLINICAL_CONTACT_ID", voClinicalContactRef.getID_ClinicalContact());

    StandingSessionVoCollection vo = StandingSessionVoAssembler.createStandingSessionVoCollectionFromStandingSession(list);
    if(vo!=null && vo.size()>0 )
        return vo.get(0);
    else
        return null;
}