interface Results
| Modifier and Type | Field and Description |
|---|---|
static CentralLogger |
LOG
Logger
|
| Modifier and Type | Method and Description |
|---|---|
default void |
addRow(java.lang.Object[] row,
boolean beforeRow)
Add a new row.
|
void |
cleanup()
Clean up and release any resources which this object is holding, such as open result sets.
|
default boolean |
deleteRow()
Delete the current row.
|
boolean |
first()
Move cursor to the first results row.
|
java.lang.Object[] |
get()
Get the array of objects at the current result row.
|
default java.lang.Object[] |
get(boolean forceOnlyId)
Should get the primary keys array for the objects at the current result row when implemented by subclass
and forceOnlyId is true.
|
java.lang.Object |
get(int column)
Get the object at the current result row, at the specified column.
|
java.lang.Long |
getID(int column)
Get the primary key ID at the current result row, at the specified column.
|
default int |
getNumberOfLoadedRows()
Returns the number of rows which have been loaded by this object.
|
int |
getRowNumber()
Get the row number currently under the cursor.
|
default boolean |
isAutoFetch()
Is the result delegate responsible for fetching? This is usually true when using
query delegates which handle the fetching process already.
|
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?
|
default boolean |
isResultSetCached()
Indicate whether the full result set is cached in this object.
|
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.
|
static final CentralLogger LOG
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 after the move.boolean previous()
true if there is a result under the cursor after the move.boolean isFirst()
true if the cursor is on the first row.boolean isLast()
true if the cursor is on the first row.default boolean isAutoFetch()
true for complex results which also do the fetching.java.lang.Object[] get()
null.default java.lang.Object[] get(boolean forceOnlyId)
null.java.lang.Object get(int column)
column - Zero-based index column of the desired object.column or null.java.lang.Long 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()
default boolean isResultSetCached()
true if all results are contained this object; false if not or
if unknown (such as for a scrolling or cursored result set. Default return value
is false.default int getNumberOfLoadedRows()
default boolean deleteRow()
true if the row was deleted. false if there is no row at
the current position. This default implementation returns false.default void addRow(java.lang.Object[] row,
boolean beforeRow)
row - Row data.beforeRow - true if the current position is before the row. false if
the current position is on the row.