public class MyBatisCursorItemReader<T>
extends org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader<T>
implements org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
MyBatisCursorItemReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Check mandatory properties.
|
protected void |
doClose() |
protected void |
doOpen() |
protected T |
doRead() |
void |
setParameterValues(Map<String,Object> parameterValues)
The parameter values to be used for the query execution.
|
void |
setQueryId(String queryId)
Public setter for the statement id identifying the statement in the SqlMap
configuration file.
|
void |
setSqlSessionFactory(org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory)
Public setter for
SqlSessionFactory for injection purposes. |
close, getCurrentItemCount, isSaveState, jumpToItem, open, read, setCurrentItemCount, setMaxItemCount, setSaveState, updateprotected T doRead()
doRead in class org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader<T>protected void doOpen()
doOpen in class org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader<T>protected void doClose()
throws Exception
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionInitializingBean.afterPropertiesSet()public void setSqlSessionFactory(org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory)
SqlSessionFactory for injection purposes.sqlSessionFactory - a factory object for the SqlSession.public void setQueryId(String queryId)
queryId - the id for the statementCopyright © 2010–2019 MyBatis.org. All rights reserved.