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
Fields -
Constructor Summary
Constructors -
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 treebooleanWhether the selection item is a compound selectionbooleanbooleanisFrom()booleanisRoot()voidsetJavaType(Class<X> javaType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getCurrentNodein interfaceInternalSelection- Returns:
- the currentNode
-
alias
Assign an alias to the selection. -
getAlias
- Specified by:
getAliasin interfaceTupleElement<X>
-
getJavaType
- Specified by:
getJavaTypein interfaceTupleElement<X>
-
setJavaType
-
getCompoundSelectionItems
Return selection items composing a compound selection- Specified by:
getCompoundSelectionItemsin 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:
isCompoundSelectionin interfaceSelection<X>- Returns:
- boolean
-
isFrom
public boolean isFrom()- Specified by:
isFromin interfaceInternalSelection
-
isRoot
public boolean isRoot()- Specified by:
isRootin interfaceInternalSelection
-
isConstructor
public boolean isConstructor()- Specified by:
isConstructorin interfaceInternalSelection
-