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

项目:AvoinApotti    文件:BobathImpl.java   
/**
* get Bobath record for a clinical contact
*/
public BobathVo getBoBath(ims.core.vo.ClinicalContactShortVo voClinicalContact)
{
    if(voClinicalContact == null)
        throw new CodingRuntimeException("Bobath Filter not provided for get call. ");

    String hql = new String("from Bobath b where b.clinicalContact.id = :CLINICAL_CONTACT_ID");

    BobathVoCollection bobaths = BobathVoAssembler.createBobathVoCollectionFromBobath(getDomainFactory().find(hql, "CLINICAL_CONTACT_ID", voClinicalContact.getID_ClinicalContact()));

    if (bobaths.size() > 0)
        return bobaths.get(0);

    return null;
}
项目:openMAXIMS    文件:BobathImpl.java   
/**
* get Bobath record for a clinical contact
*/
public BobathVo getBoBath(ims.core.vo.ClinicalContactShortVo voClinicalContact)
{
    if(voClinicalContact == null)
        throw new CodingRuntimeException("Bobath Filter not provided for get call. ");

    String hql = new String("from Bobath b where b.clinicalContact.id = :CLINICAL_CONTACT_ID");

    BobathVoCollection bobaths = BobathVoAssembler.createBobathVoCollectionFromBobath(getDomainFactory().find(hql, "CLINICAL_CONTACT_ID", voClinicalContact.getID_ClinicalContact()));

    if (bobaths.size() > 0)
        return bobaths.get(0);

    return null;
}
项目:openMAXIMS    文件:BobathImpl.java   
/**
* get Bobath record for a clinical contact
*/
public BobathVo getBoBath(ims.core.vo.ClinicalContactShortVo voClinicalContact)
{
    if(voClinicalContact == null)
        throw new CodingRuntimeException("Bobath Filter not provided for get call. ");

    String hql = new String("from Bobath b where b.clinicalContact.id = :CLINICAL_CONTACT_ID");

    BobathVoCollection bobaths = BobathVoAssembler.createBobathVoCollectionFromBobath(getDomainFactory().find(hql, "CLINICAL_CONTACT_ID", voClinicalContact.getID_ClinicalContact()));

    if (bobaths.size() > 0)
        return bobaths.get(0);

    return null;
}
项目:openmaxims-linux    文件:BobathImpl.java   
/**
* get Bobath record for a clinical contact
*/
public BobathVo getBoBath(ims.core.vo.ClinicalContactShortVo voClinicalContact)
{
    if(voClinicalContact == null)
        throw new CodingRuntimeException("Bobath Filter not provided for get call. ");

    String hql = new String("from Bobath b where b.clinicalContact.id = :CLINICAL_CONTACT_ID");

    BobathVoCollection bobaths = BobathVoAssembler.createBobathVoCollectionFromBobath(getDomainFactory().find(hql, "CLINICAL_CONTACT_ID", voClinicalContact.getID_ClinicalContact()));

    if (bobaths.size() > 0)
        return bobaths.get(0);

    return null;
}