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 FormConstructor 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, wait
findRootAndParameters
public SelectionImpl(Class<X> javaType, Expression expressionNode)
public Expression getCurrentNode()
getCurrentNode
in interface InternalSelection
public 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 InternalSelection
public boolean isRoot()
isRoot
in interface InternalSelection
public boolean isConstructor()
isConstructor
in interface InternalSelection
EclipseLink 2.5.2, "build v20140319-9ad6abd" API Reference