Interface QueryDef
-
public interface QueryDefThe query definition used to build queries in fluent style.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends Result>
Texecute(Class<T> clazz)Executes a query.<T extends Result>
TexecuteWithAutoCommit(Class<T> clazz)Executes a query with autocommit on.QueryDefon(String key, Object value)Adds an argument to the query.QueryDefon(List<Object> arguments)Adds multiple arguments to the query.
-
-
-
Method Detail
-
on
QueryDef on(String key, Object value)
Adds an argument to the query.- Parameters:
key- the ID of the parametervalue- the value of the parameter- Returns:
- the query definition object
-
on
QueryDef on(List<Object> arguments)
Adds multiple arguments to the query.- Parameters:
arguments- the collection of arguments- Returns:
- the query definition object
-
execute
<T extends Result> T execute(Class<T> clazz)
Executes a query.- Parameters:
clazz- the type of the expected result set- Returns:
- the result set
-
-