Class CompoundSelectionImpl

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

    public class CompoundSelectionImpl
    extends SelectionImpl
    implements javax.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 java.util.ArrayList<javax.persistence.criteria.Selection<?>> subSelections
      • duplicateAliasNames

        protected java.util.ArrayList<java.lang.String> duplicateAliasNames
    • Constructor Detail

      • CompoundSelectionImpl

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

        public CompoundSelectionImpl​(java.lang.Class javaType,
                                     javax.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 javax.persistence.criteria.Selection
        Overrides:
        isCompoundSelection in class SelectionImpl
        Returns:
        boolean
      • getCompoundSelectionItems

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

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