T
- stream tuple type@FunctionalInterface
public interface ParameterSetter<T>
PreparedStatement
.Modifier and Type | Method and Description |
---|---|
void |
setParameters(T t,
java.sql.PreparedStatement stmt)
Set 0 or more parameters in a JDBC PreparedStatement.
|
void setParameters(T t, java.sql.PreparedStatement stmt) throws java.sql.SQLException
Sample use for a PreparedStatement of:
"SELECT id, firstname, lastname FROM persons WHERE id = ?"
ParameterSetter<PersonId> ps = (personId,stmt) -> stmt.setInt(1, personId.getId());
t
- stream tuple of type Tstmt
- PreparedStatementjava.sql.SQLException
- on failureCopyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641