X - パスによって参照される型 public interface Path<X> extends Expression<X>
| 修飾子と型 | メソッドと説明 |
|---|---|
<K,V,M extends MapSE<K,V>> | get(MapAttribute<X,K,V> map) 参照される map-valued 属性に対応するパスを作成します。 |
<E,C extends CollectionSE<E>> | get(PluralAttribute<X,C,E> collection) 参照される collection-valued 属性に対応するパスを作成します。 |
<Y> Path<Y> | get(SingularAttribute<? super X,Y> attribute) 参照される単一値属性に対応するパスを作成します。 |
<Y> Path<Y> | get(StringSE attributeName) 参照される属性に対応するパスを作成します。 |
Bindable<X> | getModel() パス式に対応するバインド可能なオブジェクトを返します。 |
Path<?> | getParentPath() パス内の親「ノード」を返すか、親がない場合は null を返します。 |
Expression<ClassSE<? extends X>> | type() パスの型に対応する式を作成します。 |
alias, getCompoundSelectionItems, isCompoundSelectiongetAlias, getJavaTypePath<?> getParentPath()
<Y> Path<Y> get(SingularAttribute<? super X,Y> attribute)
attribute - 単一値の属性 <E,C extends CollectionSE<E>> Expression<C> get(PluralAttribute<X,C,E> collection)
collection - コレクション値属性 <K,V,M extends MapSE<K,V>> Expression<M> get(MapAttribute<X,K,V> map)
map - マップ値属性 Expression<ClassSE<? extends X>> type()
<Y> Path<Y> get(StringSE attributeName)
メモ: 文字列ベースの API を使用するアプリケーションでは、Path 変数の使用を回避するために、get 操作の結果の型を指定する必要がある場合があります。
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));
attributeName - 属性の名前 IllegalStateExceptionSE - 基本型に対応するパスで呼び出された場合 IllegalArgumentExceptionSE - 名の属性が他に存在しない場合 Copyright © 2019 Eclipse Foundation.
Use is subject to license terms.