Package org.eclipse.net4j.db.dml
Interface SQLValueSetter<JAVA>
- Type Parameters:
JAVA- the application value type
- 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 binding operation for one application value at one parameter position.
The setter receives
null values and is responsible for choosing the appropriate JDBC NULL
operation. Setters configured on parameters are retained by compiled statements, so captured
objects may remain reachable for the lifetime of those definitions. Callers choose suitable reuse,
mutable-state, thread-safety, and connection or execution-specific lifetimes.- Since:
- 4.15
- Author:
- Eike Stepper
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetValue(PreparedStatement stmt, int index, JAVA value) Sets one application value at the supplied one-based JDBC parameter position.
-
Method Details
-
setValue
Sets one application value at the supplied one-based JDBC parameter position.- Parameters:
stmt- the prepared statement receiving the valueindex- the one-based parameter indexvalue- the application value, possiblynull- Throws:
SQLException- if the JDBC driver reports a binding failure
-