public class ResultSetType extends Object
query.setHint(QueryHints.RESULT_SET_TYPE, ResultSetType.ForwardOnly);
or
@QueryHint(name=QueryHints.RESULT_SET_TYPE, value=ResultSetType.ForwardOnly)
Hint values are case-insensitive. "" could be used instead of default value ResultSetType.ScrollInsensitive.
QueryHints.RESULT_SET_TYPE
,
ScrollableCursorPolicy.setResultSetType(int)
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT
The default type is ScrollInsensitive.
|
static String |
Forward
The rows in a result set will be processed in a forward direction; first-to-last.
|
static String |
ForwardOnly
The type for a ResultSet object whose cursor may move only forward.
|
static String |
Reverse
The rows in a result set will be processed in a reverse direction; last-to-first.
|
static String |
ScrollInsensitive
The type for a ResultSet object that is scrollable but generally not sensitive to changes made by others.
|
static String |
ScrollSensitive
The type for a ResultSet object that is scrollable and generally sensitive to changes made by others.
|
static String |
Unknown
The order in which rows in a result set will be processed is unknown.
|
Constructor and Description |
---|
ResultSetType() |
public static final String Forward
public static final String ForwardOnly
public static final String Unknown
public static final String Reverse
public static final String ScrollInsensitive
public static final String ScrollSensitive
public static final String DEFAULT
EclipseLink 2.3.2, "build v20111125-r10461" API Reference