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

项目:AvoinApotti    文件:EventHistoryImpl.java   
public TriageForEventHistoryVo getTriageForEventHistory(CareContextRefVo careContextRef)
{
    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get TriageForEventHistoryVo 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 triage from Triage as triage left join triage.attendance as contextID where contextID.id = :contextID");
    markers.add("contextID");
    values.add(careContextRef.getID_CareContext());

    TriageForEventHistoryVoCollection triage = TriageForEventHistoryVoAssembler.createTriageForEventHistoryVoCollectionFromTriage(factory.find(hql.toString(), markers, values));

    if (triage != null && triage.size() > 0)
    {
        return triage.get(0);
    }
    else
    {
        return null;
    }
}
项目:openMAXIMS    文件:EventHistoryImpl.java   
public TriageForEventHistoryVo getTriageForEventHistory(CareContextRefVo careContextRef)
{
    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get TriageForEventHistoryVo 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 triage from Triage as triage left join triage.attendance as contextID where contextID.id = :contextID");
    markers.add("contextID");
    values.add(careContextRef.getID_CareContext());

    TriageForEventHistoryVoCollection triage = TriageForEventHistoryVoAssembler.createTriageForEventHistoryVoCollectionFromTriage(factory.find(hql.toString(), markers, values));

    if (triage != null && triage.size() > 0)
    {
        return triage.get(0);
    }
    else
    {
        return null;
    }
}
项目:openMAXIMS    文件:EventHistoryImpl.java   
public TriageForEventHistoryVo getTriageForEventHistory(CareContextRefVo careContextRef)
{
    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get TriageForEventHistoryVo 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 triage from Triage as triage left join triage.attendance as contextID where contextID.id = :contextID");
    markers.add("contextID");
    values.add(careContextRef.getID_CareContext());

    TriageForEventHistoryVoCollection triage = TriageForEventHistoryVoAssembler.createTriageForEventHistoryVoCollectionFromTriage(factory.find(hql.toString(), markers, values));

    if (triage != null && triage.size() > 0)
    {
        return triage.get(0);
    }
    else
    {
        return null;
    }
}
项目:openmaxims-linux    文件:EventHistoryImpl.java   
public TriageForEventHistoryVo getTriageForEventHistory(CareContextRefVo careContextRef)
{
    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get TriageForEventHistoryVo 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 triage from Triage as triage left join triage.attendance as contextID where contextID.id = :contextID");
    markers.add("contextID");
    values.add(careContextRef.getID_CareContext());

    TriageForEventHistoryVoCollection triage = TriageForEventHistoryVoAssembler.createTriageForEventHistoryVoCollectionFromTriage(factory.find(hql.toString(), markers, values));

    if (triage != null && triage.size() > 0)
    {
        return triage.get(0);
    }
    else
    {
        return null;
    }
}