public abstract class SelectionImpl<X> extends java.lang.Object implements 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| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
alias |
protected Expression |
currentNode |
protected java.lang.Class<X> |
javaType |
| Constructor and Description |
|---|
SelectionImpl(java.lang.Class<X> javaType,
Expression expressionNode) |
| Modifier and Type | Method and Description |
|---|---|
<any> |
alias(java.lang.String name)
Assign an alias to the selection.
|
java.lang.String |
getAlias() |
java.util.List<<any>> |
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindRootAndParametersprotected java.lang.Class<X> javaType
protected Expression currentNode
protected java.lang.String alias
public SelectionImpl(java.lang.Class<X> javaType, Expression expressionNode)
public Expression getCurrentNode()
getCurrentNode in interface InternalSelectionpublic <any> alias(java.lang.String name)
name - aliaspublic java.lang.String getAlias()
public java.lang.Class<? extends X> getJavaType()
public java.util.List<<any>> getCompoundSelectionItems()
java.lang.IllegalStateException - if selection is not a compound
selectionpublic boolean isCompoundSelection()
public boolean isFrom()
isFrom in interface InternalSelectionpublic boolean isRoot()
isRoot in interface InternalSelectionpublic boolean isConstructor()
isConstructor in interface InternalSelection