@ConfigurationProperties(prefix="spring.batch.job.jdbcwriter") public class JdbcItemWriterProperties extends Object
JdbcItemWriter
.Constructor and Description |
---|
JdbcItemWriterProperties() |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the configured value of the name used to calculate
ExecutionContext
keys. |
String |
getSql() |
boolean |
isAssertUpdates() |
void |
setAssertUpdates(boolean assertUpdates)
If set to true, confirms that every insert results in the update of at least one
row in the database.
|
void |
setName(String name)
The name used to calculate the key within the
ExecutionContext . |
void |
setSql(String sql)
Sets the sql statement to be used to update the database.
|
public String getSql()
public void setSql(String sql)
sql
- the sql statement to be used.public boolean isAssertUpdates()
public void setAssertUpdates(boolean assertUpdates)
public String getName()
ExecutionContext
keys.public void setName(String name)
ExecutionContext
.name
- name of the writer instanceItemStreamSupport.setName(String)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.