public class MapperQueryBinder<T> extends Object implements QueryBinder<T>
Constructor and Description |
---|
MapperQueryBinder(MapperQueryPreparer<T> queryPreparer,
Connection connection) |
Modifier and Type | Method and Description |
---|---|
PreparedStatement |
bind(T value)
Bind the value to a new PreparedStatement.
|
void |
bindTo(T value,
PreparedStatement ps)
Bind the value to the specified PreparedStatement.
|
public MapperQueryBinder(MapperQueryPreparer<T> queryPreparer, Connection connection)
public PreparedStatement bind(T value) throws SQLException
QueryBinder
bind
in interface QueryBinder<T>
value
- the valueSQLException
- if an error occurspublic void bindTo(T value, PreparedStatement ps) throws SQLException
QueryBinder
bindTo
in interface QueryBinder<T>
value
- the valueps
- the PreparedStatementSQLException
- if an error occursCopyright © 2017. All rights reserved.