Package org.eclipse.persistence.config
Class ResultSetType
java.lang.Object
org.eclipse.persistence.config.ResultSetType
JDBC ResultSet type hint values.
The class contains all the valid values for QueryHints.RESULT_SET_TYPE query hint.
This can be used on ScrollableCursor queries to set the JDBC ResultSet scroll type.
JPA Query Hint Usage:
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.
- See Also:
- Author:
- James Sutherland
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The default type is ScrollInsensitive.static final String
The rows in a result set will be processed in a forward direction; first-to-last.static final String
The type for a ResultSet object whose cursor may move only forward.static final String
The rows in a result set will be processed in a reverse direction; last-to-first.static final String
The type for a ResultSet object that is scrollable but generally not sensitive to changes made by others.static final String
The type for a ResultSet object that is scrollable and generally sensitive to changes made by others.static final String
The order in which rows in a result set will be processed is unknown. -
Constructor Summary
-
Method Summary
-
Field Details
-
Forward
The rows in a result set will be processed in a forward direction; first-to-last.- See Also:
-
ForwardOnly
The type for a ResultSet object whose cursor may move only forward.- See Also:
-
Unknown
The order in which rows in a result set will be processed is unknown.- See Also:
-
Reverse
The rows in a result set will be processed in a reverse direction; last-to-first.- See Also:
-
ScrollInsensitive
The type for a ResultSet object that is scrollable but generally not sensitive to changes made by others.- See Also:
-
ScrollSensitive
The type for a ResultSet object that is scrollable and generally sensitive to changes made by others.- See Also:
-
DEFAULT
The default type is ScrollInsensitive.- See Also:
-
-
Constructor Details
-
ResultSetType
public ResultSetType()
-