public final class SqlBindings extends Object
ResultSet and PreparedStatement
parameters.
Note that this class is not part of the public API of this library and as such, is not required to stay compatible between versions.
ParameterProviderImpl.with(Object...),
ParameterProviderImpl.set(int, Object)| Modifier and Type | Class and Description |
|---|---|
class |
SqlBindings.Bindings<T> |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
bind(PreparedStatement stmt,
int index,
T value) |
<Statement extends PreparedStatement> |
bind(Statement stmt,
Object[] params,
int offset) |
<T> boolean |
hasBinder(Class<T> clazz) |
<T> T |
retrieve(ResultSet resultSet,
int index,
Class<T> clazz) |
<T> T |
retrieve(ResultSet resultSet,
String name,
Class<T> clazz) |
public <Statement extends PreparedStatement> Statement bind(Statement stmt, Object[] params, int offset) throws SQLException
SQLExceptionpublic <T> void bind(PreparedStatement stmt, int index, T value) throws SQLException
SQLExceptionpublic <T> T retrieve(ResultSet resultSet, int index, Class<T> clazz) throws SQLException
SQLExceptionpublic <T> T retrieve(ResultSet resultSet, String name, Class<T> clazz) throws SQLException
SQLExceptionpublic <T> boolean hasBinder(Class<T> clazz)
Copyright © 2019. All rights reserved.