Class RelationQueryParameterHandler
java.lang.Object
ch.tocco.nice2.netui.impl.bind.entity.search.queryparams.RelationQueryParameterHandler
- All Implemented Interfaces:
QueryParameterHandler
@Component
public class RelationQueryParameterHandler
extends Object
implements QueryParameterHandler
-
Constructor Summary
ConstructorDescriptionRelationQueryParameterHandler
(UriResolver uriResolver, FulltextSearchBuilderFactory fulltextSearchBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRelationToQuery
(QueryBuilder qsh, EntityModel targetModel, String relationPath, RebindValue queryParam) boolean
Handles the specified query parameter.
-
Constructor Details
-
RelationQueryParameterHandler
public RelationQueryParameterHandler(UriResolver uriResolver, FulltextSearchBuilderFactory fulltextSearchBuilderFactory)
-
-
Method Details
-
processQueryParameter
Description copied from interface:QueryParameterHandler
Handles the specified query parameter. Returnstrue
to indicate successfull handling, so query parameters are not handled twice.- Specified by:
processQueryParameter
in interfaceQueryParameterHandler
- Throws:
RpcExecutionException
-
addRelationToQuery
public void addRelationToQuery(QueryBuilder qsh, EntityModel targetModel, String relationPath, RebindValue queryParam) throws RpcExecutionException - Parameters:
targetModel
- The target (related) entity model, not the source one.relationPath
- Something like "relFoo" or "relFoo.relBar.relBlah".- Throws:
RpcExecutionException
-