Record Class SessionCreationOption.JdbcBatchSize
java.lang.Object
java.lang.Record
org.hibernate.SessionCreationOption.JdbcBatchSize
- Record Components:
batchSize- The batch size for JDBC batch updates
- All Implemented Interfaces:
EntityManager.CreationOption
- Enclosing interface:
SessionCreationOption
public static record SessionCreationOption.JdbcBatchSize(int batchSize)
extends Record
implements EntityManager.CreationOption
Enables JDBC statement batching and specifies a batch size.
- Since:
- 8.0
- See Also:
- API Note:
- Not defined as an
EntityAgent.CreationOptionbecause JDBC batching at the session level results in a sort of write-behind behavior which is foreign to the nature of the stateless programming model.
-
Constructor Summary
ConstructorsConstructorDescriptionJdbcBatchSize(int batchSize) Creates an instance of aJdbcBatchSizerecord class. -
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
-
JdbcBatchSize
public JdbcBatchSize(int batchSize) Creates an instance of aJdbcBatchSizerecord 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
-