| Modifier and Type | Field and Description |
|---|---|
| private final SqmPath | |
| private final NavigablePath | |
| private Map | reusablePaths
For HQL and Criteria processing - used to track reusable paths relative to this path. |
| Access | Constructor and Description |
|---|---|
| protected | AbstractSqmPath(NavigablePath navigablePath, SqmPathSource<T> referencedPathSource, SqmPath<?> lhs, NodeBuilder nodeBuilder)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public SqmPath | get(String
name of the attribute attributeName)Implements org. |
| public <Y> SqmPath | get(SingularAttribute<? super T, Y>
single-valued attribute jpaAttribute)Implements org. |
| public <E, C extends Collection | get(PluralAttribute<T, C, E>
collection-valued attribute attribute)Implements org. |
| public <K, V, M extends Map | get(MapAttribute<T, K, V>
map-valued attribute map)Implements org. |
| public String | getExplicitAlias()
Implements org. |
| public SqmExpressible | |
| public SqmPath | getLhs()
Implements org. |
| public SqmPathSource | getModel()
Implements jakarta. |
| public NavigablePath | getNavigablePath()
Implements org. |
| protected NavigablePath | getNavigablePathCopy(SqmPath<?> parent)
Utility that checks if this path's parent navigable path is compatible with the specified SQM parent, and if not creates a copy of the navigable path with the correct parent. |
| public SqmPathSource | getNodeType()
Overrides org. Implements org. |
| private NavigablePath | |
| public SqmPathSource | getReferencedPathSource()
Implements org. |
| public SqmPathSource | getResolvedModel()
Implements org. |
| public SqmPath | |
| public List | getReusablePaths()
Implements org. |
| private SqmPath | |
| protected <S extends T> SqmTreatedPath | |
| private boolean | |
| public void | registerReusablePath(SqmPath<?> path)
Implements org. |
| protected <X> SqmPath | |
| protected <X> SqmPath | |
| public void | setExplicitAlias(String explicitAlias)
Implements org. |
| public String | |
| public SqmExpression | type()
Implements org. |
| public void | visitReusablePaths(Consumer<SqmPath<?>> consumer)
Implements org. |
| lhs | back to summary |
|---|---|
| private final SqmPath<?> lhs | |
| navigablePath | back to summary |
|---|---|
| private final NavigablePath navigablePath | |
| reusablePaths | back to summary |
|---|---|
| private Map<String, SqmPath<?>> reusablePaths For HQL and Criteria processing - used to track reusable paths relative to this path. E.g., given `p.mate.mate` the SqmRoot identified by `p` would have a reusable path for the `p.mate` path. | |
| AbstractSqmPath | back to summary |
|---|---|
| protected AbstractSqmPath(NavigablePath navigablePath, SqmPathSource<T> referencedPathSource, SqmPath<?> lhs, NodeBuilder nodeBuilder) | |
| copyTo | back to summary |
|---|---|
| protected void copyTo(AbstractSqmPath<T> target, SqmCopyContext context) | |
| get | back to summary |
|---|---|
| public SqmPath Implements 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));
| |
| get | back to summary |
|---|---|
| public <Y> SqmPath Implements org. Doc from jakarta. Create a path corresponding to the referenced single-valued attribute.
| |
| get | back to summary |
|---|---|
| public <E, C extends Collection Implements org. Doc from jakarta. Create a path corresponding to the referenced collection-valued attribute.
| |
| get | back to summary |
|---|---|
| public <K, V, M extends Map Implements org. Doc from jakarta. Create a path corresponding to the referenced map-valued attribute.
| |
| getExplicitAlias | back to summary |
|---|---|
| public String getExplicitAlias() Implements org. Doc from org. Retrieve the explicit alias, if one. May return null
| |
| getExpressible | back to summary |
|---|---|
| public SqmExpressible Overrides default org.
| |
| getLhs | back to summary |
|---|---|
| public SqmPath Implements org. Doc from org. Get the left-hand side of this path - may be null, indicating a root, cross-join or entity-join
| |
| getModel | back to summary |
|---|---|
| public SqmPathSource Implements jakarta. Doc from jakarta. Return the bindable object that corresponds to the path expression.
| |
| getNavigablePath | back to summary |
|---|---|
| public NavigablePath getNavigablePath() Implements org. Doc from org. Returns the NavigablePath.
| |
| getNavigablePathCopy | back to summary |
|---|---|
| protected NavigablePath getNavigablePathCopy(SqmPath<?> parent) Utility that checks if this path's parent navigable path is compatible with the specified SQM parent, and if not creates a copy of the navigable path with the correct parent. | |
| getNodeType | back to summary |
|---|---|
| public SqmPathSource Overrides org. Implements org. Doc from org. This node's type is its "referenced path source"
| |
| getRealParentPath | back to summary |
|---|---|
| private NavigablePath getRealParentPath(NavigablePath realParent, NavigablePath parent) | |
| getReferencedPathSource | back to summary |
|---|---|
| public SqmPathSource Implements org. Doc from org. The path source that this path refers to (and that most likely created it).
| |
| getResolvedModel | back to summary |
|---|---|
| public SqmPathSource Implements org. Doc from org. Get this path's actual resolved model, i.e. the concrete type for generic attributes.
| |
| getReusablePath | back to summary |
|---|---|
| public SqmPath Implements org.
| |
| getReusablePaths | back to summary |
|---|---|
| public List Implements org. Doc from org. Returns an immutable List of reusable paths
| |
| getRoot | back to summary |
|---|---|
| private SqmPath | |
| getTreatedPath | back to summary |
|---|---|
| protected <S extends T> SqmTreatedPath | |
| navigablePathsMatch | back to summary |
|---|---|
| private boolean navigablePathsMatch(AbstractSqmPath<T> target) | |
| registerReusablePath | back to summary |
|---|---|
| public void registerReusablePath(SqmPath<?> path) Implements org. Doc from org. Register a reusable path relative to this path
| |
| resolvePath | back to summary |
|---|---|
| protected <X> SqmPath | |
| resolvePath | back to summary |
|---|---|
| protected <X> SqmPath | |
| setExplicitAlias | back to summary |
|---|---|
| public void setExplicitAlias(String explicitAlias) Implements org. Doc from org. Set the explicit alias for this path
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| type | back to summary |
|---|---|
| public SqmExpression Implements org. Doc from jakarta. Create an expression corresponding to the type of the path.
| |
| visitReusablePaths | back to summary |
|---|---|
| public void visitReusablePaths(Consumer<SqmPath<?>> consumer) Implements org. Doc from org. Visit each reusable path relative to this path
| |