| Modifier and Type | Class and Description |
|---|---|
static class |
Param.Builder.DefaultWildcardMapping
* => %, ? => _
|
static interface |
Param.Builder.WildcardMapping
translation table a wildcard for more characters and a wildcard for one character
|
| Modifier and Type | Field and Description |
|---|---|
static Param.Builder.WildcardMapping |
DEFAULT_MAPPING |
static String |
ISEMPTY |
static String |
ISNOTEMPTY |
static String |
ISNOTNULL |
static String |
ISNULL |
static char |
NEGATION |
| Constructor and Description |
|---|
Builder()
Builder with syntax support in value (!, is [not] null).
|
Builder(boolean syntaxInValue,
Param.Builder.WildcardMapping wildcardMapping) |
| Modifier and Type | Method and Description |
|---|---|
Param.Builder |
add(String paramKey,
Object paramValue)
Calls
add(java.lang.String, java.lang.Object, boolean) with
false |
Param.Builder |
add(String paramKey,
Object paramValue,
boolean or)
When paramValue is a String use like as operator otherwise = and call
add(java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean),
otherwise call add(java.lang.String, java.lang.String, java.lang.String, java.lang.Object, boolean, boolean)
with false for not. |
Param.Builder |
add(String propertyPath,
String paramKey,
String operator,
Object paramValue)
When paramValue is a String call
add(java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean) with false otherwise call add(java.lang.String, java.lang.String, java.lang.String, java.lang.Object, boolean, boolean) with false, false. |
Param.Builder |
add(String propertyPath,
String paramKey,
String operator,
Object paramValue,
boolean not,
boolean or)
Bottleneck function, adds a new Param
|
Param.Builder |
add(String propertyPath,
String paramKey,
String operator,
String paramValue,
boolean or)
When paramValue starts with a !
negation is used,
when trimmed paramValue is "is [not] null",
operator is set to value and value will be ignored. |
List<Param> |
build() |
boolean |
containsKey(String key) |
static boolean |
emptyComp(String s)
check if a value is a empty comparison
|
boolean |
isNegation(String value)
check if a value indicates a negation
|
boolean |
isSyntaxInValue() |
static boolean |
nullComp(String s)
check if a value is a null comparison
|
public static final Param.Builder.WildcardMapping DEFAULT_MAPPING
public static final String ISNULL
public static final String ISNOTNULL
public static final String ISEMPTY
public static final String ISNOTEMPTY
public static final char NEGATION
public Builder(boolean syntaxInValue,
Param.Builder.WildcardMapping wildcardMapping)
public Builder()
#Builder(boolean, WildcardMapping) with true and null.public Param.Builder add(String propertyPath, String paramKey, String operator, Object paramValue)
add(java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean) with false otherwise call add(java.lang.String, java.lang.String, java.lang.String, java.lang.Object, boolean, boolean) with false, false.propertyPath - paramKey - operator - paramValue - public Param.Builder add(String propertyPath, String paramKey, String operator, String paramValue, boolean or)
negation is used,
when trimmed paramValue is "is [not] null",
operator is set to value and value will be ignored.propertyPath - paramKey - operator - paramValue - or - public Param.Builder add(String propertyPath, String paramKey, String operator, Object paramValue, boolean not, boolean or)
propertyPath - paramKey - operator - paramValue - not - or - public boolean isNegation(String value)
value - public static boolean nullComp(String s)
s - public static boolean emptyComp(String s)
s - public Param.Builder add(String paramKey, Object paramValue)
add(java.lang.String, java.lang.Object, boolean) with
falseparamKey - paramValue - public Param.Builder add(String paramKey, Object paramValue, boolean or)
add(java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean),
otherwise call add(java.lang.String, java.lang.String, java.lang.String, java.lang.Object, boolean, boolean)
with false for not.paramKey - paramValue - or - when true use or in queriespublic boolean isSyntaxInValue()
public boolean containsKey(String key)
Copyright © 2018 Fryske Akademy. All rights reserved.