KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > engine > RowSelection


1 //$Id: RowSelection.java,v 1.1 2004/06/03 16:30:07 steveebersole Exp $
2
package org.hibernate.engine;
3
4 /**
5  * Represents a selection of rows in a JDBC <tt>ResultSet</tt>
6  * @author Gavin King
7  */

8 public final class RowSelection {
9     private Integer JavaDoc firstRow;
10     private Integer JavaDoc maxRows;
11     private Integer JavaDoc timeout;
12     private Integer JavaDoc fetchSize;
13
14     public void setFirstRow(Integer JavaDoc firstRow) {
15         this.firstRow = firstRow;
16     }
17
18     public Integer JavaDoc getFirstRow() {
19         return firstRow;
20     }
21
22     public void setMaxRows(Integer JavaDoc maxRows) {
23         this.maxRows = maxRows;
24     }
25
26     public Integer JavaDoc getMaxRows() {
27         return maxRows;
28     }
29
30     public void setTimeout(Integer JavaDoc timeout) {
31         this.timeout = timeout;
32     }
33
34     public Integer JavaDoc getTimeout() {
35         return timeout;
36     }
37
38     public Integer JavaDoc getFetchSize() {
39         return fetchSize;
40     }
41
42     public void setFetchSize(Integer JavaDoc fetchSize) {
43         this.fetchSize = fetchSize;
44     }
45
46 }
47
48
49
50
51
52
Popular Tags