com.finalist.tools.database
Class PartialResult
java.lang.Object
com.finalist.tools.database.PartialResult
- public class PartialResult
- extends java.lang.Object
This class models a partial result from a database query, where it was specified to return only
a subset of the full result set. It contains both the partial result, and an indication of how large
the total result is.
- Author:
- Michael O'Connor - Finalist IT Group
Constructor Summary |
protected |
PartialResult(java.util.ArrayList arrayList,
int totalSize)
|
Method Summary |
java.util.ArrayList |
getPartialResult()
Gets the partial result from the query. |
int |
getTotalSize()
Gets the total number of results in the whole result. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PartialResult
protected PartialResult(java.util.ArrayList arrayList,
int totalSize)
getPartialResult
public java.util.ArrayList getPartialResult()
- Gets the partial result from the query.
- Returns:
- an ArrayList containing either:
- ArrayList of HashMaps, if returned from
StatementExecutor.executeQueryIntoHashMap(int, int)
.
- ArrayList of beans, if returned from
StatementExecutor.executeQueryIntoBean(Class, int, int)
or StatementExecutor.executeQueryIntoBean(Object, int, int)
.
getTotalSize
public int getTotalSize()
- Gets the total number of results in the whole result.
- Returns:
Copyright © 2003-2004 SourceForge. All Rights Reserved.