1 package net.argius.stew;
6 * This object holds the reference of ResultSet.
8 public final class ResultSetReference {
10 private final ResultSet rs;
11 private final ColumnOrder order;
12 private final String commandString;
14 private int recordCount;
19 * @param commandString
21 public ResultSetReference(ResultSet rs, String commandString) {
23 this.order = new ColumnOrder();
24 this.commandString = commandString;
28 * Returns the ResultSet.
31 public ResultSet getResultSet() {
36 * Returns the ColumnOrder.
39 public ColumnOrder getOrder() {
44 * Returns the command string.
47 public String getCommandString() {
52 * Returns the count of records.
55 public int getRecordCount() {
60 * Sets the count of records.
63 public void setRecordCount(int recordCount) {
64 this.recordCount = recordCount;