public static class QueryFactory.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Queryable |
build(String name) |
QueryFactory.Builder |
filter(Filter<?> filter) |
QueryFactory.Builder |
max(int max) |
QueryFactory.Builder |
ofArray(Object... params)
Build the query parameters as array of values.
|
QueryFactory.Builder |
offset(int offset) |
QueryFactory.Builder |
params(Object... params)
Build the query parameters as Map
|
QueryFactory.Builder |
params(String name,
Object value)
Build the query parameters as Map.
|
<T> QueryFactory.Builder |
params(T param)
Build the query parameters as POJO
|
QueryFactory.Builder |
registerType(RegisterType registerType) |
QueryFactory.Builder |
returnType(Class<?> returnType) |
QueryFactory.Builder |
scalar() |
QueryFactory.Builder |
sorter(Comparator<?> sorter) |
public Builder()
public QueryFactory.Builder params(Object... params)
note: don't mix the set param
values and ofArray
params
- dynamically created
1o first param it's key name and 2o your value
3o it's key 4o your value and so on.
public QueryFactory.Builder params(String name, Object value)
note: don't mix the set param
values and ofArray
name
- parametervalue
- parameterpublic <T> QueryFactory.Builder params(T param)
note: don't mix the set param
values and ofArray
T
- Type of class that represents the parametersparam
- instance of class the represents the parameterspublic QueryFactory.Builder ofArray(Object... params)
note: don't mix the set param
values and ofArray
params
- array of parameterspublic QueryFactory.Builder offset(int offset)
public QueryFactory.Builder max(int max)
public QueryFactory.Builder registerType(RegisterType registerType)
public QueryFactory.Builder returnType(Class<?> returnType)
public QueryFactory.Builder sorter(Comparator<?> sorter)
public QueryFactory.Builder filter(Filter<?> filter)
public QueryFactory.Builder scalar()
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.