Module org.eclipse.persistence.jpa
Class CompoundSelectionImpl<X>
java.lang.Object
org.eclipse.persistence.internal.jpa.querydef.SelectionImpl<X>
org.eclipse.persistence.internal.jpa.querydef.CompoundSelectionImpl<X>
- Type Parameters:
X- the type of the selection item
- All Implemented Interfaces:
CompoundSelection<X>,Selection<X>,TupleElement<X>,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<? extends X> javaType, Selection<?>[] subSelections) CompoundSelectionImpl(Class<? extends X> 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<X>- Overrides:
isCompoundSelectionin classSelectionImpl<X>- Returns:
- boolean
-
getCompoundSelectionItems
Return selection items composing a compound selection- Specified by:
getCompoundSelectionItemsin interfaceSelection<X>- Overrides:
getCompoundSelectionItemsin classSelectionImpl<X>- 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
-