Class CompoundSelectionImpl

  • All Implemented Interfaces:
    jakarta.persistence.criteria.CompoundSelection, jakarta.persistence.criteria.Selection, jakarta.persistence.TupleElement, Serializable, InternalSelection
    Direct Known Subclasses:
    ConstructorSelectionImpl

    public class CompoundSelectionImpl
    extends SelectionImpl
    implements jakarta.persistence.criteria.CompoundSelection

    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
    Author:
    gyorke
    See Also:
    Join, Serialized Form
    • Field Detail

      • subSelections

        protected ArrayList<jakarta.persistence.criteria.Selection<?>> subSelections
    • Constructor Detail

      • CompoundSelectionImpl

        public CompoundSelectionImpl​(Class javaType,
                                     jakarta.persistence.criteria.Selection[] subSelections)
      • CompoundSelectionImpl

        public CompoundSelectionImpl​(Class javaType,
                                     jakarta.persistence.criteria.Selection[] subSelections,
                                     boolean validate)
    • Method Detail

      • isCompoundSelection

        public boolean isCompoundSelection()
        Whether the selection item is a compound selection
        Specified by:
        isCompoundSelection in interface jakarta.persistence.criteria.Selection
        Overrides:
        isCompoundSelection in class SelectionImpl
        Returns:
        boolean
      • getCompoundSelectionItems

        public List<jakarta.persistence.criteria.Selection<?>> getCompoundSelectionItems()
        Return selection items composing a compound selection
        Specified by:
        getCompoundSelectionItems in interface jakarta.persistence.criteria.Selection
        Overrides:
        getCompoundSelectionItems in class SelectionImpl
        Returns:
        list of selection items
        Throws:
        IllegalStateException - if selection is not a compound selection
      • getDuplicateAliasNames

        protected List<String> getDuplicateAliasNames()
        Returns the collection used to store any duplicate alias names found within this CompoundSelection Item
        Returns:
        list of alias Strings.