Package net.sf.basedb.core.query
Interface QueryResult
- All Known Subinterfaces:
ResultIterator<I>
,ResultList<I>
,SqlResultIterator
,SqlResultList<I>
- All Known Implementing Classes:
AbstractResultList
,DataResultIterator
,DynamicResultIterator
,ItemResultIterator
,ItemResultList
,PlotServlet.CFResultIterator
,ReporterScoreResultIterator
,UnmodifiableResultList
public interface QueryResult
This is the root interface for query results. This is not a required
interface, but we recommend query implementations to use it.
- Version:
- 2.0
- Author:
- Nicklas
- Last modified
- $Date: 2009-04-06 14:52:39 +0200 (må, 06 apr 2009) $
-
Method Summary
Modifier and TypeMethodDescriptionlong
Get the total number of items returned by the query, ignoring any limits set byQuery.setFirstResult(int)
andQuery.setMaxResults(int)
.
-
Method Details
-
getTotalCount
long getTotalCount()Get the total number of items returned by the query, ignoring any limits set byQuery.setFirstResult(int)
andQuery.setMaxResults(int)
. If theQuery.setReturnTotalCount(boolean)
hasn't been enabled this method may not return a correct value.- Returns:
- The total number of items, or -1 if not known
- See Also:
-