io.github.davidchild.bitter.op.insert.BachInsert Maven / Gradle / Ivy
package io.github.davidchild.bitter.op.insert;
import io.github.davidchild.bitter.BaseModel;
import io.github.davidchild.bitter.basequery.DmlQuery;
import io.github.davidchild.bitter.basequery.ExecuteEnum;
import io.github.davidchild.bitter.basequery.SingleRunner;
import io.github.davidchild.bitter.op.scope.ThrowingConsumer;
import io.github.davidchild.bitter.parbag.ExecuteParBachInsert;
import java.util.List;
public class BachInsert extends DmlQuery {
ExecuteParBachInsert bachInsert = new ExecuteParBachInsert();
public BachInsert() {
SingleRunner runner = new SingleRunner();
bachInsert.setExecuteEnum(ExecuteEnum.BachInsert);
runner.setBagOp(bachInsert);
this.setQuery(runner);
}
public BachInsert doBachInsert(final ThrowingConsumer>> fn) {
fn.accept(bachInsert.getList());
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy