public class RestrictionHelper extends Object
| Constructor and Description |
|---|
RestrictionHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
appendValue(Object value,
StringBuilder queryBuilder)
Append value.
|
static <T> T |
getLastElementFromList(List<T> list)
Get last element from list t.
|
static <T> void |
handleExpressionAppend(T restrictionExpression,
StringBuilder queryBuilder)
Handle expression append.
|
public static <T> void handleExpressionAppend(T restrictionExpression,
StringBuilder queryBuilder)
throws NoSuchMethodException,
InvocationTargetException,
IllegalAccessException
T - the type parameterrestrictionExpression - the restriction expressionqueryBuilder - the query builderNoSuchMethodException - the no such method exceptionInvocationTargetException - the invocation target exceptionIllegalAccessException - the illegal access exceptionpublic static <T> T getLastElementFromList(List<T> list)
T - the type parameterlist - the listpublic static void appendValue(Object value, StringBuilder queryBuilder)
value - the valuequeryBuilder - the query builderCopyright © 2020. All rights reserved.