public class SqlMapExecutorBatchInserter extends java.lang.Object implements BatchInserter
Constructor and Description |
---|
SqlMapExecutorBatchInserter(com.ibatis.sqlmap.client.SqlMapExecutor sqlMapExecutor)
Instantiates a new sql map executor batch inserter.
|
Modifier and Type | Method and Description |
---|---|
void |
executeBatch()
Execute batch.
|
com.ibatis.sqlmap.client.SqlMapExecutor |
getSqlMapExecutor()
Gets the sql map executor.
|
void |
insert(java.lang.String sql,
java.lang.Object parameter)
Insert.
|
void |
setSqlMapExecutor(com.ibatis.sqlmap.client.SqlMapExecutor sqlMapExecutor)
Sets the sql map executor.
|
void |
startBatch()
Start batch.
|
public SqlMapExecutorBatchInserter(com.ibatis.sqlmap.client.SqlMapExecutor sqlMapExecutor)
sqlMapExecutor
- the sql map executorpublic void executeBatch()
BatchInserter
executeBatch
in interface BatchInserter
public void startBatch()
BatchInserter
startBatch
in interface BatchInserter
public void insert(java.lang.String sql, java.lang.Object parameter)
Inserter
public com.ibatis.sqlmap.client.SqlMapExecutor getSqlMapExecutor()
public void setSqlMapExecutor(com.ibatis.sqlmap.client.SqlMapExecutor sqlMapExecutor)
sqlMapExecutor
- the new sql map executor