Interface MessagePreparedStatementSetter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The callback to be used with the
JdbcMessageHandler
as an alternative to the SqlParameterSourceFactory.
Plays the same role as standard
PreparedStatementSetter,
but with Message<?> requestMessage context during handleMessage
process in the JdbcMessageHandler.
- Since:
- 4.2
- See Also:
-
PreparedStatementSetter
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetValues(PreparedStatement ps, org.springframework.messaging.Message<?> requestMessage) Set parameter values on the givenPreparedStatementand message context.
-
Method Details
-
setValues
void setValues(PreparedStatement ps, org.springframework.messaging.Message<?> requestMessage) throws SQLException Set parameter values on the givenPreparedStatementand message context.- Parameters:
ps- thePreparedStatementto set value.requestMessage- the message as a context for values.- Throws:
SQLException- if an SQLException is encountered
-