public abstract class SelectionImpl<X> extends java.lang.Object implements javax.persistence.criteria.Selection<X>, InternalSelection, java.io.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(java.lang.Class<X> javaType,
Expression expressionNode) |
| Modifier and Type | Method and Description |
|---|---|
javax.persistence.criteria.Selection<X> |
alias(java.lang.String name)
Assign an alias to the selection.
|
java.lang.String |
getAlias() |
java.util.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
|
java.lang.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(java.lang.Class<X> javaType, Expression expressionNode)
public Expression getCurrentNode()
getCurrentNode in interface InternalSelectionpublic javax.persistence.criteria.Selection<X> alias(java.lang.String name)
alias in interface javax.persistence.criteria.Selection<X>name - aliaspublic java.lang.String getAlias()
getAlias in interface javax.persistence.TupleElement<X>public java.lang.Class<? extends X> getJavaType()
getJavaType in interface javax.persistence.TupleElement<X>public java.util.List<javax.persistence.criteria.Selection<?>> getCompoundSelectionItems()
getCompoundSelectionItems in interface javax.persistence.criteria.Selection<X>java.lang.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