new HasRelationCondition()
A condition that selects elements that have relations of a specific type.
Extends
Methods
addHandle(parameter) → {Condition}
Add a handle
Name | Type | Description |
---|---|---|
parameter | string |
- Version
- Experimental feature, might be removed at any time
- Since
- 5.3.0
- Inherited From
- Type:
- Condition
alternativesId() → {number}
- Since
- 4.1.0
- Inherited From
- Deprecated
- This function is not supported any more
- Type:
- number
cardinality() → {number}
Returns the desired cardinality of the property
- Since
- 4.1.0
- Inherited From
- Type:
- number
linkedQuery() → {$k.StructuredQuery}
Returns the linked subquery
- Since
- 4.1.0
- Inherited From
- Type:
- $k.StructuredQuery
parameter() → {string}
Returns the parameter name of the condition, if defined
- Since
- 4.1.0
- Inherited From
- Type:
- string
query() → {$k.StructuredQuery}
- Version
- Experimental feature, might be removed at any time
- Since
- 5.4.2
- Inherited From
The source query
- Type:
- $k.StructuredQuery
setCardinality(cardinality)
Sets the desired cardinality of the property. Only applied if a cardinality operator is used.
Name | Type | Description |
---|---|---|
cardinality | number | Cardinality. Must be an integer >= 0. |
- Since
- 4.1.0
- Inherited From
setParameter(parameter)
Sets the parameter name of the condition
Name | Type | Description |
---|---|---|
parameter | string |
- Since
- 4.1.0
- Inherited From
setTransitivity(minopt, maxopt, booleanopt)
Set the transitivity of the relation. This defines how many relations are traversed.
Name | Type | Attributes | Description |
---|---|---|---|
min | number | <optional> | Minimal number of relations to traverse. If undefined, at least one relation must exist. Must be an integer >= 1. |
max | number | <optional> | Maximum number of relations to traverse. If undefined or INF, any number of relations are traversed. Must be INF or an integer >= 1 and >= min |
boolean | boolean | <optional> | True if only the shortest path between two elements should be traversed |
- Since
- 4.1.0
targetQuery() → {$k.StructuredQuery}
Returns the subquery for the relation target, or undefined if there is none
- Since
- 4.1.0
- Type:
- $k.StructuredQuery