FileDocCategorySizeDatePackage
ScrollMode.javaAPI DocHibernate 3.2.51878Tue Aug 17 19:28:44 BST 2004org.hibernate

ScrollMode

public final class ScrollMode extends Object implements Serializable
Specifies the type of JDBC scrollable result set to use underneath a ScrollableResults
see
Query#scroll(ScrollMode)
see
ScrollableResults
author
Gavin King

Fields Summary
private final int
resultSetType
private final String
name
private static final Map
INSTANCES
public static final ScrollMode
FORWARD_ONLY
public static final ScrollMode
SCROLL_SENSITIVE
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.
Constructors Summary
private ScrollMode(int level, String name)


	     
		this.resultSetType=level;
		this.name=name;
	
Methods Summary
public booleanlessThan(org.hibernate.ScrollMode other)

	
	    
		return this.resultSetType<other.resultSetType;
	
private java.lang.ObjectreadResolve()

		INSTANCES.put( FORWARD_ONLY.name, FORWARD_ONLY );
		INSTANCES.put( SCROLL_INSENSITIVE.name, SCROLL_INSENSITIVE );
		INSTANCES.put( SCROLL_SENSITIVE.name, SCROLL_SENSITIVE );
	
		return INSTANCES.get(name);
	
public inttoResultSetType()

return
the JDBC result set type code

		return resultSetType;
	
public java.lang.StringtoString()

		return name;