| Modifier and Type | Method and Description |
|---|---|
| public default void | applyInferableType(SqmExpressible<?> type)
Implements org. |
| public SqmPath | |
| public default SqmRoot | |
| public <Y> SqmPath | get(SingularAttribute<? super T, Y>
single-valued attribute attribute)Redeclares org. |
| public <E, C extends Collection | get(PluralAttribute<T, C, E>
collection-valued attribute collection)Redeclares org. |
| public <K, V, M extends Map | get(MapAttribute<T, K, V>
map-valued attribute map)Redeclares org. |
| public <Y> SqmPath | get(String
name of the attribute attributeName)Redeclares org. |
| public String | |
| public default JavaType | |
| public SqmPath | getLhs()
Redeclares org. |
| public NavigablePath | getNavigablePath()
Redeclares org. |
| public SqmPathSource | getNodeType()
Redeclares org. |
| public SqmPathSource | getReferencedPathSource()
The path source that this path refers to (and that most likely created it). |
| public SqmPathSource | getResolvedModel()
Get this path's actual resolved model, i.e. the concrete type for generic attributes. |
| public SqmPath | |
| public List | |
| public void | |
| public default String | resolveAlias()
Retrieve the explicit alias, if one, otherwise return a generated one and set that as explicit alias. |
| public default SqmPath | resolveIndexedAccess(SqmExpression<?> selector, boolean isTerminal, SqmCreationState creationState)
Implements org. |
| public SqmPath | resolvePathPart(String name, boolean isTerminal, SqmCreationState creationState)
Redeclares org. |
| public void | |
| public <S extends T> SqmPath | treatAs(Class<S> treatJavaType)
Redeclares org. |
| public <S extends T> SqmPath | treatAs(EntityDomainType<S> treatTarget)
Redeclares org. |
| public SqmExpression | type()
Redeclares org. |
| public void |
| applyInferableType | back to summary |
|---|---|
| public default void applyInferableType(SqmExpressible<?> type) Implements org. Doc from org. Used to apply type information based on the expression's usage within the query.
| |
| copy | back to summary |
|---|---|
| public SqmPath Redeclares org.
| |
| findRoot | back to summary |
|---|---|
| public default SqmRoot | |
| get | back to summary |
|---|---|
| public <Y> SqmPath Redeclares org. Doc from jakarta. Create a path corresponding to the referenced single-valued attribute.
| |
| get | back to summary |
|---|---|
| public <E, C extends Collection Redeclares org. Doc from jakarta. Create a path corresponding to the referenced collection-valued attribute.
| |
| get | back to summary |
|---|---|
| public <K, V, M extends Map Redeclares org. Doc from jakarta. Create a path corresponding to the referenced map-valued attribute.
| |
| get | back to summary |
|---|---|
| public <Y> SqmPath Redeclares org. 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));
| |
| getExplicitAlias | back to summary |
|---|---|
| public String getExplicitAlias() Retrieve the explicit alias, if one. May return null | |
| getJavaTypeDescriptor | back to summary |
|---|---|
| public default JavaType Implements org.
| |
| getLhs | back to summary |
|---|---|
| public SqmPath Redeclares org. Get the left-hand side of this path - may be null, indicating a root, cross-join or entity-join | |
| getNavigablePath | back to summary |
|---|---|
| public NavigablePath getNavigablePath() Redeclares org. Returns the NavigablePath. | |
| getNodeType | back to summary |
|---|---|
| public SqmPathSource Redeclares org. This node's type is its "referenced path source"
| |
| getReferencedPathSource | back to summary |
|---|---|
| public SqmPathSource The path source that this path refers to (and that most likely created it).
| |
| getResolvedModel | back to summary |
|---|---|
| public SqmPathSource Get this path's actual resolved model, i.e. the concrete type for generic attributes. | |
| getReusablePath | back to summary |
|---|---|
| public SqmPath | |
| getReusablePaths | back to summary |
|---|---|
| public List Returns an immutable List of reusable paths | |
| registerReusablePath | back to summary |
|---|---|
| public void registerReusablePath(SqmPath<?> path) Register a reusable path relative to this path | |
| resolveAlias | back to summary |
|---|---|
| public default String resolveAlias() Retrieve the explicit alias, if one, otherwise return a generated one and set that as explicit alias. | |
| resolveIndexedAccess | back to summary |
|---|---|
| public default SqmPath Implements org.
| |
| resolvePathPart | back to summary |
|---|---|
| public SqmPath Redeclares org. | |
| setExplicitAlias | back to summary |
|---|---|
| public void setExplicitAlias(String explicitAlias) Set the explicit alias for this path | |
| treatAs | back to summary |
|---|---|
| public <S extends T> SqmPath Redeclares org. Doc from org. Support for JPA's explicit (TREAT) down-casting.
| |
| treatAs | back to summary |
|---|---|
| public <S extends T> SqmPath Redeclares org. Doc from org. Support for JPA's explicit (TREAT) down-casting.
| |
| type | back to summary |
|---|---|
| public SqmExpression Redeclares org. Doc from jakarta. Create an expression corresponding to the type of the path.
| |
| visitReusablePaths | back to summary |
|---|---|
| public void visitReusablePaths(Consumer<SqmPath<?>> consumer) Visit each reusable path relative to this path | |