org.hibernate.ejb.criteria.path
Class MapKeyHelpers.MapKeyPath<K>

java.lang.Object
  extended by org.hibernate.ejb.criteria.AbstractNode
      extended by org.hibernate.ejb.criteria.expression.AbstractTupleElement<X>
          extended by org.hibernate.ejb.criteria.expression.SelectionImpl<T>
              extended by org.hibernate.ejb.criteria.expression.ExpressionImpl<X>
                  extended by org.hibernate.ejb.criteria.path.AbstractPathImpl<K>
                      extended by org.hibernate.ejb.criteria.path.MapKeyHelpers.MapKeyPath<K>
Type Parameters:
K - The type of the map key.
All Implemented Interfaces:
Serializable, Expression<K>, Path<K>, 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.hibernate.ejb.criteria.ParameterContainer
ParameterContainer.Helper
 
Constructor Summary
MapKeyHelpers.MapKeyPath(CriteriaBuilderImpl criteriaBuilder, MapKeyHelpers.MapKeySource<K,?> source, MapKeyHelpers.MapKeyAttribute<K> mapKeyAttribute)
           
 
Method Summary
protected  boolean canBeDereferenced()
           
 MapKeyHelpers.MapKeyAttribute<K> getAttribute()
          Retrieve reference to the attribute this path represents.
 Bindable<K> getModel()
           
 MapKeyHelpers.MapKeySource getPathSource()
           
protected  Attribute locateAttributeInternal(String attributeName)
          Get the attribute by name from the underlying model.
 
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 org.hibernate.ejb.criteria.expression.SelectionImpl
alias, getCompoundSelectionItems, getValueHandlers, isCompoundSelection
 
Methods inherited from class org.hibernate.ejb.criteria.expression.AbstractTupleElement
forceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAlias
 
Methods inherited from class org.hibernate.ejb.criteria.AbstractNode
criteriaBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hibernate.ejb.criteria.ExpressionImplementor
asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString
 
Methods inherited from interface org.hibernate.ejb.criteria.SelectionImplementor
getValueHandlers
 
Methods inherited from interface org.hibernate.ejb.criteria.TupleElementImplementor
getValueHandler
 
Methods inherited from interface org.hibernate.ejb.criteria.Renderable
render, renderProjection
 
Methods inherited from interface org.hibernate.ejb.criteria.PathSource
getPathIdentifier, prepareAlias
 
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
 
Methods inherited from interface javax.persistence.TupleElement
getAlias, getJavaType
 

Constructor Detail

MapKeyHelpers.MapKeyPath

public MapKeyHelpers.MapKeyPath(CriteriaBuilderImpl criteriaBuilder,
                                MapKeyHelpers.MapKeySource<K,?> source,
                                MapKeyHelpers.MapKeyAttribute<K> mapKeyAttribute)
Method Detail

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 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 Bindable<K> getModel()
Specified by:
getModel in interface Path<K>


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.