handleRequestMessage(Message<?> requestMessage)
Subclasses must implement this method to handle the request Message.
protected void
onInit()
Subclasses may implement this for initialization logic.
void
setKeysGenerated(boolean keysGenerated)
Flag to indicate that the update query is an insert with autogenerated keys, which will be logged at debug level.
void
setMaxRowsPerPoll(java.lang.Integer maxRowsPerPoll)
The maximum number of rows to pull out of the query results per poll (if
greater than zero, otherwise all rows will be packed into the outgoing
message).
public JdbcOutboundGateway(javax.sql.DataSource dataSource,
java.lang.String updateQuery)
JdbcOutboundGateway
public JdbcOutboundGateway(javax.sql.DataSource dataSource,
java.lang.String updateQuery,
java.lang.String selectQuery)
JdbcOutboundGateway
public JdbcOutboundGateway(org.springframework.jdbc.core.JdbcOperations jdbcOperations,
java.lang.String updateQuery)
JdbcOutboundGateway
public JdbcOutboundGateway(org.springframework.jdbc.core.JdbcOperations jdbcOperations,
java.lang.String updateQuery,
java.lang.String selectQuery)
Method Detail
setMaxRowsPerPoll
public void setMaxRowsPerPoll(java.lang.Integer maxRowsPerPoll)
The maximum number of rows to pull out of the query results per poll (if
greater than zero, otherwise all rows will be packed into the outgoing
message).
The value is ultimately set on the underlying JdbcPollingChannelAdapter.
If not specified this value will default to zero.
This parameter is only applicable if a selectQuery was provided. Null values
are not permitted.
Subclasses must implement this method to handle the request Message. The return
value may be a Message, a MessageBuilder, or any plain Object. The base class
will handle the final creation of a reply Message from any of those starting
points. If the return value is null, the Message flow will end here.