public class FederatedQueryBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected QueryStrategy |
strategy
The QueryStrategy used by this query builder.
|
Constructor and Description |
---|
FederatedQueryBuilder() |
Modifier and Type | Method and Description |
---|---|
String |
buildQueryReplacement(Properties templateProperties,
String ddc,
String query)
Builds the HQL query with the configured QueryStrategy by the given
parameters.
|
boolean |
isSpecialQuery(String query)
Indicates if the given query is a 'special' query on basis of the
configured strategy.
|
void |
setQueryStrategy(QueryStrategy queryStrategy)
Sets the query strategy.
|
void |
setQueryStrategy(String className)
Sets the query strategy as classname.
|
protected QueryStrategy strategy
public void setQueryStrategy(String className)
className
- The class name to be used to dynamically load the query
strategy.public void setQueryStrategy(QueryStrategy queryStrategy)
queryStrategy
- The QueryStrategy to be used by this query builder.public boolean isSpecialQuery(String query) throws Exception
buildQueryReplacement
before they can be invoked.query
- The query in question.Exception
- if no QueryStrategy is set.public String buildQueryReplacement(Properties templateProperties, String ddc, String query) throws Exception
templateProperties
- The properties to be used.ddc
- The DDC name to be used.query
- The original query to be replaced.Exception
- if no QueryStrategy is set.Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.