2.17.2: 2011-06-17

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 (Mon, 06 Apr 2009) $

Method Summary
 long getTotalCount()
          Get the total number of items returned by the query, ignoring any limits set by Query.setFirstResult(int) and Query.setMaxResults(int).
 

Method Detail

getTotalCount

long getTotalCount()
Get the total number of items returned by the query, ignoring any limits set by Query.setFirstResult(int) and Query.setMaxResults(int). If the Query.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:
Query.setReturnTotalCount(boolean)

2.17.2: 2011-06-17