Skip to content

Package: Path

Path

Coverage

1: package cz.cvut.kbss.jopa.model.query.criteria;
2:
3: import cz.cvut.kbss.jopa.model.metamodel.SingularAttribute;
4:
5: public interface Path<X> extends Expression<X> {
6:
7: /**
8: * Create a path corresponding to the referenced attribute.
9: *
10: * @param attributeName name of the attribute
11: * @return path corresponding to the referenced attribute
12: * @throws IllegalArgumentException if attribute of the given name does not otherwise exist
13: */
14: <Y> Path<Y> getAttr(String attributeName) throws IllegalArgumentException;
15:
16: /**
17: * Create a path corresponding to the referenced single-valued attribute.
18: *
19: * @param attribute single-valued attribute
20: * @return path corresponding to the referenced attribute
21: */
22: <Y> Path<Y> getAttr(SingularAttribute<? super X, Y> attribute);
23:
24: /**
25: * Return the parent "node" in the path or null if no parent.
26: *
27: * @return parent
28: */
29: Path<?> getParentPath();
30: }