@NotFinalAPI public interface SingleQueryReferenceDefinition extends QueryReferenceDefinition<SingleQueryReferenceDefinition>, DataStoresConditionable<SingleQueryReferenceDefinition>, ContactNodeRestrictions<SingleQueryReferenceDefinition>
queryParameters()
can then be used to
insert values into those conditions, or even replace a named condition completely.restrictions()
map allows defining restrictions per node name.
A QueryNodeRestrictions object can be used to restrict a node to certain Ids, types or add additional property
conditions.Query
object with this definition returns the "flatten" QueryDefinition
- with all restrictions
and parameters already applied.
Note: While it is possible to define a query reference that does not add restrictions or parameters, it is useless
to do so.
Methods from the following interfaces refer to restrictions on the entire query:
Modifier and Type | Method and Description |
---|---|
String |
baseQueryName()
The query this definition is referencing.
|
QueryNodeRestrictions |
nodeRestrictions(String nodeName)
Creates or returns the node restrictions for the given node name.
|
QueryParameters |
queryParameters()
The query parameters this definition should use.
|
Map<String,QueryNodeRestrictions> |
restrictions()
The map of restrictions.
|
asMultipleReferencesWithFunctionDefinition, asSingleQueryReferenceDefinition, description, firstLoadStrategy, name, recalcPriority, referenceDefinitionType, toExecutable, withDescription, withFirstLoadStrategy, withRecalcPriority
bundleNames, withBundles
dataStores, isAllDataStores, isInternalDataStoreOnly, withAllDataStores, withDataStores, withDataStores, withInternalDataStoreOnly
queriesRestrictingContactNodes, restrictAllContactNodesByQueries, restrictAllContactNodesByQueries
String baseQueryName()
QueryParameters queryParameters()
Map<String,QueryNodeRestrictions> restrictions()
QueryNodeRestrictions nodeRestrictions(String nodeName)
nodeName
- the node name. A node with that name should exist in the base query. Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.