public class DecoratedCriteria extends Object implements GeneratorStrategy
Constructor and Description |
---|
DecoratedCriteria(Criteria criteria,
com.tridion.broker.querying.criteria.strategies.QueryNumberGenerator joinNumberGenerator)
Constructor of the class.
|
Modifier and Type | Method and Description |
---|---|
Criteria |
getCriteria()
Retrieve the criteria attached to this strategy.
|
String |
getCriteriaSignature() |
String |
getFrom()
Method that returns query join string for specific criteria.
|
String |
getFrom(String theJoinId)
Method that returns query join string for specific criteria and specific JoinId.
|
String |
getJoindId()
Retrieve the joinId used for generating the criteria and join string.
|
String |
getOrder() |
String |
getOrder(String theJoinId)
This generates the ordering part of the broker query, this indicates on which entities conditions
can be applied.
|
Map<String,Object> |
getParams() |
Map<String,Object> |
getParams(String theJoinId)
Method that returns parameters list for specific criteria.
|
String |
getSelect() |
String |
getSelect(String theJoinId)
This generates the select part of the broker Query.
|
String |
getWhere()
Method that returns query string for specific criteria and specific JoinId.
|
String |
getWhere(String theJoinId)
Method that returns query string for specific criteria.
|
public DecoratedCriteria(Criteria criteria, com.tridion.broker.querying.criteria.strategies.QueryNumberGenerator joinNumberGenerator)
criteria
- Criteria objectpublic Criteria getCriteria()
public String getCriteriaSignature()
public Map<String,Object> getParams(String theJoinId) throws CriteriaException
getParams
in interface GeneratorStrategy
CriteriaException
- If unable to generate the parameters neededpublic Map<String,Object> getParams() throws CriteriaException
CriteriaException
public String getJoindId()
public String getOrder(String theJoinId) throws CriteriaException
GeneratorStrategy
getOrder
in interface GeneratorStrategy
theJoinId
- The joinId to be used that uniquely identifies the entities for the strategyCriteriaException
- If unable to generate the order part of the broker querypublic String getOrder() throws CriteriaException
CriteriaException
public String getSelect(String theJoinId) throws CriteriaException
GeneratorStrategy
getSelect
in interface GeneratorStrategy
theJoinId
- The joinId to be used that uniquely identifies the entities for the strategyCriteriaException
- If unable to generate the select part of the broker querypublic String getSelect() throws CriteriaException
CriteriaException
public String getWhere(String theJoinId) throws CriteriaException
getWhere
in interface GeneratorStrategy
theJoinId
- The joinId to be used that uniquely identifies the entities for the strategyCriteriaException
- If unable to generate the condition part of the broker querypublic String getWhere() throws CriteriaException
CriteriaException
public String getFrom(String theJoinId) throws CriteriaException
getFrom
in interface GeneratorStrategy
theJoinId
- The joinId to be used that uniquely identifies the entities for the strategyCriteriaException
- If unable to generate the from part of the broker querypublic String getFrom() throws CriteriaException
CriteriaException
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries