Interface Path<X>
- All Superinterfaces:
Expression<X>
,Selection<X>
,TupleElement<X>
- All Known Subinterfaces:
Root<X>
- All Known Implementing Classes:
AbstractPathExpression
,PathImpl
,RootImpl
-
Method Summary
Modifier and TypeMethodDescription<Y> Path<Y>
getAttr
(SingularAttribute<? super X, Y> attribute) Create a path corresponding to the referenced single-valued attribute.<Y> Path<Y>
Create a path corresponding to the referenced attribute.Path<?>
Return the parent "node" in the path or null if no parent.Methods inherited from interface cz.cvut.kbss.jopa.model.query.criteria.Expression
in, in
Methods inherited from interface cz.cvut.kbss.jopa.model.query.criteria.Selection
getCompoundedSelectionItems, isCompoundedSelection
Methods inherited from interface cz.cvut.kbss.jopa.model.query.TupleElement
getAlias, getJavaType
-
Method Details
-
getAttr
Create a path corresponding to the referenced attribute.- Parameters:
attributeName
- name of the attribute- Returns:
- path corresponding to the referenced attribute
- Throws:
IllegalArgumentException
- if attribute of the given name does not otherwise exist
-
getAttr
Create a path corresponding to the referenced single-valued attribute.- Parameters:
attribute
- single-valued attribute- Returns:
- path corresponding to the referenced attribute
-
getParentPath
Path<?> getParentPath()Return the parent "node" in the path or null if no parent.- Returns:
- parent
-