interface Results
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Clean up and release any resources which this object is holding, such
as open result sets.
|
boolean |
first()
Move cursor to the first results row.
|
java.lang.Object[] |
get()
Get the array of objects at the current result row.
|
java.lang.Object |
get(int column)
Get the object at the current result row, at the specified column.
|
java.io.Serializable |
getID(int column)
Get the primary key ID at the current result row, at the specified
column.
|
int |
getRowNumber()
Get the row number currently under the cursor.
|
boolean |
isFirst()
Is the cursor on the first row in the results set?
|
boolean |
isLast()
Is the cursor on the last row in the results set?
|
boolean |
last()
Move cursor to the last results row.
|
boolean |
next()
Move cursor to the next results row.
|
boolean |
previous()
Move cursor to the previous results row.
|
void |
reset()
Reset the cursor to its natural starting position, before the first
result row.
|
boolean |
scroll(int rows)
Scroll the cursor ahead by the specified number of rows.
|
void |
sessionClosing()
Invoked when the current Hibernate session is about to close.
|
boolean |
setRowNumber(int row)
Set the row number currently under the cursor.
|
boolean first()
true
if there are any results.boolean last()
true
if there are any results.boolean next()
true
if there is a result under the cursor
under the move.boolean previous()
true
if there is a result under the cursor
under the move.boolean isFirst()
true
if the cursor is on the first row.boolean isLast()
true
if the cursor is on the first row.java.lang.Object[] get()
null
.java.lang.Object get(int column)
column
- Zero-based index column of the desired object.column
or null
.java.io.Serializable getID(int column)
column
- Zero-based index column of the desired ID.null
.int getRowNumber()
-1
if the cursor is not currently on a result.boolean setRowNumber(int row)
row
- Zero-based index of the row to be set as the current row.true
if there is a row at the specified row
number; else false
.boolean scroll(int rows)
rows
- Number of rows to jump ahead or back.true
if there is a row at the new location;
else false
.void reset()
void sessionClosing()
void cleanup()