类 SingularAttributePath<X>
- java.lang.Object
-
- org.hibernate.query.criteria.internal.AbstractNode
-
- org.hibernate.query.criteria.internal.expression.AbstractTupleElement<X>
-
- org.hibernate.query.criteria.internal.expression.SelectionImpl<T>
-
- org.hibernate.query.criteria.internal.expression.ExpressionImpl<X>
-
- org.hibernate.query.criteria.internal.path.AbstractPathImpl<X>
-
- org.hibernate.query.criteria.internal.path.SingularAttributePath<X>
-
- 所有已实现的接口:
Serializable,javax.persistence.criteria.Expression<X>,javax.persistence.criteria.Path<X>,javax.persistence.criteria.Selection<X>,javax.persistence.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 aSingularAttributegenerally obtained from aPath.get(SingularAttribute)call- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classSingularAttributePath.TreatedSingularAttributePath<T>-
从接口继承的嵌套类/接口 org.hibernate.query.criteria.internal.ParameterContainer
ParameterContainer.Helper
-
-
构造器概要
构造器 构造器 说明 SingularAttributePath(CriteriaBuilderImpl criteriaBuilder, Class<X> javaType, PathSource pathSource, javax.persistence.metamodel.SingularAttribute<?,X> attribute)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected booleancanBeDereferenced()javax.persistence.metamodel.SingularAttribute<?,X>getAttribute()Retrieve reference to the attribute this path represents.javax.persistence.metamodel.Bindable<X>getModel()protected javax.persistence.metamodel.AttributelocateAttributeInternal(String attributeName)Get the attribute by name from the underlying model.<T extends X>
SingularAttributePath<T>treatAs(Class<T> treatAsType)Defines handling for the JPA 2.1 TREAT down-casting feature.-
从类继承的方法 org.hibernate.query.criteria.internal.path.AbstractPathImpl
get, get, get, get, getParentPath, getPathIdentifier, getPathSource, getPathSourceForSubPaths, illegalDereference, locateAttribute, prepareAlias, registerAttributePath, registerParameters, render, resolveCachedAttributePath, type, unknownAttribute
-
从类继承的方法 org.hibernate.query.criteria.internal.expression.ExpressionImpl
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull
-
从类继承的方法 org.hibernate.query.criteria.internal.expression.SelectionImpl
alias, getCompoundSelectionItems, getValueHandlers, isCompoundSelection
-
从类继承的方法 org.hibernate.query.criteria.internal.expression.AbstractTupleElement
forceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAlias
-
从类继承的方法 org.hibernate.query.criteria.internal.AbstractNode
criteriaBuilder
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.query.criteria.internal.ExpressionImplementor
asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString
-
从接口继承的方法 org.hibernate.query.criteria.internal.SelectionImplementor
getValueHandlers
-
从接口继承的方法 org.hibernate.query.criteria.internal.TupleElementImplementor
getValueHandler
-
-
-
-
构造器详细资料
-
SingularAttributePath
public SingularAttributePath(CriteriaBuilderImpl criteriaBuilder, Class<X> javaType, PathSource pathSource, javax.persistence.metamodel.SingularAttribute<?,X> attribute)
-
-
方法详细资料
-
getAttribute
public javax.persistence.metamodel.SingularAttribute<?,X> getAttribute()
从接口复制的说明:PathImplementorRetrieve reference to the attribute this path represents.- 指定者:
getAttribute在接口中PathImplementor<X>- 返回:
- The metamodel attribute.
-
getModel
public javax.persistence.metamodel.Bindable<X> getModel()
- 指定者:
getModel在接口中javax.persistence.criteria.Path<X>
-
canBeDereferenced
protected boolean canBeDereferenced()
- 指定者:
canBeDereferenced在类中AbstractPathImpl<X>
-
locateAttributeInternal
protected javax.persistence.metamodel.Attribute locateAttributeInternal(String attributeName)
从类复制的说明:AbstractPathImplGet the attribute by name from the underlying model. This allows subclasses to define exactly how the attribute is derived. Called fromAbstractPathImpl.locateAttribute(java.lang.String)which also applies nullness checking for proper error reporting.- 指定者:
locateAttributeInternal在类中AbstractPathImpl<X>- 参数:
attributeName- The name of the attribute to locate- 返回:
- The attribute; may be null.
-
treatAs
public <T extends X> SingularAttributePath<T> treatAs(Class<T> treatAsType)
从接口复制的说明:PathImplementorDefines handling for the JPA 2.1 TREAT down-casting feature.- 指定者:
treatAs在接口中PathImplementor<X>- 类型参数:
T- The parameterized type representation of treatAsType.- 参数:
treatAsType- The type to treat the path as.- 返回:
- The properly typed view of this path.
-
-