Class CriteriaQueryImpl<T>

java.lang.Object
org.aksw.jena_sparql_api.mapper.jpa.criteria.CriteriaQueryImpl<T>
All Implemented Interfaces:
javax.persistence.criteria.AbstractQuery<T>, javax.persistence.criteria.CommonAbstractCriteria, javax.persistence.criteria.CriteriaQuery<T>

public class CriteriaQueryImpl<T> extends Object implements javax.persistence.criteria.CriteriaQuery<T>
Criteria query implementation.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static String
     
    protected int
     
    protected boolean
     
    protected javax.persistence.criteria.Subquery<?>
     
    protected boolean
     
    protected List<javax.persistence.criteria.Expression<?>>
     
    protected javax.persistence.criteria.Predicate
     
    protected javax.persistence.metamodel.Metamodel
     
    protected List<javax.persistence.criteria.Order>
     
    protected Class<T>
     
    protected Set<javax.persistence.criteria.Root<?>>
     
    protected javax.persistence.criteria.Selection<? extends T>
     
    protected List<javax.persistence.criteria.Selection<?>>
     
    protected List<javax.persistence.criteria.Subquery<?>>
     
    protected List<javax.persistence.criteria.Predicate>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CriteriaQueryImpl(Class<T> resultType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.persistence.criteria.CriteriaQuery<T>
    distinct(boolean distinct)
     
    <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<?>>
     
    javax.persistence.criteria.Predicate
     
    List<javax.persistence.criteria.Order>
     
    Set<javax.persistence.criteria.ParameterExpression<?>>
     
    javax.persistence.criteria.Predicate
     
     
    Set<javax.persistence.criteria.Root<?>>
     
    javax.persistence.criteria.Selection<T>
     
    javax.persistence.criteria.CriteriaQuery<T>
    groupBy(List<javax.persistence.criteria.Expression<?>> grouping)
     
    javax.persistence.criteria.CriteriaQuery<T>
    groupBy(javax.persistence.criteria.Expression<?>... grouping)
     
    javax.persistence.criteria.CriteriaQuery<T>
    having(javax.persistence.criteria.Expression<Boolean> restriction)
     
    javax.persistence.criteria.CriteriaQuery<T>
    having(javax.persistence.criteria.Predicate... restrictions)
     
    boolean
     
    javax.persistence.criteria.CriteriaQuery<T>
    multiselect(List<javax.persistence.criteria.Selection<?>> selectionList)
     
    javax.persistence.criteria.CriteriaQuery<T>
    multiselect(javax.persistence.criteria.Selection<?>... selections)
     
    javax.persistence.criteria.CriteriaQuery<T>
    orderBy(List<javax.persistence.criteria.Order> o)
     
    javax.persistence.criteria.CriteriaQuery<T>
    orderBy(javax.persistence.criteria.Order... o)
     
    javax.persistence.criteria.CriteriaQuery<T>
    select(javax.persistence.criteria.Selection<? extends T> selection)
     
    <U> javax.persistence.criteria.Subquery<U>
    subquery(Class<U> type)
     
    javax.persistence.criteria.CriteriaQuery<T>
    where(javax.persistence.criteria.Expression<Boolean> restriction)
     
    javax.persistence.criteria.CriteriaQuery<T>
    where(javax.persistence.criteria.Predicate... restrictions)
     
    static javax.persistence.criteria.Predicate
    wrapAsPredicate(javax.persistence.criteria.Expression<Boolean> expr)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • model

      protected javax.persistence.metamodel.Metamodel model
    • resultType

      protected Class<T> resultType
    • roots

      protected Set<javax.persistence.criteria.Root<?>> roots
    • where

      protected List<javax.persistence.criteria.Predicate> where
    • orders

      protected List<javax.persistence.criteria.Order> orders
    • selection

      protected javax.persistence.criteria.Selection<? extends T> selection
    • selections

      protected List<javax.persistence.criteria.Selection<?>> selections
    • groups

      protected List<javax.persistence.criteria.Expression<?>> groups
    • having

      protected javax.persistence.criteria.Predicate having
    • subqueries

      protected List<javax.persistence.criteria.Subquery<?>> subqueries
    • distinct

      protected boolean distinct
    • delegator

      protected javax.persistence.criteria.Subquery<?> delegator
    • compiled

      protected boolean compiled
    • aliasCount

      protected int aliasCount
    • ALIAS_BASE

      protected static String ALIAS_BASE
  • Constructor Details

    • CriteriaQueryImpl

      public CriteriaQueryImpl(Class<T> resultType)
  • Method Details

    • from

      public <X> javax.persistence.criteria.Root<X> from(Class<X> entityClass)
      Specified by:
      from 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>
    • subquery

      public <U> javax.persistence.criteria.Subquery<U> subquery(Class<U> type)
      Specified by:
      subquery in interface javax.persistence.criteria.CommonAbstractCriteria
    • getRoots

      public Set<javax.persistence.criteria.Root<?>> getRoots()
      Specified by:
      getRoots 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>
    • getRestriction

      public javax.persistence.criteria.Predicate getRestriction()
      Specified by:
      getRestriction in interface javax.persistence.criteria.CommonAbstractCriteria
    • getGroupList

      public List<javax.persistence.criteria.Expression<?>> getGroupList()
      Specified by:
      getGroupList in interface javax.persistence.criteria.AbstractQuery<T>
    • getGroupRestriction

      public javax.persistence.criteria.Predicate getGroupRestriction()
      Specified by:
      getGroupRestriction in interface javax.persistence.criteria.AbstractQuery<T>
    • isDistinct

      public boolean isDistinct()
      Specified by:
      isDistinct in interface javax.persistence.criteria.AbstractQuery<T>
    • getResultType

      public Class<T> getResultType()
      Specified by:
      getResultType in interface javax.persistence.criteria.AbstractQuery<T>
    • 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<?>> selectionList)
      Specified by:
      multiselect in interface javax.persistence.criteria.CriteriaQuery<T>
    • wrapAsPredicate

      public static javax.persistence.criteria.Predicate wrapAsPredicate(javax.persistence.criteria.Expression<Boolean> expr)
    • where

      public javax.persistence.criteria.CriteriaQuery<T> where(javax.persistence.criteria.Expression<Boolean> restriction)
      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... restrictions)
      Specified by:
      where in interface javax.persistence.criteria.AbstractQuery<T>
      Specified by:
      where in interface javax.persistence.criteria.CriteriaQuery<T>
    • groupBy

      public javax.persistence.criteria.CriteriaQuery<T> groupBy(javax.persistence.criteria.Expression<?>... grouping)
      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<?>> grouping)
      Specified by:
      groupBy in interface javax.persistence.criteria.AbstractQuery<T>
      Specified by:
      groupBy in interface javax.persistence.criteria.CriteriaQuery<T>
    • having

      public javax.persistence.criteria.CriteriaQuery<T> having(javax.persistence.criteria.Expression<Boolean> restriction)
      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... restrictions)
      Specified by:
      having in interface javax.persistence.criteria.AbstractQuery<T>
      Specified by:
      having in interface javax.persistence.criteria.CriteriaQuery<T>
    • orderBy

      public javax.persistence.criteria.CriteriaQuery<T> orderBy(javax.persistence.criteria.Order... o)
      Specified by:
      orderBy in interface javax.persistence.criteria.CriteriaQuery<T>
    • orderBy

      public javax.persistence.criteria.CriteriaQuery<T> orderBy(List<javax.persistence.criteria.Order> o)
      Specified by:
      orderBy in interface javax.persistence.criteria.CriteriaQuery<T>
    • distinct

      public javax.persistence.criteria.CriteriaQuery<T> distinct(boolean distinct)
      Specified by:
      distinct in interface javax.persistence.criteria.AbstractQuery<T>
      Specified by:
      distinct 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>
    • getParameters

      public Set<javax.persistence.criteria.ParameterExpression<?>> getParameters()
      Specified by:
      getParameters in interface javax.persistence.criteria.CriteriaQuery<T>