Package org.eclipse.net4j.db.dml
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.
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 TypeMethodDescriptionvoidsetDefaultValue(PreparedStatement stmt, int index) Sets one parameter occurrence to its implementation-defined default at the supplied one-based JDBC position.
-
Method Details
-
setDefaultValue
Sets one parameter occurrence to its implementation-defined default at the supplied one-based JDBC position.- Parameters:
stmt- the prepared statement receiving the bindingindex- the one-based JDBC parameter position- Throws:
SQLException- if the JDBC driver reports a binding failure
-