{code:java}/** * Extension point Strategy for rendering generating parameter markers into SQL strings for PreparedStatements . * .. . */ interface ParameterMarkerStrategy { /** * Create a parameter marker for the parameter at the given position * * @param The 1-based position of the parameter in the with a statement . * @param jdbcType The type of the parameter, if known - may be {@code null}. * / String createParameterMarker createMarker (int position , JdbcType jdbcType ); }{code}
I go back and forth about the {{JdbcType}} argument. Just seems like it would ultimately be useful, but (1) none of the code uses it and (2) in many code paths ({{SimpleSelect}} and friends, native-query,..) that information is not even available. |
|