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
FieldsModifier and TypeFieldDescriptionFields inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, currentNode, javaType -
Constructor Summary
ConstructorsConstructorDescriptionCompoundSelectionImpl(Class<?> javaType, Selection[] subSelections) CompoundSelectionImpl(Class<?> javaType, Selection[] subSelections, boolean validate) -
Method Summary
Modifier and TypeMethodDescriptionvoidfindRootAndParameters(CommonAbstractCriteriaImpl criteriaQuery) Return selection items composing a compound selectionReturns the collection used to store any duplicate alias names found within this CompoundSelection ItembooleanWhether the selection item is a compound selectionMethods inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, getAlias, getCurrentNode, getJavaType, isConstructor, isFrom, isRoot, setJavaTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
isCompoundSelectionin interfaceSelection- Overrides:
isCompoundSelectionin classSelectionImpl- Returns:
- boolean
-
getCompoundSelectionItems
Return selection items composing a compound selection- Specified by:
getCompoundSelectionItemsin interfaceSelection- Overrides:
getCompoundSelectionItemsin 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:
findRootAndParametersin interfaceInternalSelection
-