public abstract static class StructureQueryBuilder.RelationConstraintStartStep<B extends StructureQueryBuilder<B>> extends Object
relational constraint
by adding another
relation
.Modifier and Type | Field and Description |
---|---|
StructureQueryBuilder.OpStep<B> |
ancestor
Row is an ancestor (parent, parent-of-parent, or parent-of-parent-...-of-parent) of another row in a forest.
|
StructureQueryBuilder.OpStep<B> |
child
Row is a child (sub-row) of another row in a forest.
|
StructureQueryBuilder.OpStep<B> |
descendant
Row is a descendant (sub- or sub-sub-...-row) of another row in a forest.
|
StructureQueryBuilder.OpStep<B> |
issue
This is a relation of an issue to itself - same as
self , but it matches only issues. |
protected StructureQueryBuilder.StartStepHelper<B> |
myHelper |
StructureQueryBuilder.OpStep<B> |
nextSibling
Row is a next (following) sibling of another row in a forest.
|
StructureQueryBuilder.OpStep<B> |
parent
Row is a parent of another row in a forest.
|
StructureQueryBuilder.OpStep<B> |
prevSibling
Row is a previous (preceding) sibling of another row in a forest.
|
StructureQueryBuilder.OpStep<B> |
self
This is a relation of a row to itself.
|
StructureQueryBuilder.OpStep<B> |
sibling
Row is a sibling of another row in a forest.
|
Modifier | Constructor and Description |
---|---|
protected |
RelationConstraintStartStep(StructureQueryBuilder.StartStepHelper<B> helper) |
public final StructureQueryBuilder.OpStep<B extends StructureQueryBuilder<B>> child
public final StructureQueryBuilder.OpStep<B extends StructureQueryBuilder<B>> parent
public final StructureQueryBuilder.OpStep<B extends StructureQueryBuilder<B>> descendant
public final StructureQueryBuilder.OpStep<B extends StructureQueryBuilder<B>> ancestor
public final StructureQueryBuilder.OpStep<B extends StructureQueryBuilder<B>> prevSibling
Row is a previous (preceding) sibling of another row in a forest.
Row A is a preceding sibling of row B in a forest if:
public final StructureQueryBuilder.OpStep<B extends StructureQueryBuilder<B>> nextSibling
Row is a next (following) sibling of another row in a forest.
Row A is a following sibling of row B in a forest if:
public final StructureQueryBuilder.OpStep<B extends StructureQueryBuilder<B>> sibling
This is equivalent to prevSibling.or().nextSibling
.
public final StructureQueryBuilder.OpStep<B extends StructureQueryBuilder<B>> self
This is a relation of a row to itself. It makes a relational constraint work like its
basicConstraint
, so, for example, self.in.jql(someJql)
matches the same rows
as jql(someJql)
.
It is useful when you combine it via or()
with another relation, so that you
add rows matched by basicConstraint
to the result set.
For example, consider query q6 from the examples in the
class documentation
.
Constraint ancestor.in.jql(versionQuery)
returns all sub-(sub-...)-rows of issues
that match match JQL versionQuery
, but not the issues themselves.
To match them, use ancestor.or().self.in.jql(versionQuery)
.
Note that this relation works for all types of rows - issues, projects, users, etc.
To match only issues, use issue
.
For an illustration of difference between self
and issue
,
consider query q8 from the examples in the class documentation
.
Relational constraint parent.of.issueKey("TS-129")
yields parent rows of issue TS-129,
which may be issues, users, and all other kinds of items. To match these parents
and all their siblings, we use
self.or().sibling.of.sub().<relational constraint>.But if we were to use
issue.or().sibling.of.sub().<relational constraint>,we would still match all siblings, but parent rows will be matched only if they are issues.
public final StructureQueryBuilder.OpStep<B extends StructureQueryBuilder<B>> issue
This is a relation of an issue to itself - same as self
, but it matches only issues.
self
protected final StructureQueryBuilder.StartStepHelper<B extends StructureQueryBuilder<B>> myHelper
protected RelationConstraintStartStep(StructureQueryBuilder.StartStepHelper<B> helper)
Copyright © 2024 Tempo Software. All Rights Reserved.