public abstract class AbstractPathImpl<X> extends ExpressionImpl<X> implements javax.persistence.criteria.Path<X>, PathImplementor<X>, java.io.Serializable
Path implementations.ParameterContainer.Helper| Constructor and Description |
|---|
AbstractPathImpl(CriteriaBuilderImpl criteriaBuilder,
java.lang.Class<X> javaType,
PathSource pathSource)
Constructs a basic path instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
canBeDereferenced() |
<K,V,M extends java.util.Map<K,V>> |
get(javax.persistence.metamodel.MapAttribute<X,K,V> attribute) |
<E,C extends java.util.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(java.lang.String attributeName) |
PathSource<?> |
getParentPath() |
java.lang.String |
getPathIdentifier()
Get the string representation of this path as a navigation from one of the
queries identification variables
|
PathSource |
getPathSource() |
protected PathSource |
getPathSourceForSubPaths() |
protected java.lang.RuntimeException |
illegalDereference() |
protected javax.persistence.metamodel.Attribute |
locateAttribute(java.lang.String attributeName)
Get the attribute by name from the underlying model.
|
protected abstract javax.persistence.metamodel.Attribute |
locateAttributeInternal(java.lang.String attributeName)
Get the attribute by name from the underlying model.
|
void |
prepareAlias(RenderingContext renderingContext) |
protected void |
registerAttributePath(java.lang.String attributeName,
javax.persistence.criteria.Path path) |
void |
registerParameters(ParameterRegistry registry)
Register any parameters contained within this query component with the given registry.
|
java.lang.String |
render(RenderingContext renderingContext)
Render clause
|
protected javax.persistence.criteria.Path |
resolveCachedAttributePath(java.lang.String attributeName) |
javax.persistence.criteria.Expression<java.lang.Class<? extends X>> |
type() |
protected java.lang.RuntimeException |
unknownAttribute(java.lang.String attributeName) |
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNullalias, getCompoundSelectionItems, getValueHandlers, isCompoundSelectionforceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAliascriteriaBuilderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, treatAsasBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asStringgetValueHandlersgetValueHandlerrenderGroupBy, renderProjectionas, in, in, in, in, isNotNull, isNullpublic AbstractPathImpl(CriteriaBuilderImpl criteriaBuilder, java.lang.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<java.lang.Class<? extends X>> type()
type in interface javax.persistence.criteria.Path<X>public java.lang.String getPathIdentifier()
PathSourcegetPathIdentifier in interface PathSource<X>protected abstract boolean canBeDereferenced()
protected final java.lang.RuntimeException illegalDereference()
protected final java.lang.RuntimeException unknownAttribute(java.lang.String attributeName)
protected final javax.persistence.criteria.Path resolveCachedAttributePath(java.lang.String attributeName)
protected final void registerAttributePath(java.lang.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>protected PathSource getPathSourceForSubPaths()
public <E,C extends java.util.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 java.util.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(java.lang.String attributeName)
get in interface javax.persistence.criteria.Path<X>protected final javax.persistence.metamodel.Attribute locateAttribute(java.lang.String attributeName)
attributeName - The name of the attribute to locatejava.lang.IllegalArgumentException - If no such attribute existsprotected abstract javax.persistence.metamodel.Attribute locateAttributeInternal(java.lang.String attributeName)
locateAttribute(java.lang.String)
which also applies nullness checking for proper error reporting.attributeName - The name of the attribute to locatejava.lang.IllegalArgumentException - If no such attribute existspublic void registerParameters(ParameterRegistry registry)
ParameterContainerregisterParameters in interface ParameterContainerregistry - The parameter registry with which to register.public void prepareAlias(RenderingContext renderingContext)
prepareAlias in interface PathSource<X>public java.lang.String render(RenderingContext renderingContext)
Renderablerender in interface RenderablerenderingContext - contextCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.