EclipseLink 2.0.0_ 2.0.0.v20090713-r4647 API Reference

javax.persistence.criteria
Interface Selection<X>

Type Parameters:
X - the type of the selection item
All Superinterfaces:
TupleElement<X>
All Known Subinterfaces:
CollectionJoin<Z,E>, Expression<T>, From<Z,X>, Join<Z,X>, ListJoin<Z,E>, MapJoin<Z,K,V>, ParameterExpression<T>, Path<X>, PluralJoin<Z,C,E>, Predicate, QueryBuilder.Case<R>, QueryBuilder.Coalesce<T>, QueryBuilder.In<T>, QueryBuilder.SimpleCase<C,R>, Root<X>, SetJoin<Z,E>, Subquery<T>

public interface Selection<X>
extends TupleElement<X>

The Selection interface defines an item that is returned by a query.

Since:
Java Persistence 2.0

Method Summary
 Selection<X> alias(java.lang.String name)
          Assign an alias to the selection.
 java.util.List<Selection<?>> getCompoundSelectionItems()
          Return selection items composing a compound selection
 boolean isCompoundSelection()
          Whether the selection item is a compound selection
 
Methods inherited from interface javax.persistence.TupleElement
getAlias, getJavaType
 

Method Detail

alias

Selection<X> alias(java.lang.String name)
Assign an alias to the selection.

Parameters:
name - alias

isCompoundSelection

boolean isCompoundSelection()
Whether the selection item is a compound selection

Returns:
boolean

getCompoundSelectionItems

java.util.List<Selection<?>> getCompoundSelectionItems()
Return selection items composing a compound selection

Returns:
list of selection items
Throws:
java.lang.IllegalStateException - if selection is not a compound selection

EclipseLink 2.0.0_ 2.0.0.v20090713-r4647 API Reference