Interface ValueBinder<X>

    • Method Detail

      • bind

        void bind​(PreparedStatement st,
                  X value,
                  int index,
                  WrapperOptions options)
           throws SQLException
        Bind a value to a prepared statement.
        Parameters:
        st - The prepared statement to which to bind the value.
        value - The value to bind.
        index - The position at which to bind the value within the prepared statement
        options - The options.
        Throws:
        SQLException - Indicates a JDBC error occurred.
      • bind

        void bind​(CallableStatement st,
                  X value,
                  String name,
                  WrapperOptions options)
           throws SQLException
        Bind a value to a CallableStatement.
        Parameters:
        st - The prepared statement to which to bind the value.
        value - The value to bind.
        name - The name to bind the value within the prepared statement
        options - The options.
        Throws:
        SQLException - Indicates a JDBC error occurred.