mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/observation/ObservationMgrImpl.java
private javax.jdo.Query createJdoQuery()
    {
        final FactoryBaseModel model = assetDisplay.getSelectedFactoryObject();
        final javax.jdo.Query query = m_JdoObservationStore.newJdoQuery();
        String formattedFilter = m_Filter;
        if (model != null)
        {
            formattedFilter = String.format(formattedFilter + SELECTED_ASSET_STRING, model.getUuid().toString());
        }
        
        if (m_IsFilterByDate)
        {
            //missing date will be notified on filter tab
            if (m_StartDate == null || m_EndDate == null || m_EndDate.before(m_StartDate))
            {
                return null;
            }
            final Date endDate = DateTimeConverterUtil.roundToEndOfSecond(m_EndDate);
            formattedFilter = String.format(formattedFilter + DATE_STRING, m_StartDate.getTime(), endDate.getTime());
        }
        
        query.setFilter(formattedFilter);

        return query;
    }
/**
     * Create a JDO query for {@link Observation} retrieval.
     * 
     * @return
     *      a JDO query based on the set query criteria or null if criteria
     *      set is not valid.
     */
Create a JDO query for  Observation retrieval.

@return
a JDO query based on the set query criteria or null if criteria
set is not valid.
Create a JDO query for Observation retrieval . @return a JDO query based on the set query criteria or null if criteria set is not valid .
private javax.jdo.Query createJdoQuery()
    {
        final FactoryBaseModel model = assetDisplay.getSelectedFactoryObject();
        final javax.jdo.Query query = m_JdoObservationStore.newJdoQuery();
        String formattedFilter = m_Filter;
        if (model != null)
        {
            formattedFilter = String.format(formattedFilter + SELECTED_ASSET_STRING, model.getUuid().toString());
        }
        if (m_IsFilterByDate)
        {
            if (m_StartDate == null || m_EndDate == null || m_EndDate.before(m_StartDate))
            {
                return null;
            }
            final Date endDate = DateTimeConverterUtil.roundToEndOfSecond(m_EndDate);
            formattedFilter = String.format(formattedFilter + DATE_STRING, m_StartDate.getTime(), endDate.getTime());
        }
        query.setFilter(formattedFilter);
        return query;
    }
private javax . jdo . Query createJdoQuery ( ) { final FactoryBaseModel model = assetDisplay . getSelectedFactoryObject ( ) ; final javax . jdo . Query query = m_JdoObservationStore . newJdoQuery ( ) ; String formattedFilter = m_Filter ; if ( model != null ) { formattedFilter = String . format ( formattedFilter + SELECTED_ASSET_STRING , model . getUuid ( ) . toString ( ) ) ; } if ( m_IsFilterByDate ) { if ( m_StartDate == null || m_EndDate == null || m_EndDate . before ( m_StartDate ) ) { return null ; } final Date endDate = DateTimeConverterUtil . roundToEndOfSecond ( m_EndDate ) ; formattedFilter = String . format ( formattedFilter + DATE_STRING , m_StartDate . getTime ( ) , endDate . getTime ( ) ) ; } query . setFilter ( formattedFilter ) ; return query ; }
Create a JDO query for {@link Observation} retrieval.
Create a JDO query for { @link Observation } retrieval .
//missing date will be notified on filter tab