Purpose: Contains the implementation of the Path interface of the JPA criteria API.
Description: This class represents an abstract path which is a model of the expression through joins.
Path
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | |
| public void | |
| public <Y> Path | Returns: path corresponding to the referenced attributeattribute att)Implements jakarta. |
| public <E, C extends Collection | Returns: expression corresponding to the referenced attributecollection-valued attribute collection)Implements jakarta. |
| public <K, V, M extends Map | Returns: expression corresponding to the referenced attributemap-valued attribute map)Implements jakarta. |
| public <Y> Path | get(String
name of the attribute attName)Implements jakarta. |
| public Bindable | Returns: bindable object corresponding to the pathImplements jakarta. |
| public Path | Returns: parentImplements jakarta. |
| public Expression | Returns: expression corresponding to the type of the pathImplements jakarta. |
| modelArtifact | back to summary |
|---|---|
| protected Object modelArtifact | |
| pathParent | back to summary |
|---|---|
| protected Path<?> pathParent | |
| PathImpl | back to summary |
|---|---|
| public PathImpl(Path<?> parent, Metamodel metamodel, Class<X> javaClass, Expression expressionNode, Bindable<T> modelArtifact) | |
| clone | back to summary |
|---|---|
| protected Object clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by | |
| findRootAndParameters | back to summary |
|---|---|
| public void findRootAndParameters(CommonAbstractCriteriaImpl<T> query) Overrides org. Implements org.
| |
| get | back to summary |
|---|---|
| public <Y> Path Implements jakarta. Return the path corresponding to the referenced non-collection valued attribute.
| |
| get | back to summary |
|---|---|
| public <E, C extends Collection Implements jakarta. Return the path corresponding to the referenced collection-valued attribute.
| |
| get | back to summary |
|---|---|
| public <K, V, M extends Map Implements jakarta. Return the path corresponding to the referenced map-valued attribute.
| |
| get | back to summary |
|---|---|
| public <Y> Path Implements 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));
| |
| getModel | back to summary |
|---|---|
| public Bindable Implements jakarta. Return the bindable object that corresponds to the path expression. | |
| getParentPath | back to summary |
|---|---|
| public Path Implements jakarta. Return the parent "node" in the path. | |
| type | back to summary |
|---|---|
| public Expression Implements jakarta. Return an expression corresponding to the type of the path.
| |