Package org.hibernate.cfg
Interface BatchSettings
-
- All Known Subinterfaces:
AvailableSettings
- All Known Implementing Classes:
Environment
public interface BatchSettings
-
-
Field Summary
Fields Modifier and Type Field Description static StringBATCH_STRATEGYDeprecated.UseBUILDERinsteadstatic StringBATCH_VERSIONED_DATAWhen enabled, specifies that versioned data should be included in batching.static StringBUILDERNames theBatchBuilderimplementation to use.static StringORDER_INSERTSEnable ordering of insert statements by primary key value, for the purpose of more efficient JDBC batching.static StringORDER_UPDATESEnable ordering of update statements by primary key value, for the purpose of more efficient JDBC batchingstatic StringSTATEMENT_BATCH_SIZESpecifies the maximum number of statements to batch together.
-
-
-
Field Detail
-
BUILDER
static final String BUILDER
Names theBatchBuilderimplementation to use.- See Also:
- Constant Field Values
- Default Value:
- Standard builder based on
STATEMENT_BATCH_SIZE
-
STATEMENT_BATCH_SIZE
static final String STATEMENT_BATCH_SIZE
Specifies the maximum number of statements to batch together. A nonzero value enables batching- See Also:
Statement.executeBatch(),PreparedStatement.addBatch(),SessionFactoryBuilder.applyJdbcBatchSize(int), Constant Field Values- Default Value:
- 0
-
ORDER_UPDATES
static final String ORDER_UPDATES
Enable ordering of update statements by primary key value, for the purpose of more efficient JDBC batching- See Also:
SessionFactoryBuilder.applyOrderingOfUpdates(boolean), Constant Field Values- Default Value:
false
-
ORDER_INSERTS
static final String ORDER_INSERTS
Enable ordering of insert statements by primary key value, for the purpose of more efficient JDBC batching.- See Also:
SessionFactoryBuilder.applyOrderingOfInserts(boolean), Constant Field Values- Default Value:
false
-
BATCH_VERSIONED_DATA
static final String BATCH_VERSIONED_DATA
When enabled, specifies that versioned data should be included in batching.- See Also:
SessionFactoryBuilder.applyJdbcBatchingForVersionedEntities(boolean), Constant Field Values- Default Value:
- Generally
true, though can vary based on Dialect
-
BATCH_STRATEGY
@Deprecated static final String BATCH_STRATEGY
Deprecated.UseBUILDERinstead- See Also:
- Constant Field Values
-
-