T
- type of object to return by Repository
R
- The driver result of a query like ResultSet
public interface StatementAdapter<T,R>
Modifier and Type | Method and Description |
---|---|
StatementAdapter<T,R> |
bind(Param... values)
Bind the varargs parameters to statement
|
StatementAdapter<T,R> |
bind(Param value)
Bind an argument to a position parameter.
|
StatementAdapter<T,R> |
bind(String name,
Object value)
Bind an argument to a named parameter.
|
void |
bindKey()
bind the keys generated
|
void |
close() |
int |
execute() |
int |
reset()
reset the internal index position parameter to zero.
|
List<T> |
rows() |
void |
setFetchSize(int rows)
Set the number of rows that should be fetched when the statement hit the database.
|
StatementAdapter<T,R> |
with(AutoKey generateKey) |
StatementAdapter<T,R> |
with(ResultRow<T,R> resultRow)
result row
|
StatementAdapter<T,R> bind(String name, Object value)
name
- of parametervalue
- of parameterStatementAdapter<T,R> bind(Param value)
value
- of parameterStatementAdapter<T,R> bind(Param... values)
values
- of parameters as arbitrary numberStatementAdapter<T,R> with(ResultRow<T,R> resultRow)
resultRow
- how to process the rowsStatementAdapter<T,R> with(AutoKey generateKey)
void bindKey()
int execute()
int reset()
void close()
void setFetchSize(int rows)
rows
- the number of rows to fetchCopyright © 2012–2020 jkniv, copyleft code. All rights reserved.