minor rearrangement
This commit is contained in:
parent
15127efd4d
commit
18478e9bf6
1 changed files with 10 additions and 5 deletions
|
@ -218,7 +218,10 @@ public class Relation {
|
||||||
throw new RuntimeException ("getVirtualSubnodeRelation called on non-virtual relation");
|
throw new RuntimeException ("getVirtualSubnodeRelation called on non-virtual relation");
|
||||||
if (filter != null)
|
if (filter != null)
|
||||||
return filter;
|
return filter;
|
||||||
return getVirtualPropertyRelation ();
|
Relation vr = new Relation (other, localField, remoteField, direction, subnodesAreProperties);
|
||||||
|
vr.groupby = groupby;
|
||||||
|
vr.filter = filter;
|
||||||
|
return vr;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -237,7 +240,11 @@ public class Relation {
|
||||||
* Return a Relation that defines the subnodes of a group-by node.
|
* Return a Relation that defines the subnodes of a group-by node.
|
||||||
*/
|
*/
|
||||||
public Relation getGroupbySubnodeRelation () {
|
public Relation getGroupbySubnodeRelation () {
|
||||||
return getGroupbyPropertyRelation ();
|
if (groupby == null)
|
||||||
|
throw new RuntimeException ("getGroupbyPropertyRelation called on non-group-by relation");
|
||||||
|
if (filter != null)
|
||||||
|
return filter;
|
||||||
|
return new Relation (other, localField, remoteField, direction, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -246,9 +253,7 @@ public class Relation {
|
||||||
public Relation getGroupbyPropertyRelation () {
|
public Relation getGroupbyPropertyRelation () {
|
||||||
if (groupby == null)
|
if (groupby == null)
|
||||||
throw new RuntimeException ("getGroupbyPropertyRelation called on non-group-by relation");
|
throw new RuntimeException ("getGroupbyPropertyRelation called on non-group-by relation");
|
||||||
if (filter != null)
|
return new Relation (other, localField, remoteField, direction, true);
|
||||||
return filter;
|
|
||||||
return new Relation (other, localField, remoteField, direction, subnodesAreProperties);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue