Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hibernate.ejb.criteria
Class CriteriaQueryImpl<T>

    java.lang.Object
      org.hibernate.ejb.criteria.AbstractNode
          org.hibernate.ejb.criteria.CriteriaQueryImpl<T>

All Implemented Interfaces:
  Serializable, javax.persistence.criteria.AbstractQuery<T>, javax.persistence.criteria.CriteriaQuery<T>

    public class CriteriaQueryImpl<T>

extends AbstractNode
implements javax.persistence.criteria.CriteriaQuery<T>, Serializable

The Hibernate implementation of the JPA `CriteriaQuery` contract. Mostly a set of delegation to its internal `QueryStructure`.

Author:
  Steve Ebersole
See Also:
  Serialized Form

Constructor Summary
`CriteriaQueryImpl(CriteriaBuilderImpl criteriaBuilder, Class<T> returnType)`

Method Summary
`void` | `applySelection(javax.persistence.criteria.Selection<? extends T> selection)`
`javax.persistence.criteria.CriteriaQuery<T>` | `distinct(boolean applyDistinction)`
`
`<X> javax.persistence.criteria.Root<X>`
` | `from(Class<X> entityClass)`
`
`<X> javax.persistence.criteria.Root<X>`
` | `from(javax.persistence.metamodel.EntityType<X> entityType)`
`List<javax.persistence.criteria.Expression<?>>` | `getGroupList()`
`javax.persistence.criteria.Predicate` | `getGroupRestriction()`
`List<javax.persistence.criteria.Order>` | `getOrderList()`
`Set<javax.persistence.criteria.ParameterExpression<?>>` | `getParameters()`
`javax.persistence.criteria.Predicate` | `getRestriction()`
`Class<T>` | `getResultType()`
`Set<javax.persistence.criteria.Root<?>>` | `getRoots()`
`javax.persistence.criteria.Selection<T>` | `getSelection()`
`javax.persistence.criteria.CriteriaQuery<T>` | `groupBy(javax.persistence.criteria.Expression<?>... groupings)`
`javax.persistence.criteria.CriteriaQuery<T>` | `groupBy(List<javax.persistence.criteria.Expression<?>> groupings)`
`javax.persistence.criteria.CriteriaQuery<T>` | `having(javax.persistence.criteria.Expression<Boolean> expression)`
`javax.persistence.criteria.CriteriaQuery<T>` | `having(javax.persistence.criteria.Predicate... predicates)`
`boolean` | `isDistinct()`
`javax.persistence.criteria.CriteriaQuery<T>` | `multiselect(List<javax.persistence.criteria.Selection<?>> selections)`
`javax.persistence.criteria.CriteriaQuery<T>` | `multiselect(javax.persistence.criteria.Selection<?>... selections)`
`javax.persistence.criteria.CriteriaQuery<T>` | `orderBy(List<javax.persistence.criteria.Order> orders)`
`javax.persistence.criteria.CriteriaQuery<T>` | `orderBy(javax.persistence.criteria.Order... orders)`
`CriteriaQueryCompiler.RenderedCriteriaQuery` | `render(CriteriaQueryCompiler.RenderingContext renderingContext)`
`javax.persistence.criteria.CriteriaQuery<T>` | `select(javax.persistence.criteria.Selection<? extends T> selection)`
`
`<U> javax.persistence.criteria.Subquery<U>`
` | `subquery(Class<U> subqueryType)`
`void` | `validate()`
`javax.persistence.criteria.CriteriaQuery<T>` | `where(javax.persistence.criteria.Expression<Boolean> expression)`
`javax.persistence.criteria.CriteriaQuery<T>` | `where(javax.persistence.criteria.Predicate... predicates)`

Methods inherited from class org.hibernate.ejb.criteria.AbstractNode
`criteriaBuilder`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CriteriaQueryImpl

    public CriteriaQueryImpl(CriteriaBuilderImpl criteriaBuilder,
                             Class<T> returnType)

Method Detail

### getResultType

    public Class<T> getResultType()

  Specified by:
    `getResultType` in interface `javax.persistence.criteria.AbstractQuery<T>`

### distinct

    public javax.persistence.criteria.CriteriaQuery<T> distinct(boolean applyDistinction)

  Specified by:
    `distinct` in interface `javax.persistence.criteria.AbstractQuery<T>`
  Specified by:
    `distinct` in interface `javax.persistence.criteria.CriteriaQuery<T>`

### isDistinct

    public boolean isDistinct()

  Specified by:
    `isDistinct` in interface `javax.persistence.criteria.AbstractQuery<T>`

### getSelection

    public javax.persistence.criteria.Selection<T> getSelection()

  Specified by:
    `getSelection` in interface `javax.persistence.criteria.AbstractQuery<T>`

### applySelection

    public void applySelection(javax.persistence.criteria.Selection<? extends T> selection)

### select

    public javax.persistence.criteria.CriteriaQuery<T> select(javax.persistence.criteria.Selection<? extends T> selection)

  Specified by:
    `select` in interface `javax.persistence.criteria.CriteriaQuery<T>`

