public enum ScrollMode extends Enum<ScrollMode>
Query.scroll(ScrollMode),
ScrollableResults| Enum Constant and Description |
|---|
FORWARD_ONLY |
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.
|
SCROLL_SENSITIVE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
lessThan(ScrollMode other) |
int |
toResultSetType() |
static ScrollMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScrollMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScrollMode FORWARD_ONLY
ResultSet.TYPE_FORWARD_ONLYpublic static final ScrollMode SCROLL_SENSITIVE
ResultSet.TYPE_SCROLL_SENSITIVEpublic static final ScrollMode SCROLL_INSENSITIVE
ResultSet.TYPE_SCROLL_INSENSITIVEpublic static ScrollMode[] values()
for (ScrollMode c : ScrollMode.values()) System.out.println(c);
public static ScrollMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic int toResultSetType()
public boolean lessThan(ScrollMode other)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.