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.
|
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
canBeDereferenced() |
<K,V,M extends Map<K,V>> |
get(javax.persistence.metamodel.MapAttribute<X,K,V> attribute) |
<E,C extends Collection<E>> |
get(javax.persistence.metamodel.PluralAttribute<X,C,E> attribute) |
<Y> javax.persistence.criteria.Path<Y> |
get(javax.persistence.metamodel.SingularAttribute<? super X,Y> attribute) |
<Y> javax.persistence.criteria.Path<Y> |
get(String attributeName) |
PathSource<?> |
getParentPath() |
String |
getPathIdentifier()
Get the string representation of this path as a navigation from one of the
queries identification variables
|
PathSource |
getPathSource() |
protected RuntimeException |
illegalDereference() |
protected javax.persistence.metamodel.Attribute |
locateAttribute(String attributeName)
Get the attribute by name from the underlying model.
|
protected abstract javax.persistence.metamodel.Attribute |
locateAttributeInternal(String attributeName)
Get the attribute by name from the underlying model.
|
void |
prepareAlias(CriteriaQueryCompiler.RenderingContext renderingContext) |
protected void |
registerAttributePath(String attributeName,
javax.persistence.criteria.Path path) |
void |
registerParameters(ParameterRegistry registry)
Register any parameters contained within this query component with the given registry.
|
String |
render(CriteriaQueryCompiler.RenderingContext renderingContext) |
String |
renderProjection(CriteriaQueryCompiler.RenderingContext renderingContext) |
protected javax.persistence.criteria.Path |
resolveCachedAttributePath(String attributeName) |
javax.persistence.criteria.Expression<Class<? extends X>> |
type() |
protected RuntimeException |
unknownAttribute(String attributeName) |
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
as, in, in, in, in, isNotNull, isNull
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-2015 Red Hat Middleware, LLC. All Rights Reserved