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
- Author:
- Artem Bilan, Gary Russell
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setValues
(PreparedStatement ps, Message<?> requestMessage) Set parameter values on the givenPreparedStatement
and message context.
-
Method Details
-
setValues
Set parameter values on the givenPreparedStatement
and message context.- Parameters:
ps
- thePreparedStatement
to set value.requestMessage
- the message as a context for values.- Throws:
SQLException
- if an SQLException is encountered
-