JPA Interface

CompoundSelection

Type Parameters:
<X> - the type of the selection item
Super Interfaces:
Selection<X>, TupleElement<X>

The CompoundSelection interface defines a compound selection item (tuple, array, or result of constructor).
Since:
JPA 2.0

Public Methods

Selection<X> alias(String name)
Assigns an alias to the selection item.
Once assigned, an alias cannot be changed or reassigned. Returns the same selection item.
Parameters:
name - alias
Return:
selection item
Inherited from:
Selection<X>
Since:
JPA 2.0
List<Selection<?>> getCompoundSelectionItems()
Return the selection items composing a compound selection.
Modifications to the list do not affect the query.
Return:
list of selection items
Throws:
IllegalStateException - if selection is not a compound selection
Inherited from:
Selection<X>
Since:
JPA 2.0
Whether the selection item is a compound selection.
Return:
boolean indicating whether the selection is a compound selection
Inherited from:
Selection<X>
Since:
JPA 2.0