Skip to content

Commit

Permalink
HHH-14900 BatchBuilderImpl doesn't need to be Configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanne committed Oct 26, 2021
1 parent 9ecd179 commit aba67cf
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,18 @@
*/
package org.hibernate.engine.jdbc.batch.internal;

import java.util.Map;

import org.hibernate.cfg.Environment;
import org.hibernate.engine.jdbc.batch.spi.Batch;
import org.hibernate.engine.jdbc.batch.spi.BatchBuilder;
import org.hibernate.engine.jdbc.batch.spi.BatchKey;
import org.hibernate.engine.jdbc.spi.JdbcCoordinator;
import org.hibernate.internal.util.config.ConfigurationHelper;
import org.hibernate.service.spi.Configurable;
import org.hibernate.service.spi.Manageable;

/**
* A builder for {@link Batch} instances.
*
* @author Steve Ebersole
*/
public class BatchBuilderImpl implements BatchBuilder, Configurable, Manageable, BatchBuilderMXBean {
public class BatchBuilderImpl implements BatchBuilder, Manageable, BatchBuilderMXBean {

private volatile int jdbcBatchSize;

Expand All @@ -41,11 +36,6 @@ public BatchBuilderImpl(int jdbcBatchSize) {
this.jdbcBatchSize = jdbcBatchSize;
}

@Override
public void configure(Map configurationValues) {
jdbcBatchSize = ConfigurationHelper.getInt( Environment.STATEMENT_BATCH_SIZE, configurationValues, jdbcBatchSize );
}

@Override
public int getJdbcBatchSize() {
return jdbcBatchSize;
Expand Down

0 comments on commit aba67cf

Please sign in to comment.