Module org.eclipse.persistence.jpa
Class SelectionImpl<X>
java.lang.Object
org.eclipse.persistence.internal.jpa.querydef.SelectionImpl<X>
- All Implemented Interfaces:
Selection<X>
,TupleElement<X>
,Serializable
,InternalSelection
- Direct Known Subclasses:
CompoundSelectionImpl
,ExpressionImpl
public abstract class SelectionImpl<X>
extends Object
implements 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.
- Since:
- EclipseLink 1.2
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAssign an alias to the selection.getAlias()
Return selection items composing a compound selectionReturns the current EclipseLink expression at this node in the criteria expression treeboolean
Whether the selection item is a compound selectionboolean
boolean
isFrom()
boolean
isRoot()
void
setJavaType
(Class<X> javaType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.persistence.internal.jpa.querydef.InternalSelection
findRootAndParameters
-
Field Details
-
javaType
-
currentNode
-
alias
-
-
Constructor Details
-
SelectionImpl
-
-
Method Details
-
getCurrentNode
Returns the current EclipseLink expression at this node in the criteria expression tree- Specified by:
getCurrentNode
in interfaceInternalSelection
- Returns:
- the currentNode
-
alias
Assign an alias to the selection. -
getAlias
- Specified by:
getAlias
in interfaceTupleElement<X>
-
getJavaType
- Specified by:
getJavaType
in interfaceTupleElement<X>
-
setJavaType
-
getCompoundSelectionItems
Return selection items composing a compound selection- Specified by:
getCompoundSelectionItems
in interfaceSelection<X>
- Returns:
- list of selection items
- Throws:
IllegalStateException
- if selection is not a compound selection
-
isCompoundSelection
public boolean isCompoundSelection()Whether the selection item is a compound selection- Specified by:
isCompoundSelection
in interfaceSelection<X>
- Returns:
- boolean
-
isFrom
public boolean isFrom()- Specified by:
isFrom
in interfaceInternalSelection
-
isRoot
public boolean isRoot()- Specified by:
isRoot
in interfaceInternalSelection
-
isConstructor
public boolean isConstructor()- Specified by:
isConstructor
in interfaceInternalSelection
-