@NotFinalAPI public interface QueryReferenceDefinition<T extends QueryReferenceDefinition> extends BundledResource<QueryReferenceDefinition>
referenceDefinitionType()
method.Modifier and Type | Method and Description |
---|---|
MultipleReferencesWithFunctionDefinition |
asMultipleReferencesWithFunctionDefinition()
Returns this interface as a MultipleReferencesWithFunctionDefinition .
|
SingleQueryReferenceDefinition |
asSingleQueryReferenceDefinition()
Returns this interface as a SingleQueryReferenceDefinition.
|
String |
description()
A human-readable description of the query definition purpose.
|
QueryDefinitionFirstLoadStrategy |
firstLoadStrategy()
The values that determines when a saved query should first be loaded and calculated.
|
String |
name()
The name of the query definition.
|
QueryDefinitionRecalcPriority |
recalcPriority()
The value that determines how soon a saved query is recalculated after data change.
|
QueryType |
referenceDefinitionType()
Returns the type of this reference definition.
|
ExecutableQuery |
toExecutable()
Converts this query definition into an executable query object for passing to
TopologyQueryService.executeQuery(ExecutableQuery) . |
T |
withDescription(String description)
Sets a human-readable description of the query definition purpose.
|
T |
withFirstLoadStrategy(QueryDefinitionFirstLoadStrategy firstLoadStrategy)
Sets when a saved query should first be loaded and calculated.
|
T |
withRecalcPriority(QueryDefinitionRecalcPriority recalcPriority)
Sets how soon a saved query is recalculated after data change.
|
bundleNames, withBundles
String name()
String description()
T withDescription(String description)
description
- the description.QueryDefinitionRecalcPriority recalcPriority()
withRecalcPriority(QueryDefinitionRecalcPriority)
T withRecalcPriority(QueryDefinitionRecalcPriority recalcPriority)
QueryDefinitionFirstLoadStrategy firstLoadStrategy()
withFirstLoadStrategy(QueryDefinitionFirstLoadStrategy)
T withFirstLoadStrategy(QueryDefinitionFirstLoadStrategy firstLoadStrategy)
ExecutableQuery toExecutable()
TopologyQueryService.executeQuery(ExecutableQuery)
.QueryType referenceDefinitionType()
SingleQueryReferenceDefinition asSingleQueryReferenceDefinition() throws ClassCastException
referenceDefinitionType()
is not QueryType.SINGLE_REFERENCEClassCastException
- if referenceDefinitionType()
is not QueryType.SINGLE_REFERENCE.MultipleReferencesWithFunctionDefinition asMultipleReferencesWithFunctionDefinition() throws ClassCastException
referenceDefinitionType()
is not QueryType.MULTIPLE_REFERENCES_WITH_FUNCTIONClassCastException
- if referenceDefinitionType()
is not QueryType.MULTIPLE_REFERENCES_WITH_FUNCTION. Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.