|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.common.util.dao.TQRestriction
public class TQRestriction
Utilized in conjunction with TypedQueryBuilder to generate TypedQueries programmatically.
| Nested Class Summary | |
|---|---|
static class |
TQRestriction.Mode
|
| Field Summary | |
|---|---|
protected String |
expression
|
protected TQRestriction.Mode |
joinMode
|
protected String |
operation
|
protected Object |
parameter
|
protected List<TQRestriction> |
restrictions
|
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String expression
protected String operation
protected Object parameter
protected TQRestriction.Mode joinMode
protected List<TQRestriction> restrictions
| Constructor Detail |
|---|
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 - | Method Detail |
|---|
public TQRestriction addChildRestriction(TQRestriction r)
r -
public String toQl(String parameterName,
Map<String,Object> paramMap)
parameterName - paramMap -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||