Path contract
| Modifier and Type | Method and Description |
|---|---|
| public <Y> JpaPath | get(SingularAttribute<? super T, Y>
single-valued attribute attribute)Redeclares jakarta. |
| public <E, C extends Collection | get(PluralAttribute<T, C, E>
collection-valued attribute collection)Redeclares jakarta. |
| public <K, V, M extends Map | get(MapAttribute<T, K, V>
map-valued attribute map)Redeclares jakarta. |
| public <Y> JpaPath | get(String
name of the attribute attributeName)Redeclares jakarta. |
| public JpaPath | |
| public NavigablePath | |
| public default JpaPath | getParentPath()
Implements jakarta. |
| public <S extends T> JpaPath | |
| public <S extends T> JpaPath | |
| public JpaExpression | type()
Redeclares jakarta. |
| get | back to summary |
|---|---|
| public <Y> JpaPath Redeclares jakarta. Doc from jakarta. Create a path corresponding to the referenced single-valued attribute.
| |
| get | back to summary |
|---|---|
| public <E, C extends Collection Redeclares jakarta. Doc from jakarta. Create a path corresponding to the referenced collection-valued attribute.
| |
| get | back to summary |
|---|---|
| public <K, V, M extends Map Redeclares jakarta. Doc from jakarta. Create a path corresponding to the referenced map-valued attribute.
| |
| get | back to summary |
|---|---|
| public <Y> JpaPath Redeclares jakarta. Doc from jakarta. Create a path corresponding to the referenced attribute. Note Applications using the string-based API may need to
specify the type resulting from the
For example:
CriteriaQuery<Person> q = cb.createQuery(Person.class);
Root<Person> p = q.from(Person.class);
q.select(p)
.where(cb.isMember("joe",
p.<Set<String>>get("nicknames")));
rather than:
CriteriaQuery<Person> q = cb.createQuery(Person.class);
Root<Person> p = q.from(Person.class);
Path<Set<String>> nicknames = p.get("nicknames");
q.select(p)
.where(cb.isMember("joe", nicknames));
| |
| getLhs | back to summary |
|---|---|
| public JpaPath The source (think "left hand side") of this path | |
| getNavigablePath | back to summary |
|---|---|
| public NavigablePath getNavigablePath() Get this path's NavigablePath | |
| getParentPath | back to summary |
|---|---|
| public default JpaPath Implements jakarta. Doc from jakarta. Return the parent "node" in the path or null if no parent. | |
| treatAs | back to summary |
|---|---|
| public <S extends T> JpaPath Support for JPA's explicit (TREAT) down-casting. | |
| treatAs | back to summary |
|---|---|
| public <S extends T> JpaPath Support for JPA's explicit (TREAT) down-casting. | |
| type | back to summary |
|---|---|
| public JpaExpression Redeclares jakarta. Doc from jakarta. Create an expression corresponding to the type of the path.
| |