@Deprecated public class IbatisBatchItemWriter<T> extends java.lang.Object implements ItemWriter<T>, org.springframework.beans.factory.InitializingBean
ItemWriter that uses the batching features from
SqlMapClient to execute a batch of statements for all items
provided.write(List) is called inside a transaction.| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
logger
Deprecated.
|
| Constructor and Description |
|---|
IbatisBatchItemWriter()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Deprecated.
Check mandatory properties - there must be an SqlMapClient and a statementId.
|
void |
setAssertUpdates(boolean assertUpdates)
Deprecated.
Public setter for the flag that determines whether an assertion is made
that all items cause at least one row to be updated.
|
void |
setDataSource(javax.sql.DataSource dataSource)
Deprecated.
|
void |
setSqlMapClient(com.ibatis.sqlmap.client.SqlMapClient sqlMapClient)
Deprecated.
Public setter for
SqlMapClient for injection purposes. |
void |
setStatementId(java.lang.String statementId)
Deprecated.
Public setter for the statement id identifying the statement in the SqlMap
configuration file.
|
void |
write(java.util.List<? extends T> items)
Deprecated.
Process the supplied data element.
|
public void setDataSource(javax.sql.DataSource dataSource)
public void setAssertUpdates(boolean assertUpdates)
assertUpdates - the flag to set. Defaults to true;public void setSqlMapClient(com.ibatis.sqlmap.client.SqlMapClient sqlMapClient)
SqlMapClient for injection purposes.sqlMapClient - the SqlMapClientpublic void setStatementId(java.lang.String statementId)
statementId - the id for the statementpublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic void write(java.util.List<? extends T> items)
ItemWriterwrite in interface ItemWriter<T>items - items to be written