Package org.hibernate.cfg
Interface BatchSettings
- All Known Subinterfaces:
AvailableSettings
- All Known Implementing Classes:
Environment
public interface BatchSettings
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Deprecated.static final String
Names theBatchBuilder
implementation to use.static final String
Enable ordering of entity insert statements by entity type and primary key value, for the purpose of more efficient JDBC batching.static final String
Enable ordering of entity update statements by entity type and primary key value, and of statements relating to collection modification by collection role and foreign key value, for the purpose of more efficient JDBC batching.static final String
Specifies the maximum number of statements to batch together in a stateful session.
-
Field Details
-
BUILDER
Names theBatchBuilder
implementation to use.- See Also:
- Default Value:
- Standard builder based on
STATEMENT_BATCH_SIZE
-
STATEMENT_BATCH_SIZE
Specifies the maximum number of statements to batch together in a stateful session.Any positive value enables batching.
This setting has no effect on stateless sessions.
- See Also:
- Default Value:
- 0
-
ORDER_UPDATES
Enable ordering of entity update statements by entity type and primary key value, and of statements relating to collection modification by collection role and foreign key value, for the purpose of more efficient JDBC batching.The sort order also reduces the chance of a unique key violation when a collection element is moved from one parent to a different parent, by executing collection updates involving removals before collection updates which don't involve removals.
- See Also:
- Default Value:
false
-
ORDER_INSERTS
Enable ordering of entity insert statements by entity type and primary key value, for the purpose of more efficient JDBC batching.The sort order respects foreign key dependencies between entities, and therefore does not increase the chance of a foreign key violation.
- See Also:
- Default Value:
false
-
BATCH_STRATEGY
Deprecated.UseBUILDER
instead- See Also:
-
BUILDER
instead