SingularAttribute generally obtained from a
javax.persistence.criteria.Path#get(SingularAttribute) call
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final SingularAttribute | |
| private final ManagedType |
| Access | Constructor and Description |
|---|---|
| public | SingularAttributePath(CriteriaBuilderImpl criteriaBuilder, Class<X> javaType, PathSource<X> pathSource, SingularAttribute<?, X> attribute)
|
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | |
| public SingularAttribute | getAttribute()
Implements org. |
| public Bindable | getModel()
Implements javax. |
| protected Attribute | locateAttributeInternal(String
The name of the attribute to locate attributeName)Implements abstract org. |
| private ManagedType | |
| public <T extends X> SingularAttributePath | treatAs(Class<T>
The type to treat the path as. treatAsType)Implements org. |
| attribute | back to summary |
|---|---|
| private final SingularAttribute<?, X> attribute | |
| managedType | back to summary |
|---|---|
| private final ManagedType<X> managedType | |
| SingularAttributePath | back to summary |
|---|---|
public SingularAttributePath(CriteriaBuilderImpl criteriaBuilder, Class<X> javaType, PathSource<X> pathSource, SingularAttribute<?, X> attribute)
| |
| canBeDereferenced | back to summary |
|---|---|
| protected boolean canBeDereferenced() Implements abstract org.
| |
| getAttribute | back to summary |
|---|---|
| public SingularAttribute Implements org. Doc from org. Retrieve reference to the attribute this path represents.
| |
| getModel | back to summary |
|---|---|
| public Bindable Implements javax. Doc from javax. Return the bindable object that corresponds to the path expression. | |
| locateAttributeInternal | back to summary |
|---|---|
| protected Attribute Implements abstract org. Doc from org. Get the attribute by name from the underlying model. This allows subclasses to
define exactly how the attribute is derived. Called from | |
| resolveManagedType | back to summary |
|---|---|
| private ManagedType | |
| treatAs | back to summary |
|---|---|
| public <T extends X> SingularAttributePath Implements org. Doc from org. Defines handling for the JPA 2.1 TREAT down-casting feature.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final SingularAttributePath | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAlias()
Overrides org. Implements javax. |
| public void | prepareAlias(RenderingContext renderingContext)
Overrides org. Implements org. |
| public String | render(RenderingContext renderingContext)
Overrides org. Implements org. |
| original | back to summary |
|---|---|
| private final SingularAttributePath<? super T> original | |
| treatAsType | back to summary |
|---|---|
| private final Class<T> treatAsType | |
| TreatedSingularAttributePath | back to summary |
|---|---|
public TreatedSingularAttributePath(SingularAttributePath<? super T> original, Class<T> treatAsType)
| |
| getAlias | back to summary |
|---|---|
| public String getAlias() Overrides org. Implements javax. Doc from javax. Return the alias assigned to the tuple element or null, if no alias has been assigned. | |
| prepareAlias | back to summary |
|---|---|
| public void prepareAlias(RenderingContext renderingContext) Overrides org. Implements org.
| |
| render | back to summary |
|---|---|
| public String render(RenderingContext renderingContext) Overrides org. Implements org. Doc from org. Perform the rendering, returning the rendition
| |