mil.dod.th.ose.core/src/mil/dod/th/ose/core/impl/persistence/AbstractDataStore.java
@Override
    public long executeGetCount(final Query query)
    {
        final long resultCount;
        synchronized (this)
        {
            try
            {
                m_WakeLock.activate();

                query.setResult("count(this)");

                resultCount = (long)query.execute();
            }
            finally
            {
                query.closeAll();

                m_WakeLock.cancel();
            }
        }
        
        return resultCount;
    }
/**
     * Helper method to get the total count of items of a table.
     * @param query
     *  the specified query
     * 
     * @return
     *  the number of elements
     */
Helper method to get the total count of items of a table.
@param query
the specified query

@return
the number of elements
Helper method to get the total count of items of a table . @param query the specified query @return the number of elements
@Override
    public long executeGetCount(final Query query)
    {
        final long resultCount;
        synchronized (this)
        {
            try
            {
                m_WakeLock.activate();
                query.setResult("count(this)");
                resultCount = (long)query.execute();
            }
            finally
            {
                query.closeAll();
                m_WakeLock.cancel();
            }
        }
        return resultCount;
    }
@ Override public long executeGetCount ( final Query query ) { final long resultCount ; synchronized ( this ) { try { m_WakeLock . activate ( ) ; query . setResult ( "count(this)" ) ; resultCount = ( long ) query . execute ( ) ; } finally { query . closeAll ( ) ; m_WakeLock . cancel ( ) ; } } return resultCount ; }
Helper method to get the total count of items of a table.
Helper method to get the total count of items of a table .