### multiselect

    public javax.persistence.criteria.CriteriaQuery<T> multiselect(javax.persistence.criteria.Selection<?>... selections)

  Specified by:
    `multiselect` in interface `javax.persistence.criteria.CriteriaQuery<T>`

### multiselect

    public javax.persistence.criteria.CriteriaQuery<T> multiselect(List<javax.persistence.criteria.Selection<?>> selections)

  Specified by:
    `multiselect` in interface `javax.persistence.criteria.CriteriaQuery<T>`

### getRoots

    public Set<javax.persistence.criteria.Root<?>> getRoots()

  Specified by:
    `getRoots` in interface `javax.persistence.criteria.AbstractQuery<T>`

### from

    public <X> javax.persistence.criteria.Root<X> from(javax.persistence.metamodel.EntityType<X> entityType)

  Specified by:
    `from` in interface `javax.persistence.criteria.AbstractQuery<T>`

### from

    public <X> javax.persistence.criteria.Root<X> from(Class<X> entityClass)

  Specified by:
    `from` in interface `javax.persistence.criteria.AbstractQuery<T>`

### getRestriction

    public javax.persistence.criteria.Predicate getRestriction()

  Specified by:
    `getRestriction` in interface `javax.persistence.criteria.AbstractQuery<T>`

### where

    public javax.persistence.criteria.CriteriaQuery<T> where(javax.persistence.criteria.Expression<Boolean> expression)

  Specified by:
    `where` in interface `javax.persistence.criteria.AbstractQuery<T>`
  Specified by:
    `where` in interface `javax.persistence.criteria.CriteriaQuery<T>`

### where

    public javax.persistence.criteria.CriteriaQuery<T> where(javax.persistence.criteria.Predicate... predicates)

  Specified by:
    `where` in interface `javax.persistence.criteria.AbstractQuery<T>`
  Specified by:
    `where` in interface `javax.persistence.criteria.CriteriaQuery<T>`

### getGroupList

    public List<javax.persistence.criteria.Expression<?>> getGroupList()

  Specified by:
    `getGroupList` in interface `javax.persistence.criteria.AbstractQuery<T>`

### groupBy

    public javax.persistence.criteria.CriteriaQuery<T> groupBy(javax.persistence.criteria.Expression<?>... groupings)

  Specified by:
    `groupBy` in interface `javax.persistence.criteria.AbstractQuery<T>`
  Specified by:
    `groupBy` in interface `javax.persistence.criteria.CriteriaQuery<T>`

### groupBy

    public javax.persistence.criteria.CriteriaQuery<T> groupBy(List<javax.persistence.criteria.Expression<?>> groupings)

  Specified by:
    `groupBy` in interface `javax.persistence.criteria.AbstractQuery<T>`
  Specified by:
    `groupBy` in interface `javax.persistence.criteria.CriteriaQuery<T>`

### getGroupRestriction

    public javax.persistence.criteria.Predicate getGroupRestriction()

  Specified by:
    `getGroupRestriction` in interface `javax.persistence.criteria.AbstractQuery<T>`

### having

    public javax.persistence.criteria.CriteriaQuery<T> having(javax.persistence.criteria.Expression<Boolean> expression)

  Specified by:
    `having` in interface `javax.persistence.criteria.AbstractQuery<T>`
  Specified by:
    `having` in interface `javax.persistence.criteria.CriteriaQuery<T>`

### having

    public javax.persistence.criteria.CriteriaQuery<T> having(javax.persistence.criteria.Predicate... predicates)

  Specified by:
    `having` in interface `javax.persistence.criteria.AbstractQuery<T>`
  Specified by:
    `having` in interface `javax.persistence.criteria.CriteriaQuery<T>`

### getOrderList

    public List<javax.persistence.criteria.Order> getOrderList()

  Specified by:
    `getOrderList` in interface `javax.persistence.criteria.CriteriaQuery<T>`

### orderBy

    public javax.persistence.criteria.CriteriaQuery<T> orderBy(javax.persistence.criteria.Order... orders)

  Specified by:
    `orderBy` in interface `javax.persistence.criteria.CriteriaQuery<T>`

### orderBy

    public javax.persistence.criteria.CriteriaQuery<T> orderBy(List<javax.persistence.criteria.Order> orders)

  Specified by:
    `orderBy` in interface `javax.persistence.criteria.CriteriaQuery<T>`

### getParameters

    public Set<javax.persistence.criteria.ParameterExpression<?>> getParameters()

  Specified by:
    `getParameters` in interface `javax.persistence.criteria.CriteriaQuery<T>`

### subquery

    public <U> javax.persistence.criteria.Subquery<U> subquery(Class<U> subqueryType)

  Specified by:
    `subquery` in interface `javax.persistence.criteria.AbstractQuery<T>`

### validate

    public void validate()

### render

    public CriteriaQueryCompiler.RenderedCriteriaQuery render(CriteriaQueryCompiler.RenderingContext renderingContext)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.