public class NamedColumnJdbcItemReaderFactory extends Object implements org.springframework.beans.factory.FactoryBean<NamedColumnJdbcItemReader>, org.springframework.beans.factory.InitializingBean
NamedColumnJdbcItemReader. This factory
will verify the type of database and configure the appropriate properties so that a streaming cursor is
returned. Specifically, it will configure fetchSize=Integer.MIN_VALUE for MySql and set
verifyCursorPosition=false for both MySql and SQLite.| Constructor and Description |
|---|
NamedColumnJdbcItemReaderFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
NamedColumnJdbcItemReader |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setColumnNames(String columnNames) |
void |
setDataSource(DataSource dataSource) |
void |
setDelimiter(String delimiter) |
void |
setFetchSize(int fetchSize) |
void |
setPartitionClause(String partitionClause) |
void |
setSql(String sql) |
void |
setTableName(String tableName) |
void |
setVerifyCursorPosition(boolean verify) |
public NamedColumnJdbcItemReader getObject() throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<NamedColumnJdbcItemReader>Exceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<NamedColumnJdbcItemReader>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<NamedColumnJdbcItemReader>public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void setDataSource(DataSource dataSource)
public void setTableName(String tableName)
public void setColumnNames(String columnNames)
public void setPartitionClause(String partitionClause)
public void setSql(String sql)
public void setFetchSize(int fetchSize)
public void setVerifyCursorPosition(boolean verify)
public void setDelimiter(String delimiter)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.