public abstract class SelectionImpl<X> extends Object implements javax.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| Constructor and Description |
|---|
SelectionImpl(Class<X> javaType,
Expression expressionNode) |
| Modifier and Type | Method and Description |
|---|---|
javax.persistence.criteria.Selection<X> |
alias(String name)
Assign an alias to the selection.
|
String |
getAlias() |
List<javax.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() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindRootAndParameterspublic SelectionImpl(Class<X> javaType, Expression expressionNode)
public Expression getCurrentNode()
getCurrentNode in interface InternalSelectionpublic javax.persistence.criteria.Selection<X> alias(String name)
alias in interface javax.persistence.criteria.Selection<X>name - aliaspublic String getAlias()
getAlias in interface javax.persistence.TupleElement<X>public Class<? extends X> getJavaType()
getJavaType in interface javax.persistence.TupleElement<X>public List<javax.persistence.criteria.Selection<?>> getCompoundSelectionItems()
getCompoundSelectionItems in interface javax.persistence.criteria.Selection<X>IllegalStateException - if selection is not a compound
selectionpublic boolean isCompoundSelection()
isCompoundSelection in interface javax.persistence.criteria.Selection<X>public boolean isFrom()
isFrom in interface InternalSelectionpublic boolean isRoot()
isRoot in interface InternalSelectionpublic boolean isConstructor()
isConstructor in interface InternalSelectionEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference