|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.integration.jdbc.JdbcPollingChannelAdapter
public class JdbcPollingChannelAdapter
A polling channel adapter that creates messages from the payload returned by executing a select query. Optionally an update can be executed after the select in order to update processed rows.
Constructor Summary | |
---|---|
JdbcPollingChannelAdapter(javax.sql.DataSource dataSource,
java.lang.String selectQuery)
Constructor taking DataSource from which the DB Connection can
be obtained and the select query to execute to retrieve new rows. |
|
JdbcPollingChannelAdapter(org.springframework.jdbc.core.JdbcOperations jdbcOperations,
java.lang.String selectQuery)
Constructor taking JdbcOperations instance to use for query
execution and the select query to execute to retrieve new rows. |
Method Summary | |
---|---|
Message<java.lang.Object> |
receive()
Executes the query. |
void |
setRowMapper(org.springframework.jdbc.core.RowMapper<?> rowMapper)
|
void |
setSqlParameterSourceFactoryForUpdate(SqlParameterSourceFactory sqlParameterSourceFactoryForUpdate)
|
void |
setUpdatePerRow(boolean updatePerRow)
|
void |
setUpdateSql(java.lang.String updateSql)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JdbcPollingChannelAdapter(javax.sql.DataSource dataSource, java.lang.String selectQuery)
DataSource
from which the DB Connection can
be obtained and the select query to execute to retrieve new rows.
dataSource
- used to create a SimpleJdbcTemplate
selectQuery
- query to executepublic JdbcPollingChannelAdapter(org.springframework.jdbc.core.JdbcOperations jdbcOperations, java.lang.String selectQuery)
JdbcOperations
instance to use for query
execution and the select query to execute to retrieve new rows.
jdbcOperations
- instance to use for query executionselectQuery
- query to executeMethod Detail |
---|
public void setRowMapper(org.springframework.jdbc.core.RowMapper<?> rowMapper)
public void setUpdateSql(java.lang.String updateSql)
public void setUpdatePerRow(boolean updatePerRow)
public void setSqlParameterSourceFactoryForUpdate(SqlParameterSourceFactory sqlParameterSourceFactoryForUpdate)
public Message<java.lang.Object> receive()
null
.
receive
in interface MessageSource<java.lang.Object>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |