public abstract class AbstractPathImpl<X> extends ExpressionImpl<X> implements javax.persistence.criteria.Path<X>, PathImplementor<X>, Serializable
Path
implementors.ParameterContainer.Helper
Constructor and Description |
---|
AbstractPathImpl(CriteriaBuilderImpl criteriaBuilder,
Class<X> javaType,
PathSource pathSource)
Constructs a basic path instance.
|
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull
alias, getCompoundSelectionItems, getValueHandlers, isCompoundSelection
forceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAlias
criteriaBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttribute
asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString
getValueHandlers
getValueHandler
getModel
as, in, in, in, in, isNotNull, isNull
alias, getCompoundSelectionItems, isCompoundSelection
getAlias, getJavaType
public AbstractPathImpl(CriteriaBuilderImpl criteriaBuilder, Class<X> javaType, PathSource pathSource)
criteriaBuilder
- The criteria builderjavaType
- The java type of this pathpathSource
- The source (or origin) from which this path originatespublic PathSource getPathSource()
public PathSource<?> getParentPath()
getParentPath
in interface javax.persistence.criteria.Path<X>
public javax.persistence.criteria.Expression<Class<? extends X>> type()
type
in interface javax.persistence.criteria.Path<X>
public String getPathIdentifier()
getPathIdentifier
in interface PathSource<X>
protected abstract boolean canBeDereferenced()
protected final RuntimeException illegalDereference()
protected final RuntimeException unknownAttribute(String attributeName)
protected final javax.persistence.criteria.Path resolveCachedAttributePath(String attributeName)
protected final void registerAttributePath(String attributeName, javax.persistence.criteria.Path path)
public <Y> javax.persistence.criteria.Path<Y> get(javax.persistence.metamodel.SingularAttribute<? super X,Y> attribute)
get
in interface javax.persistence.criteria.Path<X>
public <E,C extends Collection<E>> javax.persistence.criteria.Expression<C> get(javax.persistence.metamodel.PluralAttribute<X,C,E> attribute)
get
in interface javax.persistence.criteria.Path<X>
public <K,V,M extends Map<K,V>> javax.persistence.criteria.Expression<M> get(javax.persistence.metamodel.MapAttribute<X,K,V> attribute)
get
in interface javax.persistence.criteria.Path<X>
public <Y> javax.persistence.criteria.Path<Y> get(String attributeName)
get
in interface javax.persistence.criteria.Path<X>
protected final javax.persistence.metamodel.Attribute locateAttribute(String attributeName)
attributeName
- The name of the attribute to locateIllegalArgumentException
- If no such attribute existsprotected abstract javax.persistence.metamodel.Attribute locateAttributeInternal(String attributeName)
locateAttribute(java.lang.String)
which also applies nullness checking for proper error reporting.attributeName
- The name of the attribute to locateIllegalArgumentException
- If no such attribute existspublic void registerParameters(ParameterRegistry registry)
registerParameters
in interface ParameterContainer
registry
- The parameter registry with which to register.public void prepareAlias(CriteriaQueryCompiler.RenderingContext renderingContext)
prepareAlias
in interface PathSource<X>
public String render(CriteriaQueryCompiler.RenderingContext renderingContext)
render
in interface Renderable
public String renderProjection(CriteriaQueryCompiler.RenderingContext renderingContext)
renderProjection
in interface Renderable
Copyright © 2002-2020 Red Hat Middleware, LLC. All Rights Reserved