Record Class QueryOption.JdbcFetchSize
java.lang.Object
java.lang.Record
org.hibernate.query.QueryOption.JdbcFetchSize
- Record Components:
fetchSize- The JDBC fetch size
- All Implemented Interfaces:
TypedQuery.Option
- Enclosing interface:
QueryOption
public static record QueryOption.JdbcFetchSize(int fetchSize)
extends Record
implements TypedQuery.Option
Specifies the JDBC fetch size to use for the query.
- Since:
- 8.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJdbcFetchSize(int fetchSize) Creates an instance of aJdbcFetchSizerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefetchSizerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JdbcFetchSize
public JdbcFetchSize(int fetchSize) Creates an instance of aJdbcFetchSizerecord class.- Parameters:
fetchSize- the value for thefetchSizerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
fetchSize
-