org.hibernate.ejb.criteria.path
Class MapKeyHelpers.MapKeyPath<K>
java.lang.Object
org.hibernate.ejb.criteria.AbstractNode
org.hibernate.ejb.criteria.expression.AbstractTupleElement<X>
org.hibernate.ejb.criteria.expression.SelectionImpl<T>
org.hibernate.ejb.criteria.expression.ExpressionImpl<X>
org.hibernate.ejb.criteria.path.AbstractPathImpl<K>
org.hibernate.ejb.criteria.path.MapKeyHelpers.MapKeyPath<K>
- Type Parameters:
K
- The type of the map key.
- All Implemented Interfaces:
- Serializable, javax.persistence.criteria.Expression<K>, javax.persistence.criteria.Path<K>, javax.persistence.criteria.Selection<K>, TupleElement<K>, ExpressionImplementor<K>, ParameterContainer, PathImplementor<K>, PathSource<K>, Renderable, SelectionImplementor<K>, TupleElementImplementor<K>
- Enclosing class:
- MapKeyHelpers
public static class MapKeyHelpers.MapKeyPath<K>
- extends AbstractPathImpl<K>
- implements PathImplementor<K>, Serializable
Models a path to a map key. This is the actual return used from MapJoin.key()
- See Also:
- Serialized Form
Methods inherited from class org.hibernate.ejb.criteria.path.AbstractPathImpl |
get, get, get, get, getParentPath, getPathIdentifier, illegalDereference, locateAttribute, prepareAlias, registerAttributePath, registerParameters, render, renderProjection, resolveCachedAttributePath, type, unknownAttribute |
Methods inherited from class org.hibernate.ejb.criteria.expression.ExpressionImpl |
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull |
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.Path |
get, get, get, get, 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 |
MapKeyHelpers.MapKeyPath
public MapKeyHelpers.MapKeyPath(CriteriaBuilderImpl criteriaBuilder,
MapKeyHelpers.MapKeySource<K,?> source,
MapKeyHelpers.MapKeyAttribute<K> mapKeyAttribute)
getPathSource
public MapKeyHelpers.MapKeySource getPathSource()
- Overrides:
getPathSource
in class AbstractPathImpl<K>
getAttribute
public MapKeyHelpers.MapKeyAttribute<K> getAttribute()
- Description copied from interface:
PathImplementor
- Retrieve reference to the attribute this path represents.
- Specified by:
getAttribute
in interface PathImplementor<K>
- Returns:
- The metamodel attribute.
canBeDereferenced
protected boolean canBeDereferenced()
- Specified by:
canBeDereferenced
in class AbstractPathImpl<K>
locateAttributeInternal
protected javax.persistence.metamodel.Attribute locateAttributeInternal(String attributeName)
- Description copied from class:
AbstractPathImpl
- Get the attribute by name from the underlying model. This allows subclasses to
define exactly how the attribute is derived. Called from
AbstractPathImpl.locateAttribute(java.lang.String)
which also applies nullness checking for proper error reporting.
- Specified by:
locateAttributeInternal
in class AbstractPathImpl<K>
- Parameters:
attributeName
- The name of the attribute to locate
- Returns:
- The attribute; may be null.
getModel
public javax.persistence.metamodel.Bindable<K> getModel()
- Specified by:
getModel
in interface javax.persistence.criteria.Path<K>
Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.