类 AbstractPathImpl<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>
-
- 所有已实现的接口:
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>
- 直接已知子类:
AbstractFromImpl,MapKeyHelpers.MapKeyPath,MapKeyHelpers.MapKeySource,PluralAttributePath,SingularAttributePath
public abstract class AbstractPathImpl<X> extends ExpressionImpl<X> implements javax.persistence.criteria.Path<X>, PathImplementor<X>, Serializable
Convenience base class for variousPathimplementations.- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 org.hibernate.query.criteria.internal.ParameterContainer
ParameterContainer.Helper
-
-
构造器概要
构造器 构造器 说明 AbstractPathImpl(CriteriaBuilderImpl criteriaBuilder, Class<X> javaType, PathSource pathSource)Constructs a basic path instance.
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected abstract booleancanBeDereferenced()<Y> javax.persistence.criteria.Path<Y>get(String attributeName)<K,V,M extends Map<K,V>>
javax.persistence.criteria.Expression<M>get(javax.persistence.metamodel.MapAttribute<X,K,V> attribute)<E,C extends Collection<E>>
javax.persistence.criteria.Expression<C>get(javax.persistence.metamodel.PluralAttribute<X,C,E> attribute)<Y> javax.persistence.criteria.Path<Y>get(javax.persistence.metamodel.SingularAttribute<? super X,Y> attribute)PathSource<?>getParentPath()StringgetPathIdentifier()Get the string representation of this path as a navigation from one of the queries identification variablesPathSourcegetPathSource()protected PathSourcegetPathSourceForSubPaths()protected RuntimeExceptionillegalDereference()protected javax.persistence.metamodel.AttributelocateAttribute(String attributeName)Get the attribute by name from the underlying model.protected abstract javax.persistence.metamodel.AttributelocateAttributeInternal(String attributeName)Get the attribute by name from the underlying model.voidprepareAlias(RenderingContext renderingContext)protected voidregisterAttributePath(String attributeName, javax.persistence.criteria.Path path)voidregisterParameters(ParameterRegistry registry)Register any parameters contained within this query component with the given registry.Stringrender(RenderingContext renderingContext)Perform the rendering, returning the renditionprotected javax.persistence.criteria.PathresolveCachedAttributePath(String attributeName)javax.persistence.criteria.Expression<Class<? extends X>>type()protected RuntimeExceptionunknownAttribute(String attributeName)-
从类继承的方法 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.PathImplementor
getAttribute, treatAs
-
从接口继承的方法 org.hibernate.query.criteria.internal.SelectionImplementor
getValueHandlers
-
从接口继承的方法 org.hibernate.query.criteria.internal.TupleElementImplementor
getValueHandler
-
-
-
-
构造器详细资料
-
AbstractPathImpl
public AbstractPathImpl(CriteriaBuilderImpl criteriaBuilder, Class<X> javaType, PathSource pathSource)
Constructs a basic path instance.- 参数:
criteriaBuilder- The criteria builderjavaType- The java type of this pathpathSource- The source (or origin) from which this path originates
-
-
方法详细资料
-
getPathSource
public PathSource getPathSource()
-
getParentPath
public PathSource<?> getParentPath()
- 指定者:
getParentPath在接口中javax.persistence.criteria.Path<X>
-
type
public javax.persistence.criteria.Expression<Class<? extends X>> type()
- 指定者:
type在接口中javax.persistence.criteria.Path<X>
-
getPathIdentifier
public String getPathIdentifier()
从接口复制的说明:PathSourceGet the string representation of this path as a navigation from one of the queries identification variables- 指定者:
getPathIdentifier在接口中PathSource<X>- 返回:
- The path's identifier.
-
canBeDereferenced
protected abstract boolean canBeDereferenced()
-
illegalDereference
protected final RuntimeException illegalDereference()
-
unknownAttribute
protected final RuntimeException unknownAttribute(String attributeName)
-
resolveCachedAttributePath
protected final javax.persistence.criteria.Path resolveCachedAttributePath(String attributeName)
-
registerAttributePath
protected final void registerAttributePath(String attributeName, javax.persistence.criteria.Path path)
-
get
public <Y> javax.persistence.criteria.Path<Y> get(javax.persistence.metamodel.SingularAttribute<? super X,Y> attribute)
- 指定者:
get在接口中javax.persistence.criteria.Path<X>
-
getPathSourceForSubPaths
protected PathSource getPathSourceForSubPaths()
-
get
public <E,C extends Collection<E>> javax.persistence.criteria.Expression<C> get(javax.persistence.metamodel.PluralAttribute<X,C,E> attribute)
- 指定者:
get在接口中javax.persistence.criteria.Path<X>
-
get
public <K,V,M extends Map<K,V>> javax.persistence.criteria.Expression<M> get(javax.persistence.metamodel.MapAttribute<X,K,V> attribute)
- 指定者:
get在接口中javax.persistence.criteria.Path<X>
-
get
public <Y> javax.persistence.criteria.Path<Y> get(String attributeName)
- 指定者:
get在接口中javax.persistence.criteria.Path<X>
-
locateAttribute
protected final javax.persistence.metamodel.Attribute locateAttribute(String attributeName)
Get the attribute by name from the underlying model. This allows subclasses to define exactly how the attribute is derived.- 参数:
attributeName- The name of the attribute to locate- 返回:
- The attribute; should never return null.
- 抛出:
IllegalArgumentException- If no such attribute exists
-
locateAttributeInternal
protected abstract javax.persistence.metamodel.Attribute locateAttributeInternal(String attributeName)
Get the attribute by name from the underlying model. This allows subclasses to define exactly how the attribute is derived. Called fromlocateAttribute(java.lang.String)which also applies nullness checking for proper error reporting.- 参数:
attributeName- The name of the attribute to locate- 返回:
- The attribute; may be null.
- 抛出:
IllegalArgumentException- If no such attribute exists
-
registerParameters
public void registerParameters(ParameterRegistry registry)
从接口复制的说明:ParameterContainerRegister any parameters contained within this query component with the given registry.- 指定者:
registerParameters在接口中ParameterContainer- 参数:
registry- The parameter registry with which to register.
-
prepareAlias
public void prepareAlias(RenderingContext renderingContext)
- 指定者:
prepareAlias在接口中PathSource<X>
-
render
public String render(RenderingContext renderingContext)
从接口复制的说明:RenderablePerform the rendering, returning the rendition- 指定者:
render在接口中Renderable
-
-