Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa.querydef

public Class CompoundSelectionImpl

extends SelectionImpl
implements CompoundSelection
Class Inheritance
All Implemented Interfaces
jakarta.persistence.criteria.CompoundSelection, jakarta.persistence.criteria.Selection, jakarta.persistence.TupleElement
Known Direct Subclasses
org.eclipse.persistence.internal.jpa.querydef.ConstructorSelectionImpl
Imports
java.util.ArrayList, .List, .Map, .TreeMap, jakarta.persistence.criteria.CompoundSelection, .Selection, org.eclipse.persistence.internal.localization.ExceptionLocalization

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.

Author
gyorke
Since
EclipseLink 1.2
See Also
Join

Field Summary

Modifier and TypeField and Description
protected ArrayList<String>
protected ArrayList<Selection<?>>
Inherited from org.eclipse.persistence.internal.jpa.querydef.SelectionImpl:
aliascurrentNodejavaType

Constructor Summary

AccessConstructor and Description
public
CompoundSelectionImpl(Class<?> javaType, Selection<X>[] subSelections)

public
CompoundSelectionImpl(Class<?> javaType, Selection<X>[] subSelections, boolean validate)

Method Summary

Modifier and TypeMethod and Description
public void
public List<Selection<?>>
protected List<String>

Returns:

list of alias Strings.
getDuplicateAliasNames
()

Returns the collection used to store any duplicate alias names found within this CompoundSelection Item

public boolean
Inherited from org.eclipse.persistence.internal.jpa.querydef.SelectionImpl:
aliasgetAliasgetCurrentNodegetJavaTypeisConstructorisFromisRootsetJavaType

Field Detail

duplicateAliasNamesback to summary
protected ArrayList<String> duplicateAliasNames
subSelectionsback to summary
protected ArrayList<Selection<?>> subSelections

Constructor Detail

CompoundSelectionImplback to summary
public CompoundSelectionImpl(Class<?> javaType, Selection<X>[] subSelections)
CompoundSelectionImplback to summary
public CompoundSelectionImpl(Class<?> javaType, Selection<X>[] subSelections, boolean validate)

Method Detail

findRootAndParametersback to summary
public void findRootAndParameters(CommonAbstractCriteriaImpl<T> criteriaQuery)

Implements org.eclipse.persistence.internal.jpa.querydef.InternalSelection.findRootAndParameters.

Annotations
@Override
getCompoundSelectionItemsback to summary
public List<Selection<?>> getCompoundSelectionItems()

Overrides org.eclipse.persistence.internal.jpa.querydef.SelectionImpl.getCompoundSelectionItems.

Implements jakarta.persistence.criteria.Selection.getCompoundSelectionItems.

Return selection items composing a compound selection

Returns:List<Selection<?>>

list of selection items

Annotations
@Override
Exceptions
IllegalStateException:
if selection is not a compound selection
getDuplicateAliasNamesback to summary
protected List<String> getDuplicateAliasNames()

Returns the collection used to store any duplicate alias names found within this CompoundSelection Item

Returns:List<String>

list of alias Strings.

isCompoundSelectionback to summary
public boolean isCompoundSelection()

Overrides org.eclipse.persistence.internal.jpa.querydef.SelectionImpl.isCompoundSelection.

Implements jakarta.persistence.criteria.Selection.isCompoundSelection.

Whether the selection item is a compound selection

Returns:boolean

boolean

Annotations
@Override