Java 类ims.clinical.vo.SystemReviewVoCollection 实例源码

项目:AvoinApotti    文件:SystemsReviewImpl.java   
/**
* getSystemReview for a clinical contact.
*/
public ims.clinical.vo.SystemReviewVo getSystemReview(ims.core.vo.ClinicalContactShortVo voClinicalContactShort)
{
    if(voClinicalContactShort == null || voClinicalContactShort.getID_ClinicalContact() == null)
        throw new DomainRuntimeException("Contact not provided for get call. ");

    DomainFactory factory = getDomainFactory();
    List sysReviewList =   factory.find(" from SystemReview sr where sr.clinicalContact.id = :idCC )",
            new String[]{"idCC" },
            new Object[]{ voClinicalContactShort.getID_ClinicalContact()});

    SystemReviewVoCollection voColl = SystemReviewVoAssembler.createSystemReviewVoCollectionFromSystemReview(sysReviewList);

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

}
项目:openMAXIMS    文件:SystemsReviewImpl.java   
/**
* getSystemReview for a clinical contact.
*/
public ims.clinical.vo.SystemReviewVo getSystemReview(ims.core.vo.ClinicalContactShortVo voClinicalContactShort)
{
    if(voClinicalContactShort == null || voClinicalContactShort.getID_ClinicalContact() == null)
        throw new DomainRuntimeException("Contact not provided for get call. ");

    DomainFactory factory = getDomainFactory();
    List sysReviewList =   factory.find(" from SystemReview sr where sr.clinicalContact.id = :idCC )",
            new String[]{"idCC" },
            new Object[]{ voClinicalContactShort.getID_ClinicalContact()});

    SystemReviewVoCollection voColl = SystemReviewVoAssembler.createSystemReviewVoCollectionFromSystemReview(sysReviewList);

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

}
项目:openMAXIMS    文件:SystemsReviewImpl.java   
/**
* getSystemReview for a clinical contact.
*/
public ims.clinical.vo.SystemReviewVo getSystemReview(ims.core.vo.ClinicalContactShortVo voClinicalContactShort)
{
    if(voClinicalContactShort == null || voClinicalContactShort.getID_ClinicalContact() == null)
        throw new DomainRuntimeException("Contact not provided for get call. ");

    DomainFactory factory = getDomainFactory();
    List sysReviewList =   factory.find(" from SystemReview sr where sr.clinicalContact.id = :idCC )",
            new String[]{"idCC" },
            new Object[]{ voClinicalContactShort.getID_ClinicalContact()});

    SystemReviewVoCollection voColl = SystemReviewVoAssembler.createSystemReviewVoCollectionFromSystemReview(sysReviewList);

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

}
项目:openmaxims-linux    文件:SystemsReviewImpl.java   
/**
* getSystemReview for a clinical contact.
*/
public ims.clinical.vo.SystemReviewVo getSystemReview(ims.core.vo.ClinicalContactShortVo voClinicalContactShort)
{
    if(voClinicalContactShort == null || voClinicalContactShort.getID_ClinicalContact() == null)
        throw new DomainRuntimeException("Contact not provided for get call. ");

    DomainFactory factory = getDomainFactory();
    List sysReviewList =   factory.find(" from SystemReview sr where sr.clinicalContact.id = :idCC )",
            new String[]{"idCC" },
            new Object[]{ voClinicalContactShort.getID_ClinicalContact()});

    SystemReviewVoCollection voColl = SystemReviewVoAssembler.createSystemReviewVoCollectionFromSystemReview(sysReviewList);

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

}