|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.persistence.criteria.SelectionImpl<X> org.apache.openjpa.persistence.criteria.ExpressionImpl<X> org.apache.openjpa.persistence.criteria.PathImpl<Z,X> org.apache.openjpa.persistence.criteria.FromImpl<Z,X>
Z
- the parent type of this receiverX
- the type represented by this receiverclass FromImpl<Z,X>
Represents a bound type, usually an entity that appears in the from clause, but may also be an embeddable belonging to an entity in the from clause. Serves as a factory for Joins of associations, embeddables and collections belonging to the type, and for Paths of attributes belonging to the type.
Field Summary |
---|
Fields inherited from class org.apache.openjpa.persistence.criteria.PathImpl |
---|
_member, _parent |
Constructor Summary | |
---|---|
protected |
FromImpl(AbstractManagedType<X> type)
Supply the non-null managed type. |
protected |
FromImpl(PathImpl<?,Z> parent,
Members.Member<? super Z,?> m,
Class<X> x)
|
Method Summary | ||
---|---|---|
void |
acceptVisit(CriteriaExpressionVisitor visitor)
Accept visit from the given visitor. |
|
(package private) void |
assertJoinable(Type<?> type)
|
|
|
fetch(PluralAttribute<? super X,?,Y> assoc)
|
|
|
fetch(PluralAttribute<? super X,?,Y> assoc,
JoinType jt)
|
|
|
fetch(SingularAttribute<? super X,Y> assoc)
|
|
|
fetch(SingularAttribute<? super X,Y> assoc,
JoinType jt)
|
|
|
fetch(String assocName)
|
|
|
fetch(String name,
JoinType jt)
|
|
From<Z,X> |
getCorrelationParent()
|
|
Set<Fetch<X,?>> |
getFetches()
|
|
Set<Join<X,?>> |
getJoins()
Return the joins that have been made from this receiver. |
|
Type<?> |
getType()
|
|
|
join(CollectionAttribute<? super X,Y> collection)
Join to the given Collection-valued attribute using an inner join. |
|
|
join(CollectionAttribute<? super X,Y> collection,
JoinType jt)
Join to the given Collection-valued attribute using the given join type. |
|
|
join(ListAttribute<? super X,Y> list)
Join to the given List-valued attribute using an inner join. |
|
|
join(ListAttribute<? super X,Y> list,
JoinType jt)
Join to the given List-valued attribute using the given join type. |
|
|
join(MapAttribute<? super X,K,V> map)
Join to the given Map-valued attribute using an inner join. |
|
|
join(MapAttribute<? super X,K,V> map,
JoinType jt)
Join to the given Map-valued attribute using the given join type. |
|
|
join(SetAttribute<? super X,Y> set)
Join to the given Set-valued attribute using an inner join. |
|
|
join(SetAttribute<? super X,Y> set,
JoinType jt)
Join to the given Set-valued attribute using the given join type. |
|
|
join(SingularAttribute<? super X,Y> attribute)
Join to the given attribute using an inner join. |
|
|
join(SingularAttribute<? super X,Y> attribute,
JoinType jt)
Join to the given attribute using the given join type. |
|
|
join(String attr)
|
|
|
join(String name,
JoinType jt)
|
|
|
joinCollection(String attr)
|
|
|
joinCollection(String attr,
JoinType jt)
|
|
|
joinList(String attr)
|
|
|
joinList(String attr,
JoinType jt)
|
|
|
joinMap(String attr)
|
|
|
joinMap(String attr,
JoinType jt)
|
|
|
joinSet(String attr)
|
|
|
joinSet(String attr,
JoinType jt)
|
Methods inherited from class org.apache.openjpa.persistence.criteria.PathImpl |
---|
asValue, asVariable, get, get, get, get, getCorrelatedJoin, getCorrelatedPath, getCorrelatedRoot, getEmbeddedFieldMetaData, getInnermostMember, getInnermostParentPath, getMember, getModel, getParentPath, inSubquery, isCorrelated, setCorrelatedPath, toValue, traversePath, type |
Methods inherited from class org.apache.openjpa.persistence.criteria.ExpressionImpl |
---|
as, in, in, in, in, isNotNull, isNull, toKernelExpression |
Methods inherited from class org.apache.openjpa.persistence.criteria.SelectionImpl |
---|
alias, asProjection, assertValidName, getAlias, getCompoundSelectionItems, getJavaType, isAliased, isAutoAliased, isCompoundSelection, setAutoAlias |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.persistence.criteria.From |
---|
isCorrelated |
Methods inherited from interface javax.persistence.criteria.Path |
---|
get, get, get, get, getModel, getParentPath, type |
Methods inherited from interface javax.persistence.criteria.Expression |
---|
as, in, in, in, in, isNotNull, isNull |
Methods inherited from interface javax.persistence.criteria.Selection |
---|
alias, getCompoundSelectionItems, isCompoundSelection |
Methods inherited from interface javax.persistence.TupleElement |
---|
getAlias, getJavaType |
Constructor Detail |
---|
protected FromImpl(AbstractManagedType<X> type)
protected FromImpl(PathImpl<?,Z> parent, Members.Member<? super Z,?> m, Class<X> x)
Method Detail |
---|
public Type<?> getType()
getType
in class PathImpl<Z,X>
public Set<Join<X,?>> getJoins()
getJoins
in interface From<Z,X>
public <Y> Join<X,Y> join(SingularAttribute<? super X,Y> attribute)
join
in interface From<Z,X>
public <Y> Join<X,Y> join(SingularAttribute<? super X,Y> attribute, JoinType jt)
join
in interface From<Z,X>
public <Y> CollectionJoin<X,Y> join(CollectionAttribute<? super X,Y> collection)
join
in interface From<Z,X>
public <Y> CollectionJoin<X,Y> join(CollectionAttribute<? super X,Y> collection, JoinType jt)
join
in interface From<Z,X>
public <Y> SetJoin<X,Y> join(SetAttribute<? super X,Y> set)
join
in interface From<Z,X>
public <Y> SetJoin<X,Y> join(SetAttribute<? super X,Y> set, JoinType jt)
join
in interface From<Z,X>
public <Y> ListJoin<X,Y> join(ListAttribute<? super X,Y> list)
join
in interface From<Z,X>
public <Y> ListJoin<X,Y> join(ListAttribute<? super X,Y> list, JoinType jt)
join
in interface From<Z,X>
public <K,V> MapJoin<X,K,V> join(MapAttribute<? super X,K,V> map)
join
in interface From<Z,X>
public <K,V> MapJoin<X,K,V> join(MapAttribute<? super X,K,V> map, JoinType jt)
join
in interface From<Z,X>
public <W,Y> Join<W,Y> join(String attr)
join
in interface From<Z,X>
public <W,Y> Join<W,Y> join(String name, JoinType jt)
join
in interface From<Z,X>
public <W,Y> CollectionJoin<W,Y> joinCollection(String attr)
joinCollection
in interface From<Z,X>
public <W,Y> CollectionJoin<W,Y> joinCollection(String attr, JoinType jt)
joinCollection
in interface From<Z,X>
public <W,Y> ListJoin<W,Y> joinList(String attr)
joinList
in interface From<Z,X>
public <W,Y> ListJoin<W,Y> joinList(String attr, JoinType jt)
joinList
in interface From<Z,X>
public <W,K,V> MapJoin<W,K,V> joinMap(String attr)
joinMap
in interface From<Z,X>
public <W,K,V> MapJoin<W,K,V> joinMap(String attr, JoinType jt)
joinMap
in interface From<Z,X>
public <W,Y> SetJoin<W,Y> joinSet(String attr)
joinSet
in interface From<Z,X>
public <W,Y> SetJoin<W,Y> joinSet(String attr, JoinType jt)
joinSet
in interface From<Z,X>
void assertJoinable(Type<?> type)
public <Y> Fetch<X,Y> fetch(SingularAttribute<? super X,Y> assoc, JoinType jt)
fetch
in interface FetchParent<Z,X>
public <Y> Fetch<X,Y> fetch(SingularAttribute<? super X,Y> assoc)
fetch
in interface FetchParent<Z,X>
public <Y> Fetch<X,Y> fetch(PluralAttribute<? super X,?,Y> assoc, JoinType jt)
fetch
in interface FetchParent<Z,X>
public <Y> Fetch<X,Y> fetch(PluralAttribute<? super X,?,Y> assoc)
fetch
in interface FetchParent<Z,X>
public <X,Y> Fetch<X,Y> fetch(String assocName)
fetch
in interface FetchParent<Z,X>
public <X,Y> Fetch<X,Y> fetch(String name, JoinType jt)
fetch
in interface FetchParent<Z,X>
public Set<Fetch<X,?>> getFetches()
getFetches
in interface FetchParent<Z,X>
public void acceptVisit(CriteriaExpressionVisitor visitor)
CriteriaExpression
acceptVisit
in interface CriteriaExpression
acceptVisit
in class SelectionImpl<X>
visitor
- a processor to walk the nodes of a tree.public From<Z,X> getCorrelationParent()
getCorrelationParent
in interface From<Z,X>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |