Java 类ims.emergency.vo.domain.ReferralToSpecialtyTeamForEventHistoryVoAssembler 实例源码

项目:AvoinApotti    文件:EventHistoryImpl.java   
public ReferralToSpecialtyTeamForEventHistoryVoCollection getReferralsToSpecialty(CareContextRefVo careContextRef)
{
    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get ReferralToSpecialtyTeamForEventHistoryVoCollection on null Id for CareContext ");
    }

    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    StringBuffer hql = new StringBuffer();

    hql.append(" select referral from ReferralToSpecTeam as referral left join referral.attendance as contextID where contextID.id = :contextID");
    markers.add("contextID");
    values.add(careContextRef.getID_CareContext());

    return ReferralToSpecialtyTeamForEventHistoryVoAssembler.createReferralToSpecialtyTeamForEventHistoryVoCollectionFromReferralToSpecTeam(factory.find(hql.toString(), markers, values));
}
项目:openMAXIMS    文件:EventHistoryImpl.java   
public ReferralToSpecialtyTeamForEventHistoryVoCollection getReferralsToSpecialty(CareContextRefVo careContextRef)
{
    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get ReferralToSpecialtyTeamForEventHistoryVoCollection on null Id for CareContext ");
    }

    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    StringBuffer hql = new StringBuffer();

    hql.append(" select referral from ReferralToSpecTeam as referral left join referral.attendance as contextID where contextID.id = :contextID");
    markers.add("contextID");
    values.add(careContextRef.getID_CareContext());

    return ReferralToSpecialtyTeamForEventHistoryVoAssembler.createReferralToSpecialtyTeamForEventHistoryVoCollectionFromReferralToSpecTeam(factory.find(hql.toString(), markers, values));
}
项目:openMAXIMS    文件:AmentAttendanceSeenByHCPTimesImpl.java   
public void save(SeenByHcpForEventHistoryVo seenBy, ReferralToSpecialtyTeamForEventHistoryVo referralToSpecialty) throws ims.domain.exceptions.StaleObjectException
{
    if(seenBy != null && !seenBy.isValidated())
        throw new CodingRuntimeException("SeenByHcpForEventHistoryVo is not validated.");

    if(referralToSpecialty != null && !referralToSpecialty.isValidated())
        throw new CodingRuntimeException("ReferralToSpecialtyTeamForEventHistoryVo is not validated.");

    DomainFactory factory = getDomainFactory();

    if(seenBy != null)
    {
        SeenByHCP doSeenBy = SeenByHcpForEventHistoryVoAssembler.extractSeenByHCP(factory, seenBy);
        factory.save(doSeenBy);
    }

    if(referralToSpecialty != null)
    {
        ReferralToSpecTeam doReferralToSpecialty = ReferralToSpecialtyTeamForEventHistoryVoAssembler.extractReferralToSpecTeam(factory, referralToSpecialty);
        factory.save(doReferralToSpecialty);
    }
}
项目:openMAXIMS    文件:EventHistoryImpl.java   
public ReferralToSpecialtyTeamForEventHistoryVoCollection getReferralsToSpecialty(CareContextRefVo careContextRef)
{
    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get ReferralToSpecialtyTeamForEventHistoryVoCollection on null Id for CareContext ");
    }

    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    StringBuffer hql = new StringBuffer();

    hql.append(" select referral from ReferralToSpecTeam as referral left join referral.attendance as contextID where contextID.id = :contextID");
    markers.add("contextID");
    values.add(careContextRef.getID_CareContext());

    return ReferralToSpecialtyTeamForEventHistoryVoAssembler.createReferralToSpecialtyTeamForEventHistoryVoCollectionFromReferralToSpecTeam(factory.find(hql.toString(), markers, values));
}
项目:openmaxims-linux    文件:EventHistoryImpl.java   
public ReferralToSpecialtyTeamForEventHistoryVoCollection getReferralsToSpecialty(CareContextRefVo careContextRef)
{
    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get ReferralToSpecialtyTeamForEventHistoryVoCollection on null Id for CareContext ");
    }

    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    StringBuffer hql = new StringBuffer();

    hql.append(" select referral from ReferralToSpecTeam as referral left join referral.attendance as contextID where contextID.id = :contextID");
    markers.add("contextID");
    values.add(careContextRef.getID_CareContext());

    return ReferralToSpecialtyTeamForEventHistoryVoAssembler.createReferralToSpecialtyTeamForEventHistoryVoCollectionFromReferralToSpecTeam(factory.find(hql.toString(), markers, values));
}
项目:openMAXIMS    文件:AmentAttendanceSeenByHCPTimesImpl.java   
public ReferralToSpecialtyTeamForEventHistoryVo getReferralToSpecialty(ReferralToSpecTeamRefVo referralToSpecialty)
{
    if(referralToSpecialty == null || referralToSpecialty.getID_ReferralToSpecTeam() == null)
        return null;

    ReferralToSpecTeam doReferral = (ReferralToSpecTeam) getDomainFactory().getDomainObject(ReferralToSpecTeam.class, referralToSpecialty.getID_ReferralToSpecTeam());

    return ReferralToSpecialtyTeamForEventHistoryVoAssembler.create(doReferral);
}