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

项目:AvoinApotti    文件:SportsActivitiesImpl.java   
/**
* lists Sports Activity Session for ClinicalContact
*/
public SportsActivitySessionVo getSportsActivityByClinicalContact(ClinicalContactRefVo voClinicalContactRef)
{
    if(voClinicalContactRef == null)
        throw new CodingRuntimeException("Sports Activity Filter not provided for get call. ");

    String hql = new String("from SportsActivitySession s where s.clinicalContact.id = :CLINICAL_CONTACT_ID order by s.authoringDateTime desc ");

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

    if (list.size() == 0)
        return null;

    SportsActivitySessionVoCollection vo = SportsActivitySessionVoAssembler.createSportsActivitySessionVoCollectionFromSportsActivitySession(list);

    if(vo!=null && vo.size()>0)
        return vo.get(0);

    return null;
}
项目:openMAXIMS    文件:SportsActivitiesImpl.java   
/**
* lists Sports Activity Session for ClinicalContact
*/
public SportsActivitySessionVo getSportsActivityByClinicalContact(ClinicalContactRefVo voClinicalContactRef)
{
    if(voClinicalContactRef == null)
        throw new CodingRuntimeException("Sports Activity Filter not provided for get call. ");

    String hql = new String("from SportsActivitySession s where s.clinicalContact.id = :CLINICAL_CONTACT_ID order by s.authoringDateTime desc ");

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

    if (list.size() == 0)
        return null;

    SportsActivitySessionVoCollection vo = SportsActivitySessionVoAssembler.createSportsActivitySessionVoCollectionFromSportsActivitySession(list);

    if(vo!=null && vo.size()>0)
        return vo.get(0);

    return null;
}
项目:openMAXIMS    文件:SportsActivitiesImpl.java   
/**
* lists Sports Activity Session for ClinicalContact
*/
public SportsActivitySessionVo getSportsActivityByClinicalContact(ClinicalContactRefVo voClinicalContactRef)
{
    if(voClinicalContactRef == null)
        throw new CodingRuntimeException("Sports Activity Filter not provided for get call. ");

    String hql = new String("from SportsActivitySession s where s.clinicalContact.id = :CLINICAL_CONTACT_ID order by s.authoringDateTime desc ");

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

    if (list.size() == 0)
        return null;

    SportsActivitySessionVoCollection vo = SportsActivitySessionVoAssembler.createSportsActivitySessionVoCollectionFromSportsActivitySession(list);

    if(vo!=null && vo.size()>0)
        return vo.get(0);

    return null;
}
项目:openmaxims-linux    文件:SportsActivitiesImpl.java   
/**
* lists Sports Activity Session for ClinicalContact
*/
public SportsActivitySessionVo getSportsActivityByClinicalContact(ClinicalContactRefVo voClinicalContactRef)
{
    if(voClinicalContactRef == null)
        throw new CodingRuntimeException("Sports Activity Filter not provided for get call. ");

    String hql = new String("from SportsActivitySession s where s.clinicalContact.id = :CLINICAL_CONTACT_ID order by s.authoringDateTime desc ");

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

    if (list.size() == 0)
        return null;

    SportsActivitySessionVoCollection vo = SportsActivitySessionVoAssembler.createSportsActivitySessionVoCollectionFromSportsActivitySession(list);

    if(vo!=null && vo.size()>0)
        return vo.get(0);

    return null;
}