Top Description Fields Constructors Methods
org.hibernate

public final Class ScrollMode

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, java.sql.ResultSet, java.util.HashMap, .Map

Specifies the type of JDBC scrollable result set to use underneath a ScrollableResults
Author
Gavin King
See Also
Query#scroll(ScrollMode), ScrollableResults

Field Summary

Modifier and TypeField and Description
public static final ScrollMode
private static final Map<K, V>
private final String
private final int
public static final ScrollMode
SCROLL_INSENSITIVE

Note that since the Hibernate session acts as a cache, you might need to expicitly evict objects, if you need to see changes made by other transactions.

public static final ScrollMode

Constructor Summary

AccessConstructor and Description
private
ScrollMode(int level, String name)

Method Summary

Modifier and TypeMethod and Description
public boolean
private Object
public int

Returns:

the JDBC result set type code
toResultSetType
()

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

FORWARD_ONLYback to summary
public static final ScrollMode FORWARD_ONLY
See Also
java.sql.ResultSet.TYPE_FORWARD_ONLY
INSTANCESback to summary
private static final Map<K, V> INSTANCES
nameback to summary
private final String name
resultSetTypeback to summary
private final int resultSetType
SCROLL_INSENSITIVEback to summary
public static final ScrollMode SCROLL_INSENSITIVE

Note that since the Hibernate session acts as a cache, you might need to expicitly evict objects, if you need to see changes made by other transactions.

See Also
java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE
SCROLL_SENSITIVEback to summary
public static final ScrollMode SCROLL_SENSITIVE
See Also
java.sql.ResultSet.TYPE_SCROLL_SENSITIVE

Constructor Detail

ScrollModeback to summary
private ScrollMode(int level, String name)

Method Detail

lessThanback to summary
public boolean lessThan(ScrollMode other)
readResolveback to summary
private Object readResolve()
toResultSetTypeback to summary
public int toResultSetType()
Returns:int

the JDBC result set type code

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.