org.apache.openjpa.persistence.criteria
Class Joins.Map<Z,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,Map<K,V>,V>
org.apache.openjpa.persistence.criteria.Joins.Map<Z,K,V>
- Type Parameters:
Z
- the type from which being joinedK
- the type of the the map attribute keysV
- the type of the the map attribute values
- All Implemented Interfaces:
- Expression<V>, FetchParent<Z,V>, From<Z,V>, Join<Z,V>, MapJoin<Z,K,V>, Path<V>, PluralJoin<Z,Map<K,V>,V>, Selection<V>, TupleElement<V>, CriteriaExpression
- Enclosing class:
- Joins
static class Joins.Map<Z,K,V>
- extends Joins.AbstractCollection<Z,Map<K,V>,V>
- implements MapJoin<Z,K,V>
Join a java.util.Map<K,V> type attribute.
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.Map
public Joins.Map(FromImpl<?,Z> parent,
Members.MapAttributeImpl<? super Z,K,V> member,
JoinType jt)
getModel
public MapAttribute<? super Z,K,V> getModel()
- Description copied from class:
PathImpl
- Returns the bindable object that corresponds to the path expression.
- Specified by:
getModel
in interface MapJoin<Z,K,V>
- Specified by:
getModel
in interface Path<V>
- Specified by:
getModel
in interface PluralJoin<Z,Map<K,V>,V>
- Overrides:
getModel
in class Joins.AbstractCollection<Z,Map<K,V>,V>
joinKey
public Join<Map<K,V>,K> joinKey()
joinKey
public Join<Map<K,V>,K> joinKey(JoinType jt)
- Create a pseudo-attribute of a pseudo-managed type for java.util.Map<K,V>
to represent its keys of type java.util.Set<V>.
entry
public Expression<Map.Entry<K,V>> entry()
- Specified by:
entry
in interface MapJoin<Z,K,V>
key
public Path<K> key()
- Specified by:
key
in interface MapJoin<Z,K,V>
value
public Path<V> value()
- Specified by:
value
in interface MapJoin<Z,K,V>
toKernelExpression
public Expression toKernelExpression(ExpressionFactory factory,
CriteriaQueryImpl<?> c)
- Description copied from class:
Joins.AbstractCollection
- Convert this path to a join expression.
- Overrides:
toKernelExpression
in class Joins.AbstractCollection<Z,Map<K,V>,V>
- Parameters:
factory
- creates the kernel expressionc
- the query definition context of this expression
- Returns:
- an equivalent kernel expression
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.