Module org.eclipse.persistence.jpa
Class CompoundSelectionImpl
java.lang.Object
org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
org.eclipse.persistence.internal.jpa.querydef.CompoundSelectionImpl
- All Implemented Interfaces:
CompoundSelection
,Selection
,TupleElement
,Serializable
,InternalSelection
- Direct Known Subclasses:
ConstructorSelectionImpl
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
Modifier and TypeFieldDescriptionFields inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, currentNode, javaType
-
Constructor Summary
ConstructorDescriptionCompoundSelectionImpl
(Class<?> javaType, Selection[] subSelections) CompoundSelectionImpl
(Class<?> javaType, Selection[] subSelections, boolean validate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
findRootAndParameters
(CommonAbstractCriteriaImpl criteriaQuery) Return selection items composing a compound selectionReturns the collection used to store any duplicate alias names found within this CompoundSelection Itemboolean
Whether the selection item is a compound selectionMethods inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, getAlias, getCurrentNode, getJavaType, isConstructor, isFrom, isRoot, setJavaType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.persistence.TupleElement
getAlias, getJavaType
-
Field Details
-
subSelections
-
duplicateAliasNames
-
-
Constructor Details
-
CompoundSelectionImpl
-
CompoundSelectionImpl
-
-
Method Details
-
isCompoundSelection
public boolean isCompoundSelection()Whether the selection item is a compound selection- Specified by:
isCompoundSelection
in interfaceSelection
- Overrides:
isCompoundSelection
in classSelectionImpl
- Returns:
- boolean
-
getCompoundSelectionItems
Return selection items composing a compound selection- Specified by:
getCompoundSelectionItems
in interfaceSelection
- Overrides:
getCompoundSelectionItems
in classSelectionImpl
- Returns:
- list of selection items
- Throws:
IllegalStateException
- if selection is not a compound selection
-
getDuplicateAliasNames
Returns the collection used to store any duplicate alias names found within this CompoundSelection Item- Returns:
- list of alias Strings.
-
findRootAndParameters
- Specified by:
findRootAndParameters
in interfaceInternalSelection
-