Top Description Fields Constructors Methods
org.hibernate

public final Enum ScrollMode

extends Enum<ScrollMode>
Class Inheritance
Imports
java.sql.ResultSet

Specifies the type of JDBC scrollable result set to use underneath a ScrollableResults.
Author
Gavin King

Field Summary

Modifier and TypeField and Description
public static final ScrollMode
FORWARD_ONLY

Requests a scrollable result that is only scrollable forwards.

private final int
public static final ScrollMode
SCROLL_INSENSITIVE

Requests a scrollable result which is insensitive to changes in the underlying data.

public static final ScrollMode
SCROLL_SENSITIVE

Requests a scrollable result which is sensitive to changes in the underlying data.

Constructor Summary

AccessConstructor and Description
private
ScrollMode(int level)

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if this mode is less than the other.
lessThan
(ScrollMode
The provided mode
other
)

Determine if this mode is "less than" the provided mode.

public int

Returns:

the JDBC result set type code
toResultSetType
()

Get the corresponding JDBC scroll type code constant value.

public static ScrollMode
public static ScrollMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

FORWARD_ONLYback to summary
public static final ScrollMode FORWARD_ONLY

Requests a scrollable result that is only scrollable forwards.

See Also
ResultSet#TYPE_FORWARD_ONLY
resultSetTypeback to summary
private final int resultSetType
SCROLL_INSENSITIVEback to summary
public static final ScrollMode SCROLL_INSENSITIVE

Requests a scrollable result which is insensitive to changes in the underlying data. Note that since the Hibernate session acts as a cache, you might need to explicitly evict objects, if you need to see changes made by other transactions.

See Also
ResultSet#TYPE_SCROLL_INSENSITIVE
SCROLL_SENSITIVEback to summary
public static final ScrollMode SCROLL_SENSITIVE

Requests a scrollable result which is sensitive to changes in the underlying data.

See Also
ResultSet#TYPE_SCROLL_SENSITIVE

Constructor Detail

ScrollModeback to summary
private ScrollMode(int level)

Method Detail

lessThanback to summary
public boolean lessThan(ScrollMode other)

Determine if this mode is "less than" the provided mode.

Parameters
other:ScrollMode

The provided mode

Returns:boolean

true if this mode is less than the other.

toResultSetTypeback to summary
public int toResultSetType()

Get the corresponding JDBC scroll type code constant value.

Returns:int

the JDBC result set type code

valueOfback to summary
public static ScrollMode valueOf(String name)
valuesback to summary
public static ScrollMode[] values()