Class CompoundSelectionImpl
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
-
- org.eclipse.persistence.internal.jpa.querydef.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 Summary
Fields Modifier and Type Field Description protected java.util.ArrayList<java.lang.String>duplicateAliasNamesprotected java.util.ArrayList<javax.persistence.criteria.Selection<?>>subSelections-
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, currentNode, javaType
-
-
Constructor Summary
Constructors Constructor Description CompoundSelectionImpl(java.lang.Class javaType, javax.persistence.criteria.Selection[] subSelections)CompoundSelectionImpl(java.lang.Class javaType, javax.persistence.criteria.Selection[] subSelections, boolean validate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfindRootAndParameters(CommonAbstractCriteriaImpl criteriaQuery)java.util.List<javax.persistence.criteria.Selection<?>>getCompoundSelectionItems()Return selection items composing a compound selectionprotected java.util.List<java.lang.String>getDuplicateAliasNames()Returns the collection used to store any duplicate alias names found within this CompoundSelection ItembooleanisCompoundSelection()Whether the selection item is a compound selection-
Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, getAlias, getCurrentNode, getJavaType, isConstructor, isFrom, isRoot, setJavaType
-
-
-
-
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:
isCompoundSelectionin interfacejavax.persistence.criteria.Selection- Overrides:
isCompoundSelectionin classSelectionImpl- Returns:
- boolean
-
getCompoundSelectionItems
public java.util.List<javax.persistence.criteria.Selection<?>> getCompoundSelectionItems()
Return selection items composing a compound selection- Specified by:
getCompoundSelectionItemsin interfacejavax.persistence.criteria.Selection- Overrides:
getCompoundSelectionItemsin classSelectionImpl- 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.
-
findRootAndParameters
public void findRootAndParameters(CommonAbstractCriteriaImpl criteriaQuery)
- Specified by:
findRootAndParametersin interfaceInternalSelection
-
-