public abstract class SelectionImpl<X> extends Object implements jakarta.persistence.criteria.Selection<X>, InternalSelection, Serializable
Purpose: Contains the implementation of the Selection interface of the JPA criteria API.
Description: The Selection is the expression describing what should be returned by the query.
Join,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected String |
alias |
protected Expression |
currentNode |
protected Class<X> |
javaType |
| Constructor and Description |
|---|
SelectionImpl(Class<X> javaType,
Expression expressionNode) |
| Modifier and Type | Method and Description |
|---|---|
jakarta.persistence.criteria.Selection<X> |
alias(String name)
Assign an alias to the selection.
|
String |
getAlias() |
List<jakarta.persistence.criteria.Selection<?>> |
getCompoundSelectionItems()
Return selection items composing a compound selection
|
Expression |
getCurrentNode()
Returns the current EclipseLink expression at this node in the criteria expression tree
|
Class<? extends X> |
getJavaType() |
boolean |
isCompoundSelection()
Whether the selection item is a compound selection
|
boolean |
isConstructor() |
boolean |
isFrom() |
boolean |
isRoot() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindRootAndParametersprotected Expression currentNode
protected String alias
public SelectionImpl(Class<X> javaType, Expression expressionNode)
public Expression getCurrentNode()
getCurrentNode in interface InternalSelectionpublic jakarta.persistence.criteria.Selection<X> alias(String name)
alias in interface jakarta.persistence.criteria.Selection<X>name - aliaspublic String getAlias()
getAlias in interface jakarta.persistence.TupleElement<X>public Class<? extends X> getJavaType()
getJavaType in interface jakarta.persistence.TupleElement<X>public List<jakarta.persistence.criteria.Selection<?>> getCompoundSelectionItems()
getCompoundSelectionItems in interface jakarta.persistence.criteria.Selection<X>IllegalStateException - if selection is not a compound
selectionpublic boolean isCompoundSelection()
isCompoundSelection in interface jakarta.persistence.criteria.Selection<X>public boolean isFrom()
isFrom in interface InternalSelectionpublic boolean isRoot()
isRoot in interface InternalSelectionpublic boolean isConstructor()
isConstructor in interface InternalSelectionCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.