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

项目:AvoinApotti    文件:TrackingConfigurationImpl.java   
public CubicleAllocationVoCollection getAllocationCubicle(TrackingCubicleRoomBedRefVo trackcubId)
{
    if( trackcubId == null)
        return null;
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();

    hql.append(" select c1_1 from CubicleAllocation as c1_1 left join c1_1.cubicleRoomBed as t1_1 where (t1_1.id = :trackcubid)"); 
    List<?> trackingList = factory.find(hql.toString(), new String[]{"trackcubid"}, new Object[]{trackcubId.getID_TrackingCubicleRoomBed()});

    if( trackingList != null && trackingList.size() > 0)
    {
        CubicleAllocationVoCollection tempColl = CubicleAllocationVoAssembler.createCubicleAllocationVoCollectionFromCubicleAllocation(trackingList);
        return  tempColl;
    }



    return null;
}
项目:AvoinApotti    文件:CubiclesRoomsBedsCCImpl.java   
public CubicleAllocationVoCollection getAllcotiobCubilce(TrackingCubicleRoomBedRefVo trackCubId)
{
    if( trackCubId == null)
        return null;
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();

    hql.append(" select c1_1 from CubicleAllocation as c1_1 left join c1_1.cubicleRoomBed as t1_1 where (t1_1.id = :trackcubid)"); 
    List<?> trackingList = factory.find(hql.toString(), new String[]{"trackcubid"}, new Object[]{trackCubId.getID_TrackingCubicleRoomBed()});

    if( trackingList != null && trackingList.size() > 0)
    {
        CubicleAllocationVoCollection tempColl = CubicleAllocationVoAssembler.createCubicleAllocationVoCollectionFromCubicleAllocation(trackingList);
        return  tempColl;
    }



    return null;
}
项目:openMAXIMS    文件:TrackingConfigurationImpl.java   
public CubicleAllocationVoCollection getAllocationCubicle(TrackingCubicleRoomBedRefVo trackcubId)
{
    if( trackcubId == null)
        return null;
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();

    hql.append(" select c1_1 from CubicleAllocation as c1_1 left join c1_1.cubicleRoomBed as t1_1 where (t1_1.id = :trackcubid)"); 
    List<?> trackingList = factory.find(hql.toString(), new String[]{"trackcubid"}, new Object[]{trackcubId.getID_TrackingCubicleRoomBed()});

    if( trackingList != null && trackingList.size() > 0)
    {
        CubicleAllocationVoCollection tempColl = CubicleAllocationVoAssembler.createCubicleAllocationVoCollectionFromCubicleAllocation(trackingList);
        return  tempColl;
    }



    return null;
}
项目:openMAXIMS    文件:CubiclesRoomsBedsCCImpl.java   
public CubicleAllocationVoCollection getAllcotiobCubilce(TrackingCubicleRoomBedRefVo trackCubId)
{
    if( trackCubId == null)
        return null;
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();

    hql.append(" select c1_1 from CubicleAllocation as c1_1 left join c1_1.cubicleRoomBed as t1_1 where (t1_1.id = :trackcubid)"); 
    List<?> trackingList = factory.find(hql.toString(), new String[]{"trackcubid"}, new Object[]{trackCubId.getID_TrackingCubicleRoomBed()});

    if( trackingList != null && trackingList.size() > 0)
    {
        CubicleAllocationVoCollection tempColl = CubicleAllocationVoAssembler.createCubicleAllocationVoCollectionFromCubicleAllocation(trackingList);
        return  tempColl;
    }



    return null;
}
项目:openMAXIMS    文件:TrackingConfigurationImpl.java   
public CubicleAllocationVoCollection getAllocationCubicle(TrackingCubicleRoomBedRefVo trackcubId)
{
    if( trackcubId == null)
        return null;
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();

    hql.append(" select c1_1 from CubicleAllocation as c1_1 left join c1_1.cubicleRoomBed as t1_1 where (t1_1.id = :trackcubid)"); 
    List<?> trackingList = factory.find(hql.toString(), new String[]{"trackcubid"}, new Object[]{trackcubId.getID_TrackingCubicleRoomBed()});

    if( trackingList != null && trackingList.size() > 0)
    {
        CubicleAllocationVoCollection tempColl = CubicleAllocationVoAssembler.createCubicleAllocationVoCollectionFromCubicleAllocation(trackingList);
        return  tempColl;
    }



    return null;
}
项目:openMAXIMS    文件:CubiclesRoomsBedsCCImpl.java   
public CubicleAllocationVoCollection getAllcotiobCubilce(TrackingCubicleRoomBedRefVo trackCubId)
{
    if( trackCubId == null)
        return null;
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();

    hql.append(" select c1_1 from CubicleAllocation as c1_1 left join c1_1.cubicleRoomBed as t1_1 where (t1_1.id = :trackcubid)"); 
    List<?> trackingList = factory.find(hql.toString(), new String[]{"trackcubid"}, new Object[]{trackCubId.getID_TrackingCubicleRoomBed()});

    if( trackingList != null && trackingList.size() > 0)
    {
        CubicleAllocationVoCollection tempColl = CubicleAllocationVoAssembler.createCubicleAllocationVoCollectionFromCubicleAllocation(trackingList);
        return  tempColl;
    }



    return null;
}
项目:openmaxims-linux    文件:TrackingConfigurationImpl.java   
public CubicleAllocationVoCollection getAllocationCubicle(TrackingCubicleRoomBedRefVo trackcubId)
{
    if( trackcubId == null)
        return null;
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();

    hql.append(" select c1_1 from CubicleAllocation as c1_1 left join c1_1.cubicleRoomBed as t1_1 where (t1_1.id = :trackcubid)"); 
    List<?> trackingList = factory.find(hql.toString(), new String[]{"trackcubid"}, new Object[]{trackcubId.getID_TrackingCubicleRoomBed()});

    if( trackingList != null && trackingList.size() > 0)
    {
        CubicleAllocationVoCollection tempColl = CubicleAllocationVoAssembler.createCubicleAllocationVoCollectionFromCubicleAllocation(trackingList);
        return  tempColl;
    }



    return null;
}
项目:openmaxims-linux    文件:CubiclesRoomsBedsCCImpl.java   
public CubicleAllocationVoCollection getAllcotiobCubilce(TrackingCubicleRoomBedRefVo trackCubId)
{
    if( trackCubId == null)
        return null;
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();

    hql.append(" select c1_1 from CubicleAllocation as c1_1 left join c1_1.cubicleRoomBed as t1_1 where (t1_1.id = :trackcubid)"); 
    List<?> trackingList = factory.find(hql.toString(), new String[]{"trackcubid"}, new Object[]{trackCubId.getID_TrackingCubicleRoomBed()});

    if( trackingList != null && trackingList.size() > 0)
    {
        CubicleAllocationVoCollection tempColl = CubicleAllocationVoAssembler.createCubicleAllocationVoCollectionFromCubicleAllocation(trackingList);
        return  tempColl;
    }



    return null;
}
项目:AvoinApotti    文件:AllocateCubicleImpl.java   
public ims.emergency.vo.CubicleAllocationVo getCubicleAllocation(ims.emergency.vo.CubicleAllocationRefVo cubicleRef)
{
    if( cubicleRef == null )
        throw new CodingRuntimeException("CubicleAllocation not provided");

    DomainFactory factory = getDomainFactory();
    CubicleAllocation doCubicleAllocation  =(CubicleAllocation) factory.getDomainObject(CubicleAllocation.class, cubicleRef.getID_CubicleAllocation());
    return CubicleAllocationVoAssembler.create(doCubicleAllocation);

}
项目:openMAXIMS    文件:AllocateCubicleImpl.java   
public ims.emergency.vo.CubicleAllocationVo getCubicleAllocation(ims.emergency.vo.CubicleAllocationRefVo cubicleRef)
{
    if( cubicleRef == null )
        throw new CodingRuntimeException("CubicleAllocation not provided");

    DomainFactory factory = getDomainFactory();
    CubicleAllocation doCubicleAllocation  =(CubicleAllocation) factory.getDomainObject(CubicleAllocation.class, cubicleRef.getID_CubicleAllocation());
    return CubicleAllocationVoAssembler.create(doCubicleAllocation);

}
项目:openMAXIMS    文件:AllocateCubicleImpl.java   
public ims.emergency.vo.CubicleAllocationVo getCubicleAllocation(ims.emergency.vo.CubicleAllocationRefVo cubicleRef)
{
    if( cubicleRef == null )
        throw new CodingRuntimeException("CubicleAllocation not provided");

    DomainFactory factory = getDomainFactory();
    CubicleAllocation doCubicleAllocation  =(CubicleAllocation) factory.getDomainObject(CubicleAllocation.class, cubicleRef.getID_CubicleAllocation());
    return CubicleAllocationVoAssembler.create(doCubicleAllocation);

}
项目:openmaxims-linux    文件:AllocateCubicleImpl.java   
public ims.emergency.vo.CubicleAllocationVo getCubicleAllocation(ims.emergency.vo.CubicleAllocationRefVo cubicleRef)
{
    if( cubicleRef == null )
        throw new CodingRuntimeException("CubicleAllocation not provided");

    DomainFactory factory = getDomainFactory();
    CubicleAllocation doCubicleAllocation  =(CubicleAllocation) factory.getDomainObject(CubicleAllocation.class, cubicleRef.getID_CubicleAllocation());
    return CubicleAllocationVoAssembler.create(doCubicleAllocation);

}
项目:AvoinApotti    文件:AllocateCubicleImpl.java   
public ims.emergency.vo.CubicleAllocationVo saveCubicleAllocation(CubicleAllocationVo record, TrackingForAllocateCubicleVo tracking) throws ims.domain.exceptions.StaleObjectException
{
    if( record == null && tracking == null)
        throw new CodingRuntimeException("CubicleAllocation not provided and TrackingForAllocateCubicleVo not provided");

    DomainFactory factory = getDomainFactory();

    if( record !=  null)
    {
        CubicleAllocation doCubicleAllocation = CubicleAllocationVoAssembler.extractCubicleAllocation(factory, record);


        factory.save(doCubicleAllocation);


        return CubicleAllocationVoAssembler.create(doCubicleAllocation);
    }
    else if( tracking != null)
    {
        ims.emergency.domain.objects.Tracking doTracking = TrackingForAllocateCubicleVoAssembler.extractTracking(factory, tracking);

        factory.save(doTracking);

        TrackingForAllocateCubicleVo track = TrackingForAllocateCubicleVoAssembler.create(doTracking);

        if( track != null)
            return track.getCurrentCubicle();
    }

    return null;
}
项目:openMAXIMS    文件:AllocateCubicleImpl.java   
public ims.emergency.vo.CubicleAllocationVo saveCubicleAllocation(CubicleAllocationVo record, TrackingForAllocateCubicleVo tracking) throws ims.domain.exceptions.StaleObjectException
{
    if( record == null && tracking == null)
        throw new CodingRuntimeException("CubicleAllocation not provided and TrackingForAllocateCubicleVo not provided");

    DomainFactory factory = getDomainFactory();

    if( record !=  null)
    {
        CubicleAllocation doCubicleAllocation = CubicleAllocationVoAssembler.extractCubicleAllocation(factory, record);


        factory.save(doCubicleAllocation);


        return CubicleAllocationVoAssembler.create(doCubicleAllocation);
    }
    else if( tracking != null)
    {
        ims.emergency.domain.objects.Tracking doTracking = TrackingForAllocateCubicleVoAssembler.extractTracking(factory, tracking);

        factory.save(doTracking);

        TrackingForAllocateCubicleVo track = TrackingForAllocateCubicleVoAssembler.create(doTracking);

        if( track != null)
            return track.getCurrentCubicle();
    }

    return null;
}
项目:openMAXIMS    文件:AllocateCubicleImpl.java   
public ims.emergency.vo.CubicleAllocationVo saveCubicleAllocation(CubicleAllocationVo record, TrackingForAllocateCubicleVo tracking) throws ims.domain.exceptions.StaleObjectException
{
    if( record == null && tracking == null)
        throw new CodingRuntimeException("CubicleAllocation not provided and TrackingForAllocateCubicleVo not provided");

    DomainFactory factory = getDomainFactory();

    if( record !=  null)
    {
        CubicleAllocation doCubicleAllocation = CubicleAllocationVoAssembler.extractCubicleAllocation(factory, record);


        factory.save(doCubicleAllocation);


        return CubicleAllocationVoAssembler.create(doCubicleAllocation);
    }
    else if( tracking != null)
    {
        ims.emergency.domain.objects.Tracking doTracking = TrackingForAllocateCubicleVoAssembler.extractTracking(factory, tracking);

        factory.save(doTracking);

        TrackingForAllocateCubicleVo track = TrackingForAllocateCubicleVoAssembler.create(doTracking);

        if( track != null)
            return track.getCurrentCubicle();
    }

    return null;
}
项目:openmaxims-linux    文件:AllocateCubicleImpl.java   
public ims.emergency.vo.CubicleAllocationVo saveCubicleAllocation(CubicleAllocationVo record, TrackingForAllocateCubicleVo tracking) throws ims.domain.exceptions.StaleObjectException
{
    if( record == null && tracking == null)
        throw new CodingRuntimeException("CubicleAllocation not provided and TrackingForAllocateCubicleVo not provided");

    DomainFactory factory = getDomainFactory();

    if( record !=  null)
    {
        CubicleAllocation doCubicleAllocation = CubicleAllocationVoAssembler.extractCubicleAllocation(factory, record);


        factory.save(doCubicleAllocation);


        return CubicleAllocationVoAssembler.create(doCubicleAllocation);
    }
    else if( tracking != null)
    {
        ims.emergency.domain.objects.Tracking doTracking = TrackingForAllocateCubicleVoAssembler.extractTracking(factory, tracking);

        factory.save(doTracking);

        TrackingForAllocateCubicleVo track = TrackingForAllocateCubicleVoAssembler.create(doTracking);

        if( track != null)
            return track.getCurrentCubicle();
    }

    return null;
}