mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/observation/RetrieveDeleteObsHelperImpl.java
private void removeLocalObservations(final UUID assetUuid)
    {
        final ObservationQuery query = m_ObservationStore.newQuery();
        if (assetUuid != null)
        {
            query.withAssetUuid(assetUuid);
        }
        if (m_IsRetrieveDeleteByDate)
        {
            final Date endDate = DateTimeConverterUtil.roundToEndOfSecond(m_EndDate);
            query.withTimeCreatedRange(m_StartDate, endDate);
        }
        query.remove();
    }
/**
     * Helper method which removes an observation if it exists. 
     * @param assetUuid
     *      UUID of the asset containing the observations
     */
Helper method which removes an observation if it exists.
@param assetUuid
UUID of the asset containing the observations
Helper method which removes an observation if it exists . @param assetUuid UUID of the asset containing the observations
private void removeLocalObservations(final UUID assetUuid)
    {
        final ObservationQuery query = m_ObservationStore.newQuery();
        if (assetUuid != null)
        {
            query.withAssetUuid(assetUuid);
        }
        if (m_IsRetrieveDeleteByDate)
        {
            final Date endDate = DateTimeConverterUtil.roundToEndOfSecond(m_EndDate);
            query.withTimeCreatedRange(m_StartDate, endDate);
        }
        query.remove();
    }
private void removeLocalObservations ( final UUID assetUuid ) { final ObservationQuery query = m_ObservationStore . newQuery ( ) ; if ( assetUuid != null ) { query . withAssetUuid ( assetUuid ) ; } if ( m_IsRetrieveDeleteByDate ) { final Date endDate = DateTimeConverterUtil . roundToEndOfSecond ( m_EndDate ) ; query . withTimeCreatedRange ( m_StartDate , endDate ) ; } query . remove ( ) ; }
Helper method which removes an observation if it exists.
Helper method which removes an observation if it exists .