T - the type parameterpublic abstract class Restriction<T> extends Object implements RestrictionInterface, AddRestrictionInterface
| Modifier and Type | Field and Description |
|---|---|
protected List<T> |
restrictionExpressionList
The Restriction expression list.
|
| Constructor and Description |
|---|
Restriction() |
| Modifier and Type | Method and Description |
|---|---|
static void |
appendGroupedRestrictions(List<GroupedRestriction> groupedRestrictions,
StringBuilder queryBuilder)
Append grouped restrictions.
|
static <T> void |
appendRestrictions(List<T> restrictions,
StringBuilder queryBuilder)
Append restrictions.
|
Restriction |
build()
Build restriction.
|
static void |
filterRestrictions(List<GroupedRestriction> groupedRestrictions)
Filter restrictions.
|
Boolean |
getBuildCompleted()
Gets build completed.
|
String |
getLogicalCombiner()
Gets logical combiner.
|
List<T> |
getRestrictionExpressionList()
Gets restriction expression list.
|
void |
setBuildCompleted(Boolean buildCompleted)
Sets build completed.
|
void |
setLogicalCombiner(String logicalCombiner)
Sets logical combiner.
|
void |
setRestrictionExpressionList(List<T> restrictionExpressionList)
Sets restriction expression list.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, oraddRestrictionpublic List<T> getRestrictionExpressionList()
public void setRestrictionExpressionList(List<T> restrictionExpressionList)
restrictionExpressionList - the restriction expression listpublic String getLogicalCombiner()
public void setLogicalCombiner(String logicalCombiner)
logicalCombiner - the logical combinerpublic Boolean getBuildCompleted()
public void setBuildCompleted(Boolean buildCompleted)
buildCompleted - the build completedpublic Restriction build()
public static void filterRestrictions(List<GroupedRestriction> groupedRestrictions)
groupedRestrictions - the grouped restrictionspublic static void appendGroupedRestrictions(List<GroupedRestriction> groupedRestrictions, StringBuilder queryBuilder) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException
groupedRestrictions - the grouped restrictionsqueryBuilder - the query builderNoSuchMethodException - the no such method exceptionInvocationTargetException - the invocation target exceptionIllegalAccessException - the illegal access exceptionpublic static <T> void appendRestrictions(List<T> restrictions, StringBuilder queryBuilder) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
T - the type parameterrestrictions - the restrictionsqueryBuilder - the query builderNoSuchMethodException - the no such method exceptionIllegalAccessException - the illegal access exceptionInvocationTargetException - the invocation target exceptionCopyright © 2020. All rights reserved.