org.hibernate.ejb.criteria.path
Class SingularAttributePath<X>
java.lang.Object
   org.hibernate.ejb.criteria.AbstractNode
org.hibernate.ejb.criteria.AbstractNode
       org.hibernate.ejb.criteria.expression.AbstractTupleElement<X>
org.hibernate.ejb.criteria.expression.AbstractTupleElement<X>
           org.hibernate.ejb.criteria.expression.SelectionImpl<T>
org.hibernate.ejb.criteria.expression.SelectionImpl<T>
               org.hibernate.ejb.criteria.expression.ExpressionImpl<X>
org.hibernate.ejb.criteria.expression.ExpressionImpl<X>
                   org.hibernate.ejb.criteria.path.AbstractPathImpl<X>
org.hibernate.ejb.criteria.path.AbstractPathImpl<X>
                       org.hibernate.ejb.criteria.path.SingularAttributePath<X>
org.hibernate.ejb.criteria.path.SingularAttributePath<X>
- All Implemented Interfaces: 
- Serializable, Expression<X>, Path<X>, Selection<X>, TupleElement<X>, ExpressionImplementor<X>, ParameterContainer, PathImplementor<X>, PathSource<X>, Renderable, SelectionImplementor<X>, TupleElementImplementor<X>
- public class SingularAttributePath<X> 
- extends AbstractPathImpl<X>- implements Serializable
Models a path for a SingularAttribute generally obtained from a
 Path.get(SingularAttribute) call
- See Also:
- Serialized Form
 
 
 
 
| Methods inherited from class org.hibernate.ejb.criteria.path.AbstractPathImpl | 
| get, get, get, get, getParentPath, getPathIdentifier, getPathSource, 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 | 
 
 
 
 
 
 
 
SingularAttributePath
public SingularAttributePath(CriteriaBuilderImpl criteriaBuilder,
                             Class<X> javaType,
                             PathSource pathSource,
                             SingularAttribute<?,X> attribute)
getAttribute
public SingularAttribute<?,X> getAttribute()
- Retrieve reference to the attribute this path represents.
 
- 
- Specified by:
- getAttributein interface- PathImplementor<X>
 
- 
- Returns:
- The metamodel attribute.
 
getModel
public Bindable<X> getModel()
- 
 
- 
- Specified by:
- getModelin interface- Path<X>
 
- 
 
canBeDereferenced
protected boolean canBeDereferenced()
- 
 
- 
- Specified by:
- canBeDereferencedin class- AbstractPathImpl<X>
 
- 
 
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:
- locateAttributeInternalin class- AbstractPathImpl<X>
 
- 
- Parameters:
- attributeName- The name of the attribute to locate
- Returns:
- The attribute; may be null.
 
Copyright © 2001-2012 Red Hat, Inc.  All Rights Reserved.