java.lang.Object
org.tentackle.wurblet.JoinPath
Path of
Joins.- Author:
- harald
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindJoin(List<WurbletRelation> wurbletRelations) Find the join for given relation path.Finds the join for a given component.getPaths()booleanisFiltered(boolean componentsOnly) Returns whether at least one join path contains a filter expression.voidNormalizes the join and all subjoins.
A normalized join contains only a single element.toString()
-
Constructor Details
-
JoinPath
Creates a relation path.- Parameters:
elements- the relations, null or empty if nonepaths- the continuation paths, null or empty if none
-
JoinPath
Creates a normalized relation path.- Parameters:
element- the relationpaths- the continuation paths, null or empty if none
-
-
Method Details
-
getElements
-
getPaths
-
isFiltered
public boolean isFiltered(boolean componentsOnly) Returns whether at least one join path contains a filter expression.- Parameters:
componentsOnly- true if check component relations only- Returns:
- true if filtered, false if no filter found
-
findJoin
Finds the join for a given component.- Parameters:
component- the component- Returns:
- the path if unique, null if no path
- Throws:
org.wurbelizer.wurbel.WurbelException- if component path is ambiguous
-
findJoin
Find the join for given relation path.- Parameters:
wurbletRelations- the relation path- Returns:
- the join if found, else null
-
normalize
public void normalize()Normalizes the join and all subjoins.
A normalized join contains only a single element. -
toString
-