Java 类ims.emergency.vo.TrackingLiteVoCollection 实例源码

项目:AvoinApotti    文件:SendToAreaImpl.java   
public TrackingLiteVo getTrackingLiteVo(TrackingRefVo trackingRef) 
{
    if( trackingRef == null)
        throw new CodingRuntimeException("Tracking cannot be null");

    DomainFactory factory = getDomainFactory();

    String hsql = "from Tracking as t1_1 where  (t1_1.id = :idTracking) ";

    List trackings = factory.find(hsql, new String[] {"idTracking"}, new Object[] { trackingRef.getID_Tracking()});

    if( trackings != null && trackings.size() > 0)
    {
        TrackingLiteVoCollection tempColl = TrackingLiteVoAssembler.createTrackingLiteVoCollectionFromTracking(trackings);
        if( tempColl != null && tempColl.size() > 0)
        {
            return tempColl.get(0);
        }
    }

    return null;
}
项目:openMAXIMS    文件:SendToAreaImpl.java   
public TrackingLiteVo getTrackingLiteVo(TrackingRefVo trackingRef) 
{
    if( trackingRef == null)
        throw new CodingRuntimeException("Tracking cannot be null");

    DomainFactory factory = getDomainFactory();

    String hsql = "from Tracking as t1_1 where  (t1_1.id = :idTracking) ";

    List trackings = factory.find(hsql, new String[] {"idTracking"}, new Object[] { trackingRef.getID_Tracking()});

    if( trackings != null && trackings.size() > 0)
    {
        TrackingLiteVoCollection tempColl = TrackingLiteVoAssembler.createTrackingLiteVoCollectionFromTracking(trackings);
        if( tempColl != null && tempColl.size() > 0)
        {
            return tempColl.get(0);
        }
    }

    return null;
}
项目:openMAXIMS    文件:SendToAreaImpl.java   
public TrackingLiteVo getTrackingLiteVo(TrackingRefVo trackingRef) 
{
    if( trackingRef == null)
        throw new CodingRuntimeException("Tracking cannot be null");

    DomainFactory factory = getDomainFactory();

    String hsql = "from Tracking as t1_1 where  (t1_1.id = :idTracking) ";

    List trackings = factory.find(hsql, new String[] {"idTracking"}, new Object[] { trackingRef.getID_Tracking()});

    if( trackings != null && trackings.size() > 0)
    {
        TrackingLiteVoCollection tempColl = TrackingLiteVoAssembler.createTrackingLiteVoCollectionFromTracking(trackings);
        if( tempColl != null && tempColl.size() > 0)
        {
            return tempColl.get(0);
        }
    }

    return null;
}
项目:openmaxims-linux    文件:SendToAreaImpl.java   
public TrackingLiteVo getTrackingLiteVo(TrackingRefVo trackingRef) 
{
    if( trackingRef == null)
        throw new CodingRuntimeException("Tracking cannot be null");

    DomainFactory factory = getDomainFactory();

    String hsql = "from Tracking as t1_1 where  (t1_1.id = :idTracking) ";

    List trackings = factory.find(hsql, new String[] {"idTracking"}, new Object[] { trackingRef.getID_Tracking()});

    if( trackings != null && trackings.size() > 0)
    {
        TrackingLiteVoCollection tempColl = TrackingLiteVoAssembler.createTrackingLiteVoCollectionFromTracking(trackings);
        if( tempColl != null && tempColl.size() > 0)
        {
            return tempColl.get(0);
        }
    }

    return null;
}