javax.persistence.criteria.MapJoin#key poses a number of implementation difficulties in terms of the
type signatures amongst the javax.persistence.criteria.Path , javax.persistence.criteria.Join and
Attribute. The implementations found here provide that bridge.
| Modifier and Type | Class and Description |
|---|---|
| public static class | MapKeyHelpers.MapKeyAttribute<
The type of the map key K>Defines an |
| public static class | |
| public static class | MapKeyHelpers.MapKeySource<
The map key type K, The map value type V>Defines a path for the map which can then be used to represent the source of the map key "attribute". |
| Access | Constructor and Description |
|---|---|
| private |
| MapKeyHelpers | back to summary |
|---|---|
| private MapKeyHelpers() Disallow instantiation | |
javax.persistence.metamodel.Attribute modelling of a map-key.
| Modifier and Type | Field and Description |
|---|---|
| private final MapAttribute | |
| private final Class | |
| private final Bindable. | |
| private final Type | |
| private final Type | |
| private final CollectionPersister | |
| private final Attribute. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public Class | getBindableJavaType()
Implements javax. |
| public Bindable. | getBindableType()
Implements javax. |
| public ManagedType | getDeclaringType()
Implements javax. |
| public Member | getJavaMember()
Implements javax. java.lang.reflect.Member for the represented
attribute.
|
| public Class | getJavaType()
Implements javax. |
| public String | getName()
Implements javax. |
| public Attribute. | getPersistentAttributeType()
Implements javax. |
| public Type | getType()
Implements javax. |
| public boolean | isAssociation()
Implements javax. |
| public boolean | isCollection()
Implements javax. |
| public boolean | isId()
Implements javax. |
| public boolean | isOptional()
Implements javax. |
| public boolean | isVersion()
Implements javax. |
| attribute | back to summary |
|---|---|
| private final MapAttribute<?, K, ?> attribute | |
| jpaBinableJavaType | back to summary |
|---|---|
| private final Class<K> jpaBinableJavaType | |
| jpaBindableType | back to summary |
|---|---|
| private final Bindable. | |
| jpaType | back to summary |
|---|---|
| private final Type<K> jpaType | |
| mapKeyType | back to summary |
|---|---|
| private final Type mapKeyType | |
| mapPersister | back to summary |
|---|---|
| private final CollectionPersister mapPersister | |
| persistentAttributeType | back to summary |
|---|---|
| private final Attribute. | |
| MapKeyAttribute | back to summary |
|---|---|
| public MapKeyAttribute(CriteriaBuilderImpl criteriaBuilder, MapAttribute<?, K, ?> attribute) | |
| determineRole | back to summary |
|---|---|
| private String determineRole(MapAttribute<?, K, ?> attribute) | |
| getBindableJavaType | back to summary |
|---|---|
| public Class Implements javax. Doc from javax. Return the Java type of the represented object.
If the bindable type of the object is | |
| getBindableType | back to summary |
|---|---|
| public Bindable. Implements javax. Doc from javax. Return the bindable type of the represented object.
| |
| getDeclaringType | back to summary |
|---|---|
| public ManagedType Implements javax. Doc from javax. Return the managed type representing the type in which the attribute was declared.
| |
| getJavaMember | back to summary |
|---|---|
| public Member getJavaMember() Implements javax. Doc from javax. Return the | |
| getJavaType | back to summary |
|---|---|
| public Class Implements javax. Doc from javax. Return the Java type of the represented attribute. | |
| getName | back to summary |
|---|---|
| public String getName() Implements javax. Doc from javax. Return the name of the attribute. | |
| getPersistentAttributeType | back to summary |
|---|---|
| public Attribute. Implements javax. Doc from javax. Return the persistent attribute type for the attribute.
| |
| getType | back to summary |
|---|---|
| public Type Implements javax. Doc from javax. Return the type that represents the type of the attribute. | |
| isAssociation | back to summary |
|---|---|
| public boolean isAssociation() Implements javax. Doc from javax. Is the attribute an association.
| |
| isCollection | back to summary |
|---|---|
| public boolean isCollection() Implements javax. Doc from javax. Is the attribute collection-valued (represents a Collection, Set, List, or Map).
| |
| isId | back to summary |
|---|---|
| public boolean isId() Implements javax. Doc from javax. Is the attribute an id attribute. This method will return true if the attribute is an attribute that corresponds to a simple id, an embedded id, or an attribute of an id class.
| |
| isOptional | back to summary |
|---|---|
| public boolean isOptional() Implements javax. Doc from javax. Can the attribute be null.
| |
| isVersion | back to summary |
|---|---|
| public boolean isVersion() Implements javax. Doc from javax. Is the attribute a version attribute.
| |
javax.persistence.criteria.MapJoin#key
| Modifier and Type | Field and Description |
|---|---|
| private final MapKeyHelpers. |
| Access | Constructor and Description |
|---|---|
| public | MapKeyPath(CriteriaBuilderImpl criteriaBuilder, MapKeyHelpers.
|
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | |
| public MapKeyHelpers. | getAttribute()
Implements org. |
| public Bindable | getModel()
Implements javax. |
| public MapKeyHelpers. | |
| private boolean | |
| protected Attribute | locateAttributeInternal(String
The name of the attribute to locate attributeName)Implements abstract org. |
| public String | render(RenderingContext renderingContext)
Overrides org. Implements org. |
| public <T extends K> MapKeyHelpers. | treatAs(Class<T>
The type to treat the path as. treatAsType)Implements org. |
| mapKeyAttribute | back to summary |
|---|---|
| private final MapKeyHelpers. | |
| MapKeyPath | back to summary |
|---|---|
| public MapKeyPath(CriteriaBuilderImpl criteriaBuilder, MapKeyHelpers. | |
| canBeDereferenced | back to summary |
|---|---|
| protected boolean canBeDereferenced() Implements abstract org.
| |
| getAttribute | back to summary |
|---|---|
| public MapKeyHelpers. Implements org. Doc from org. Retrieve reference to the attribute this path represents.
| |
| getModel | back to summary |
|---|---|
| public Bindable Implements javax. Doc from javax. Return the bindable object that corresponds to the path expression.
| |
| getPathSource | back to summary |
|---|---|
| public MapKeyHelpers. Overrides org.
| |
| isBasicTypeKey | back to summary |
|---|---|
| private boolean isBasicTypeKey() | |
| locateAttributeInternal | back to summary |
|---|---|
| protected Attribute Implements abstract org. Doc from org. Get the attribute by name from the underlying model. This allows subclasses to
define exactly how the attribute is derived. Called from | |
| render | back to summary |
|---|---|
| public String render(RenderingContext renderingContext) Overrides org. Implements org. Doc from org. Perform the rendering, returning the rendition
| |
| treatAs | back to summary |
|---|---|
| public <T extends K> MapKeyHelpers. Implements org. Doc from org. Defines handling for the JPA 2.1 TREAT down-casting feature.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final MapAttribute | |
| private final MapJoinImplementor |
| Access | Constructor and Description |
|---|---|
| public | MapKeySource(CriteriaBuilderImpl criteriaBuilder, Class<Map<K, V>> javaType, MapJoinImplementor<?, K, V> mapJoin, MapAttribute<?, K, V> attribute)
|
| mapAttribute | back to summary |
|---|---|
| private final MapAttribute<?, K, V> mapAttribute | |
| mapJoin | back to summary |
|---|---|
| private final MapJoinImplementor<?, K, V> mapJoin | |
| MapKeySource | back to summary |
|---|---|
| public MapKeySource(CriteriaBuilderImpl criteriaBuilder, Class<Map<K, V>> javaType, MapJoinImplementor<?, K, V> mapJoin, MapAttribute<?, K, V> attribute) | |
| canBeDereferenced | back to summary |
|---|---|
| protected boolean canBeDereferenced() Implements abstract org.
| |
| getAttribute | back to summary |
|---|---|
| public MapAttribute Implements org. Doc from org. Retrieve reference to the attribute this path represents.
| |
| getModel | back to summary |
|---|---|
| public Bindable Implements javax. Doc from javax. Return the bindable object that corresponds to the path expression.
| |
| getParentPath | back to summary |
|---|---|
| public PathImplementor Overrides org. Implements javax. Doc from javax. Return the parent "node" in the path or null if no parent.
| |
| getPathIdentifier | back to summary |
|---|---|
| public String getPathIdentifier() Overrides org. Implements org. Doc from org. Get the string representation of this path as a navigation from one of the queries identification variables | |
| locateAttributeInternal | back to summary |
|---|---|
| protected Attribute Implements abstract org. Doc from org. Get the attribute by name from the underlying model. This allows subclasses to
define exactly how the attribute is derived. Called from | |
| prepareAlias | back to summary |
|---|---|
| public void prepareAlias(RenderingContext renderingContext) Overrides org. Implements org.
| |
| treatAs | back to summary |
|---|---|
| public <T extends Map Implements org. Doc from org. Defines handling for the JPA 2.1 TREAT down-casting feature.
| |