Interface SQLDefaultSetter

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 SQLDefaultSetter
Performs the complete JDBC operation for setting the default value of one parameter occurrence without receiving an application value. The default is determined by the implementation and need not be the SQL column's DEFAULT expression; it may be a domain-specific value, a typed NULL, or another representation. Default-value binding is a distinct operation from passing null to a SQLValueSetter. A cursor invokes the setter immediately and does not retain it after the call.
Since:
4.15
Author:
Eike Stepper
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Sets one parameter occurrence to its implementation-defined default at the supplied one-based JDBC position.
  • Method Details

    • setDefaultValue

      void setDefaultValue(PreparedStatement stmt, int index) throws SQLException
      Sets one parameter occurrence to its implementation-defined default at the supplied one-based JDBC position.
      Parameters:
      stmt - the prepared statement receiving the binding
      index - the one-based JDBC parameter position
      Throws:
      SQLException - if the JDBC driver reports a binding failure