org.apache.openjpa.persistence.criteria
Class Joins.KeyJoin<K,V>
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,E>
org.apache.openjpa.persistence.criteria.Joins.AbstractCollection<Z,Set<E>,E>
org.apache.openjpa.persistence.criteria.Joins.Set<Map<K,V>,K>
org.apache.openjpa.persistence.criteria.Joins.KeyJoin<K,V>
- Type Parameters:
K
- the type of the key of the original java.util.Map attributeV
- the type of the value of the original java.util.Map attribute
- All Implemented Interfaces:
- Expression<K>, FetchParent<Map<K,V>,K>, From<Map<K,V>,K>, Join<Map<K,V>,K>, Path<K>, PluralJoin<Map<K,V>,Set<K>,K>, Selection<K>, SetJoin<Map<K,V>,K>, TupleElement<K>, CriteriaExpression
- Enclosing class:
- Joins
static class Joins.KeyJoin<K,V>
- extends Joins.Set<Map<K,V>,K>
A specialized join via key of a java.util.Map<K,V> attribute.
Treats the map key as a pseudo-attribute of type java.util.Set<K> of a pseduo-managed type corresponding
to java.util.Map<K,V>.
Methods inherited from class org.apache.openjpa.persistence.criteria.Joins.Set |
getModel |
Methods inherited from class org.apache.openjpa.persistence.criteria.FromImpl |
acceptVisit, assertJoinable, fetch, fetch, fetch, fetch, fetch, fetch, getCorrelationParent, getFetches, getJoins, getType, join, join, join, join, join, join, join, join, join, join, join, join, joinCollection, joinCollection, joinList, joinList, joinMap, joinMap, joinSet, joinSet |
Methods inherited from class org.apache.openjpa.persistence.criteria.PathImpl |
asValue, get, get, get, get, getCorrelatedJoin, getCorrelatedPath, getCorrelatedRoot, getEmbeddedFieldMetaData, getInnermostMember, getInnermostParentPath, getMember, getParentPath, inSubquery, isCorrelated, setCorrelatedPath, traversePath, type |
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 |
getCorrelationParent, getJoins, isCorrelated, join, join, join, join, join, join, join, join, join, join, join, join, joinCollection, joinCollection, joinList, joinList, joinMap, joinMap, joinSet, joinSet |
Joins.KeyJoin
public Joins.KeyJoin(FromImpl<?,Map<K,V>> parent,
Members.KeyAttributeImpl<? super Map<K,V>,K> member,
JoinType jt)
toValue
public Value toValue(ExpressionFactory factory,
CriteriaQueryImpl<?> c)
- Description copied from class:
Joins.AbstractCollection
- Convert this path to a kernel path (value).
- Overrides:
toValue
in class Joins.AbstractCollection<Map<K,V>,Set<K>,K>
- Parameters:
factory
- creates the kernel expressionc
- the query definition context of this expression
- Returns:
- an equivalent kernel value
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.