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

项目:AvoinApotti    文件:AllocateCubicleImpl.java   
public ims.emergency.vo.CubicleAllocationShortVoCollection listCubicleAllocationShortVo(ims.core.admin.vo.CareContextRefVo careContextRef)
{
    if( careContextRef == null)
        throw new CodingRuntimeException("Care Context not provided");

    DomainFactory factory = getDomainFactory();

    String hsql = "select c1_1  from CubicleAllocation as c1_1 left join c1_1.attendance as c2_1 where  (c2_1.id = :id)";


    List cubicle = factory.find(hsql, new String[] {"id"}, new Object[] {careContextRef.getID_CareContext()});
    if(cubicle != null && cubicle.size() > 0)
    {
        CubicleAllocationShortVoCollection tempColl = CubicleAllocationShortVoAssembler.createCubicleAllocationShortVoCollectionFromCubicleAllocation(cubicle);
        return tempColl;
    }


    return null;

}
项目:openMAXIMS    文件:AllocateCubicleImpl.java   
public ims.emergency.vo.CubicleAllocationShortVoCollection listCubicleAllocationShortVo(ims.core.admin.vo.CareContextRefVo careContextRef)
{
    if( careContextRef == null)
        throw new CodingRuntimeException("Care Context not provided");

    DomainFactory factory = getDomainFactory();

    String hsql = "select c1_1  from CubicleAllocation as c1_1 left join c1_1.attendance as c2_1 where  (c2_1.id = :id)";


    List cubicle = factory.find(hsql, new String[] {"id"}, new Object[] {careContextRef.getID_CareContext()});
    if(cubicle != null && cubicle.size() > 0)
    {
        CubicleAllocationShortVoCollection tempColl = CubicleAllocationShortVoAssembler.createCubicleAllocationShortVoCollectionFromCubicleAllocation(cubicle);
        return tempColl;
    }


    return null;

}
项目:openMAXIMS    文件:AllocateCubicleImpl.java   
public ims.emergency.vo.CubicleAllocationShortVoCollection listCubicleAllocationShortVo(ims.core.admin.vo.CareContextRefVo careContextRef)
{
    if( careContextRef == null)
        throw new CodingRuntimeException("Care Context not provided");

    DomainFactory factory = getDomainFactory();

    String hsql = "select c1_1  from CubicleAllocation as c1_1 left join c1_1.attendance as c2_1 where  (c2_1.id = :id)";


    List cubicle = factory.find(hsql, new String[] {"id"}, new Object[] {careContextRef.getID_CareContext()});
    if(cubicle != null && cubicle.size() > 0)
    {
        CubicleAllocationShortVoCollection tempColl = CubicleAllocationShortVoAssembler.createCubicleAllocationShortVoCollectionFromCubicleAllocation(cubicle);
        return tempColl;
    }


    return null;

}
项目:openmaxims-linux    文件:AllocateCubicleImpl.java   
public ims.emergency.vo.CubicleAllocationShortVoCollection listCubicleAllocationShortVo(ims.core.admin.vo.CareContextRefVo careContextRef)
{
    if( careContextRef == null)
        throw new CodingRuntimeException("Care Context not provided");

    DomainFactory factory = getDomainFactory();

    String hsql = "select c1_1  from CubicleAllocation as c1_1 left join c1_1.attendance as c2_1 where  (c2_1.id = :id)";


    List cubicle = factory.find(hsql, new String[] {"id"}, new Object[] {careContextRef.getID_CareContext()});
    if(cubicle != null && cubicle.size() > 0)
    {
        CubicleAllocationShortVoCollection tempColl = CubicleAllocationShortVoAssembler.createCubicleAllocationShortVoCollectionFromCubicleAllocation(cubicle);
        return tempColl;
    }


    return null;

}