public interface Query
Type Params | Return Type | Name and description |
---|---|---|
|
public Query |
bind(java.lang.Object bean)
|
|
public int |
executeUpdate()
|
|
public java.util.Map<java.lang.String, java.lang.Object> |
findRow()
|
<T> |
public T |
findRow(java.lang.Class<T> type)
|
|
public java.util.List<java.util.Map<java.lang.String, java.lang.Object>> |
findRows()
|
<T> |
public java.util.List<T> |
findRows(java.lang.Class<T> type)
|
<T> |
public T |
insertAndReturnKey()
|
|
public Query |
params(java.util.Map<java.lang.String, java.lang.Object> params)
|
|
public Query |
setParameter(java.lang.String name, java.lang.Object value) Set the value of a named parameter |
|
public Query |
setParameter(int position, java.lang.Object value) Set a positional parameter. |
<T> |
public T |
value()
|
<T> |
public java.util.List<T> |
values()
|
bean
- A Java Bean containing values for named parameters
type
- A Java Bean classT
- A generic type
type
- A Java Bean classT
- A generic type
T
- A generic type
params
- A java.util.Map<String, Object> or any Java Bean from which the query can source its parameter valuesSet the value of a named parameter
name
- The named parametervalue
- The value to setSet a positional parameter. The first parameter has position 1
position
- 1-based index of the parametervalue
- The parameter value
T
- A generic type
T
- A generic type