Top Description Constructors Methods
org.hibernate.query.criteria.internal.expression

public abstract Class SelectionImpl<X>

extends AbstractTupleElement<X>
implements SelectionImplementor<X>, ParameterContainer, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.hibernate.query.criteria.internal.ParameterContainer, org.hibernate.query.criteria.internal.SelectionImplementor, javax.persistence.criteria.Selection, javax.persistence.TupleElement, org.hibernate.query.criteria.internal.TupleElementImplementor
Known Direct Subclasses
org.hibernate.query.criteria.internal.expression.CompoundSelectionImpl, org.hibernate.query.criteria.internal.expression.ExpressionImpl
Imports
java.io.Serializable, java.util.Collections, .List, javax.persistence.criteria.Selection, org.hibernate.query.criteria.internal.CriteriaBuilderImpl, .ParameterContainer, .SelectionImplementor, .ValueHandlerFactory

The Hibernate implementation of the JPA Selection contract.
Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
public
SelectionImpl(CriteriaBuilderImpl criteriaBuilder, Class<X> javaType)

Method Summary

Modifier and TypeMethod and Description
public Selection<X>
alias(String
alias
alias
)

Implements javax.persistence.criteria.Selection.alias.

Assigns an alias to the selection item.
public List<Selection<?>>
getCompoundSelectionItems()

Implements javax.persistence.criteria.Selection.getCompoundSelectionItems.

Return the selection items composing a compound selection.
public List<ValueHandlerFactory.ValueHandler<T>>
public boolean
isCompoundSelection()

Implements javax.persistence.criteria.Selection.isCompoundSelection.

Whether the selection item is a compound selection.
Inherited from org.hibernate.query.criteria.internal.expression.AbstractTupleElement:
forceConversiongetAliasgetJavaTypegetValueHandlerresetJavaTypesetAlias

Constructor Detail

SelectionImplback to summary
public SelectionImpl(CriteriaBuilderImpl criteriaBuilder, Class<X> javaType)

Method Detail

aliasback to summary
public Selection<X> alias(String alias)

Implements javax.persistence.criteria.Selection.alias.

Doc from javax.persistence.criteria.Selection.alias.

Assigns an alias to the selection item. Once assigned, an alias cannot be changed or reassigned. Returns the same selection item.

Parameters
alias:String

alias

Returns:Selection<X>

selection item

getCompoundSelectionItemsback to summary
public List<Selection<?>> getCompoundSelectionItems()

Implements javax.persistence.criteria.Selection.getCompoundSelectionItems.

Doc from javax.persistence.criteria.Selection.getCompoundSelectionItems.

Return the selection items composing a compound selection. Modifications to the list do not affect the query.

Returns:List<Selection<?>>

list of selection items

getValueHandlersback to summary
public List<ValueHandlerFactory.ValueHandler<T>> getValueHandlers()

Implements org.hibernate.query.criteria.internal.SelectionImplementor.getValueHandlers.

isCompoundSelectionback to summary
public boolean isCompoundSelection()

Implements javax.persistence.criteria.Selection.isCompoundSelection.

Doc from javax.persistence.criteria.Selection.isCompoundSelection.

Whether the selection item is a compound selection.

Returns:boolean

boolean indicating whether the selection is a compound selection