Record Class BatchSize
java.lang.Object
java.lang.Record
jakarta.persistence.BatchSize
- All Implemented Interfaces:
FetchOption, FindOption
Specifies a batch size, that is, how many entities should be
fetched in each request to the database. This option is always
a hint, and might be ignored by the persistence provider.
- Since:
- 4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebatchSizerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BatchSize
public BatchSize(int batchSize) Creates an instance of aBatchSizerecord class.- Parameters:
batchSize- the value for thebatchSizerecord 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. -
batchSize
public int batchSize()Returns the value of thebatchSizerecord component.- Returns:
- the value of the
batchSizerecord component
-