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

项目:AvoinApotti    文件:TENSImpl.java   
public ims.therapies.vo.ElectrotherapyTENSVo getElectrotherapyTens(ims.core.vo.ClinicalContactShortVo voClinicalContactShort)
{
    if(voClinicalContactShort == null || voClinicalContactShort.getID_ClinicalContact() == null)
        throw new DomainRuntimeException("Contact not provided for get call. ");

    DomainFactory factory = getDomainFactory();
    ElectrotherapyTENSVo voElectrotherapyTENS  = new ElectrotherapyTENSVo();

    java.util.List electrotherapyTENSList = factory.find("from ElectrotherapyTENS EctTENS where EctTENS.clinicalContact.id = :contactId", new String[]{"contactId"}, new Object[]{voClinicalContactShort.getID_ClinicalContact()});

    ElectrotherapyTENSVoCollection coll = ElectrotherapyTENSVoAssembler.createElectrotherapyTENSVoCollectionFromElectrotherapyTENS(electrotherapyTENSList);//   WDEV-13592

    if (coll != null && coll.size()>0)//    WDEV-13592
        voElectrotherapyTENS = coll.get(0);   //    WDEV-13592 
    else
        voElectrotherapyTENS = null;

    return voElectrotherapyTENS;
}
项目:openMAXIMS    文件:TENSImpl.java   
public ims.therapies.vo.ElectrotherapyTENSVo getElectrotherapyTens(ims.core.vo.ClinicalContactShortVo voClinicalContactShort)
{
    if(voClinicalContactShort == null || voClinicalContactShort.getID_ClinicalContact() == null)
        throw new DomainRuntimeException("Contact not provided for get call. ");

    DomainFactory factory = getDomainFactory();
    ElectrotherapyTENSVo voElectrotherapyTENS  = new ElectrotherapyTENSVo();

    java.util.List electrotherapyTENSList = factory.find("from ElectrotherapyTENS EctTENS where EctTENS.clinicalContact.id = :contactId", new String[]{"contactId"}, new Object[]{voClinicalContactShort.getID_ClinicalContact()});

    ElectrotherapyTENSVoCollection coll = ElectrotherapyTENSVoAssembler.createElectrotherapyTENSVoCollectionFromElectrotherapyTENS(electrotherapyTENSList);//   WDEV-13592

    if (coll != null && coll.size()>0)//    WDEV-13592
        voElectrotherapyTENS = coll.get(0);   //    WDEV-13592 
    else
        voElectrotherapyTENS = null;

    return voElectrotherapyTENS;
}
项目:openMAXIMS    文件:TENSImpl.java   
public ims.therapies.vo.ElectrotherapyTENSVo getElectrotherapyTens(ims.core.vo.ClinicalContactShortVo voClinicalContactShort)
{
    if(voClinicalContactShort == null || voClinicalContactShort.getID_ClinicalContact() == null)
        throw new DomainRuntimeException("Contact not provided for get call. ");

    DomainFactory factory = getDomainFactory();
    ElectrotherapyTENSVo voElectrotherapyTENS  = new ElectrotherapyTENSVo();

    java.util.List electrotherapyTENSList = factory.find("from ElectrotherapyTENS EctTENS where EctTENS.clinicalContact.id = :contactId", new String[]{"contactId"}, new Object[]{voClinicalContactShort.getID_ClinicalContact()});

    ElectrotherapyTENSVoCollection coll = ElectrotherapyTENSVoAssembler.createElectrotherapyTENSVoCollectionFromElectrotherapyTENS(electrotherapyTENSList);//   WDEV-13592

    if (coll != null && coll.size()>0)//    WDEV-13592
        voElectrotherapyTENS = coll.get(0);   //    WDEV-13592 
    else
        voElectrotherapyTENS = null;

    return voElectrotherapyTENS;
}
项目:openmaxims-linux    文件:TENSImpl.java   
public ims.therapies.vo.ElectrotherapyTENSVo getElectrotherapyTens(ims.core.vo.ClinicalContactShortVo voClinicalContactShort)
{
    if(voClinicalContactShort == null || voClinicalContactShort.getID_ClinicalContact() == null)
        throw new DomainRuntimeException("Contact not provided for get call. ");

    DomainFactory factory = getDomainFactory();
    ElectrotherapyTENSVo voElectrotherapyTENS  = new ElectrotherapyTENSVo();

    java.util.List electrotherapyTENSList = factory.find("from ElectrotherapyTENS EctTENS where EctTENS.clinicalContact.id = :contactId", new String[]{"contactId"}, new Object[]{voClinicalContactShort.getID_ClinicalContact()});

    ElectrotherapyTENSVoCollection coll = ElectrotherapyTENSVoAssembler.createElectrotherapyTENSVoCollectionFromElectrotherapyTENS(electrotherapyTENSList);//   WDEV-13592

    if (coll != null && coll.size()>0)//    WDEV-13592
        voElectrotherapyTENS = coll.get(0);   //    WDEV-13592 
    else
        voElectrotherapyTENS = null;

    return voElectrotherapyTENS;
}