org.datanucleus.jpa.criteria
Class JoinImpl<Z,X>
java.lang.Object
org.datanucleus.jpa.criteria.ExpressionImpl<X>
org.datanucleus.jpa.criteria.PathImpl<Z,X>
org.datanucleus.jpa.criteria.FromImpl<Z,X>
org.datanucleus.jpa.criteria.JoinImpl<Z,X>
- Type Parameters:
Z - type from which joiningX - type of the attribute being joined
- All Implemented Interfaces:
- javax.persistence.criteria.Expression<X>, javax.persistence.criteria.FetchParent<Z,X>, javax.persistence.criteria.From<Z,X>, javax.persistence.criteria.Join<Z,X>, javax.persistence.criteria.Path<X>, javax.persistence.criteria.Selection<X>, javax.persistence.TupleElement<X>
- Direct Known Subclasses:
- PluralJoinImpl
public class JoinImpl<Z,X>
- extends FromImpl<Z,X>
- implements javax.persistence.criteria.Join<Z,X>
Implementation of JPA2 Criteria "Join".
|
Constructor Summary |
JoinImpl(FromImpl<?,Z> parent,
PluralAttributeImpl<? super Z,java.util.Collection<X>,X> attr,
javax.persistence.criteria.JoinType joinType)
Constructor for a join to a collection (1-N, M-N relations). |
JoinImpl(FromImpl<?,Z> parent,
SingularAttributeImpl<Z,X> attr,
javax.persistence.criteria.JoinType joinType)
Constructor for a join to an entity (1-1, N-1 relations). |
|
Method Summary |
javax.persistence.metamodel.Attribute<? super Z,?> |
getAttribute()
|
javax.persistence.criteria.JoinType |
getJoinType()
|
javax.persistence.criteria.From<?,Z> |
getParent()
|
| Methods inherited from class org.datanucleus.jpa.criteria.FromImpl |
fetch, fetch, fetch, fetch, fetch, fetch, getAttributeForAttributeName, getCorrelationParent, getFetches, getJoins, getQueryExpression, getQueryExpression, isCorrelated, join, join, join, join, join, join, join, join, join, join, join, join, joinCollection, joinCollection, joinList, joinList, joinMap, joinMap, joinSet, joinSet, toString, toString |
| Methods inherited from class org.datanucleus.jpa.criteria.ExpressionImpl |
alias, as, getAlias, getCompoundSelectionItems, getJavaType, in, in, in, in, isCompoundSelection, isNotNull, isNull |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.persistence.criteria.From |
getCorrelationParent, getJoins, isCorrelated, join, join, join, join, join, join, join, join, join, join, join, join, joinCollection, joinCollection, joinList, joinList, joinMap, joinMap, joinSet, joinSet |
| 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 |
| Methods inherited from interface javax.persistence.criteria.FetchParent |
fetch, fetch, fetch, fetch, fetch, fetch, getFetches |
JoinImpl
public JoinImpl(FromImpl<?,Z> parent,
SingularAttributeImpl<Z,X> attr,
javax.persistence.criteria.JoinType joinType)
- Constructor for a join to an entity (1-1, N-1 relations).
- Parameters:
parent - Parent objectattr - The type joining tojoinType - Type of join (Inner/LeftOuter/RightOuter)
JoinImpl
public JoinImpl(FromImpl<?,Z> parent,
PluralAttributeImpl<? super Z,java.util.Collection<X>,X> attr,
javax.persistence.criteria.JoinType joinType)
- Constructor for a join to a collection (1-N, M-N relations).
- Parameters:
parent - Parent objectattr - The type joining tojoinType - Type of join (Inner/LeftOuter/RightOuter)
getAttribute
public javax.persistence.metamodel.Attribute<? super Z,?> getAttribute()
- Specified by:
getAttribute in interface javax.persistence.criteria.Join<Z,X>
getJoinType
public javax.persistence.criteria.JoinType getJoinType()
- Specified by:
getJoinType in interface javax.persistence.criteria.Join<Z,X>
getParent
public javax.persistence.criteria.From<?,Z> getParent()
- Specified by:
getParent in interface javax.persistence.criteria.Join<Z,X>
Copyright © 2011. All Rights Reserved.