public class UnionBuilder<T extends ParsedQuery,E extends SupportsGroups> extends Object implements SupportsGroups<UnionBuilder<T,E>>, Group
Builder class for creating Unioned groups
Constructor and Description |
---|
UnionBuilder(GroupBuilder<T,E> theParent) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(Group theGroup) |
UnionBuilder<T,E> |
addGroup(Group theGroup)
Add this group from the query
|
GroupBuilder<T,E> |
closeUnion()
Close this union and return it's parent group builder.
|
TupleExpr |
expr() |
boolean |
isOptional() |
GroupBuilder<T,UnionBuilder<T,E>> |
left()
Return a builder for creating the left operand of the union
|
UnionBuilder<T,E> |
removeGroup(Group theGroup)
Remove this group from the query
|
GroupBuilder<T,UnionBuilder<T,E>> |
right()
Return a builder for creating the right operand of the union
|
int |
size() |
public UnionBuilder(GroupBuilder<T,E> theParent)
public GroupBuilder<T,UnionBuilder<T,E>> left()
public GroupBuilder<T,UnionBuilder<T,E>> right()
public GroupBuilder<T,E> closeUnion()
public UnionBuilder<T,E> addGroup(Group theGroup)
SupportsGroups
addGroup
in interface SupportsGroups<UnionBuilder<T extends ParsedQuery,E extends SupportsGroups>>
theGroup
- the group to addpublic UnionBuilder<T,E> removeGroup(Group theGroup)
SupportsGroups
removeGroup
in interface SupportsGroups<UnionBuilder<T extends ParsedQuery,E extends SupportsGroups>>
theGroup
- the group to removepublic TupleExpr expr()
expr
in interface SupportsExpr
public boolean isOptional()
isOptional
in interface Group
Copyright © 2001-2016 Aduna. All Rights Reserved.