public ObjectLevelReadQuery getQuery() {
   if (theQuery == null) {
     if (shouldUseReportQuery()) {
       setQuery(buildReportQuery());
     } else {
       setQuery(new ReadAllQuery());
     }
     getQuery().setEJBQLString(getEjbqlString());
   }
   return theQuery;
 }
 public void reset() {
   // Force the query to be rebuilt each time...
   setQuery(null);
   super.reset();
 }