Interface ValueBinder
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional contract for binding a value to a provided JDBC statement.
- Author:
- Chris Cranford
-
Method Summary
Modifier and TypeMethodDescriptionvoidbind(PreparedStatement ps, int index) Binds a value to the prepared statement at the given index.
-
Method Details
-
bind
Binds a value to the prepared statement at the given index.- Parameters:
ps- prepared statementindex- the index to bind- Throws:
SQLException- if there is a database exception
-