Package org.iworkz.habitat.command
Class InsertExecutor
java.lang.Object
org.iworkz.habitat.command.AbstractExecutor
org.iworkz.habitat.command.InsertExecutor
@Singleton public class InsertExecutor extends AbstractExecutor
-
Field Summary
Fields inherited from class org.iworkz.habitat.command.AbstractExecutor
beanHelper, commandBuilder, commandHelper, exceptionFactory, recordHelper, reflectionHelper, stringHelper -
Constructor Summary
Constructors Constructor Description InsertExecutor() -
Method Summary
Modifier and Type Method Description protected voidexecuteBatchAndCommit()<T> TexecuteCreate(ConnectionProvider task, GenericDao dao, GenericDao.CommandCustomizer statementAdapter, T obj)<T> voidexecuteInsert(ConnectionProvider task, GenericDao dao, GenericDao.CommandCustomizer statementAdapter, T obj)<T> voidexecuteInsertAll(ConnectionProvider task, GenericDao dao, GenericDao.CommandCustomizer statementAdapter, Collection<T> objects, Integer maxBatchSize)protected booleansetAutoCommitFalse(Connection connection)Methods inherited from class org.iworkz.habitat.command.AbstractExecutor
cloneBean, getConnection
-
Constructor Details
-
InsertExecutor
public InsertExecutor()
-
-
Method Details
-
executeInsert
public <T> void executeInsert(ConnectionProvider task, GenericDao dao, GenericDao.CommandCustomizer statementAdapter, T obj) -
executeInsertAll
public <T> void executeInsertAll(ConnectionProvider task, GenericDao dao, GenericDao.CommandCustomizer statementAdapter, Collection<T> objects, Integer maxBatchSize) -
setAutoCommitFalse
-
executeBatchAndCommit
protected void executeBatchAndCommit() -
executeCreate
public <T> T executeCreate(ConnectionProvider task, GenericDao dao, GenericDao.CommandCustomizer statementAdapter, T obj)
-