Package org.hibernate

Enum ScrollMode

    • Enum Constant Detail


        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:
    • Method Detail

      • values

        public static ScrollMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ScrollMode c : ScrollMode.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ScrollMode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • toResultSetType

        public int toResultSetType()
        Get the corresponding JDBC scroll type code constant value.
        the JDBC result set type code
      • lessThan

        public boolean lessThan​(ScrollMode other)
        Determine if this mode is "less than" the provided mode.
        other - The provided mode
        true if this mode is less than the other.