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

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

    return TrackingMovementTimesForEventHistoryVoAssembler.createTrackingMovementTimesForEventHistoryVoCollectionFromTrackingMovementTimes(factory.find(hql.toString(), markers, values));
}
项目:openMAXIMS    文件:EventHistoryImpl.java   
public TrackingMovementTimesForEventHistoryVoCollection getTrackingMovementTimes(CareContextRefVo careContextRef)
{
    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get TrackingMovementTimesForEventHistoryVoCollection 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 movementTimes from TrackingMovementTimes as movementTimes left join movementTimes.attendance as contextID where contextID.id = :contextID");
    markers.add("contextID");
    values.add(careContextRef.getID_CareContext());

    return TrackingMovementTimesForEventHistoryVoAssembler.createTrackingMovementTimesForEventHistoryVoCollectionFromTrackingMovementTimes(factory.find(hql.toString(), markers, values));
}
项目:openMAXIMS    文件:EmergencyAttendanceTimeAmendmentsImpl.java   
public TrackingMovementTimesForEventHistoryVoCollection listTrackingMovementTimes(CareContextRefVo careContextRef)
{
    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get TrackingMovementTimesForEventHistoryVoCollection 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 movementTimes from TrackingMovementTimes as movementTimes left join movementTimes.attendance as contextID where contextID.id = :contextID order by movementTimes.systemInformation.creationDateTime desc");
    markers.add("contextID");
    values.add(careContextRef.getID_CareContext());

    return TrackingMovementTimesForEventHistoryVoAssembler.createTrackingMovementTimesForEventHistoryVoCollectionFromTrackingMovementTimes(factory.find(hql.toString(), markers, values));
}
项目:openMAXIMS    文件:EventHistoryImpl.java   
public TrackingMovementTimesForEventHistoryVoCollection getTrackingMovementTimes(CareContextRefVo careContextRef)
{
    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get TrackingMovementTimesForEventHistoryVoCollection 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 movementTimes from TrackingMovementTimes as movementTimes left join movementTimes.attendance as contextID where contextID.id = :contextID");
    markers.add("contextID");
    values.add(careContextRef.getID_CareContext());

    return TrackingMovementTimesForEventHistoryVoAssembler.createTrackingMovementTimesForEventHistoryVoCollectionFromTrackingMovementTimes(factory.find(hql.toString(), markers, values));
}
项目:openmaxims-linux    文件:EventHistoryImpl.java   
public TrackingMovementTimesForEventHistoryVoCollection getTrackingMovementTimes(CareContextRefVo careContextRef)
{
    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get TrackingMovementTimesForEventHistoryVoCollection 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 movementTimes from TrackingMovementTimes as movementTimes left join movementTimes.attendance as contextID where contextID.id = :contextID");
    markers.add("contextID");
    values.add(careContextRef.getID_CareContext());

    return TrackingMovementTimesForEventHistoryVoAssembler.createTrackingMovementTimesForEventHistoryVoCollectionFromTrackingMovementTimes(factory.find(hql.toString(), markers, values));
}
项目:openMAXIMS    文件:AmentAttendanceMovementTimesImpl.java   
public ims.emergency.vo.TrackingMovementTimesForEventHistoryVo get(ims.emergency.vo.TrackingMovementTimesRefVo movementRef)
{
    if(movementRef == null || movementRef.getID_TrackingMovementTimes() == null)
        return null;

    TrackingMovementTimes doMovement = (TrackingMovementTimes) getDomainFactory().getDomainObject(TrackingMovementTimes.class, movementRef.getID_TrackingMovementTimes());

    return TrackingMovementTimesForEventHistoryVoAssembler.create(doMovement);
}
项目:openMAXIMS    文件:AmentAttendanceMovementTimesImpl.java   
public ims.emergency.vo.TrackingMovementTimesForEventHistoryVo save(ims.emergency.vo.TrackingMovementTimesForEventHistoryVo movement) throws ims.domain.exceptions.StaleObjectException
{
    if(movement == null)
        throw new CodingRuntimeException("Cannot save a null TrackingMovementTimesForEventHistoryVo.");

    if(!movement.isValidated())
        throw new CodingRuntimeException("TrackingMovementTimesForEventHistoryVo is not validated.");

    DomainFactory factory = getDomainFactory();

    TrackingMovementTimes doMovement = TrackingMovementTimesForEventHistoryVoAssembler.extractTrackingMovementTimes(factory, movement);
    factory.save(doMovement);

    return TrackingMovementTimesForEventHistoryVoAssembler.create(doMovement);
}