public class TQRestriction extends Object
TypedQueryBuilder to generate TypedQueries programmatically.| Modifier and Type | Class and Description | 
|---|---|
| static class  | TQRestriction.Mode | 
| Modifier and Type | Field and Description | 
|---|---|
| protected String | expression | 
| protected TQRestriction.Mode | joinMode | 
| protected String | operation | 
| protected Object | parameter | 
| protected List<TQRestriction> | restrictions | 
| Constructor and Description | 
|---|
| TQRestriction(String expression,
             String operation)Creates a simple restriction. | 
| TQRestriction(String expression,
             String operation,
             Object parameter)Creates a simple restriction. | 
| TQRestriction(TQRestriction.Mode joinMode)Creates an empty restriction node with the specified join mode. | 
| Modifier and Type | Method and Description | 
|---|---|
| TQRestriction | addChildRestriction(TQRestriction r)Adds a child restriction to the restrictions list | 
| String | toQl(String parameterName,
    Map<String,Object> paramMap)Recursively generates a query string representation of this restriction along with any child restrictions
 that this object may have. | 
protected String expression
protected String operation
protected Object parameter
protected TQRestriction.Mode joinMode
protected List<TQRestriction> restrictions
public TQRestriction(String expression, String operation)
expression - operation - public TQRestriction(String expression, String operation, Object parameter)
expression - operation - parameter - public TQRestriction(TQRestriction.Mode joinMode)
joinMode - public TQRestriction addChildRestriction(TQRestriction r)
r - public String toQl(String parameterName, Map<String,Object> paramMap)
parameterName - paramMap - Copyright © 2020. All rights reserved.