public class CouchDbStatementAdapter<T,R> extends Object implements StatementAdapter<T,String>
| Modifier and Type | Field and Description |
|---|---|
protected static Pattern |
PATTERN_QUESTION |
protected static String |
REGEX_QUESTION_MARK |
| Constructor and Description |
|---|
CouchDbStatementAdapter(HttpBuilder httpBuilder,
String body,
ParamParser paramParser) |
| Modifier and Type | Method and Description |
|---|---|
StatementAdapter<T,String> |
bind(Param... values)
Bind the varargs parameters to statement
|
StatementAdapter<T,String> |
bind(Param value)
Bind an argument to a position parameter.
|
StatementAdapter<T,String> |
bind(String name,
Object value)
Bind an argument to a named parameter.
|
void |
bindKey()
bind the keys generated
|
void |
close() |
int |
execute() |
String |
getBody() |
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,String> |
with(AutoKey generateKey) |
StatementAdapter<T,String> |
with(ResultRow<T,String> resultRow)
result row
|
protected static final String REGEX_QUESTION_MARK
protected static final Pattern PATTERN_QUESTION
public CouchDbStatementAdapter(HttpBuilder httpBuilder, String body, ParamParser paramParser)
public StatementAdapter<T,String> with(ResultRow<T,String> resultRow)
StatementAdapterwith in interface StatementAdapter<T,String>resultRow - how to process the rowspublic StatementAdapter<T,String> bind(String name, Object value)
StatementAdapterbind in interface StatementAdapter<T,String>name - of parametervalue - of parameterpublic StatementAdapter<T,String> bind(Param value)
StatementAdapterbind in interface StatementAdapter<T,String>value - of parameterpublic StatementAdapter<T,String> bind(Param... values)
StatementAdapterbind in interface StatementAdapter<T,String>values - of parameters as arbitrary numberpublic void bindKey()
StatementAdapterbindKey in interface StatementAdapter<T,String>public StatementAdapter<T,String> with(AutoKey generateKey)
with in interface StatementAdapter<T,String>public int execute()
execute in interface StatementAdapter<T,String>public int reset()
StatementAdapterreset in interface StatementAdapter<T,String>public void close()
close in interface StatementAdapter<T,String>public void setFetchSize(int rows)
StatementAdaptersetFetchSize in interface StatementAdapter<T,String>rows - the number of rows to fetchCopyright © 2012–2020 jkniv, copyleft code. All rights reserved.