Package guru.mikelue.foxglove.jdbc
Interface CustomStatementSetter<T>
- Type Parameters:
T- The type of parameter value
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Defines the custom extension for setting parameter value.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetParameter(PreparedStatement stmt, int paramIndex, ColumnMeta columnMeta, T value) Sets the parameter value to the statement.
-
Method Details
-
setParameter
void setParameter(PreparedStatement stmt, int paramIndex, ColumnMeta columnMeta, T value) throws SQLException Sets the parameter value to the statement.- Parameters:
stmt- The statement to set parameter valueparamIndex- The index of parameter to setcolumnMeta- The column metadata of the parametervalue- The parameter value to set- Throws:
SQLException- If any SQL error occurs
-