Interface ParamMapper
public interface ParamMapper
Maps and binds a parameter to a JDBC PreparedStatement.
Implementations set the value for a specific parameter index.
-
Method Summary
Modifier and TypeMethodDescriptionvoidset(PreparedStatement ps, int index) Binds a parameter value to the given PreparedStatement at the specified index.
-
Method Details
-
set
Binds a parameter value to the given PreparedStatement at the specified index.- Parameters:
ps- the PreparedStatement to bind toindex- the parameter index (1-based)- Throws:
SQLException- if binding fails or a database error occurs
-