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.

@FunctionalInterface public interface CustomStatementSetter<T>
Defines the custom extension for setting parameter value.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setParameter(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 value
      paramIndex - The index of parameter to set
      columnMeta - The column metadata of the parameter
      value - The parameter value to set
      Throws:
      SQLException - If any SQL error occurs