BrightSide Workbench Full Report + Source Code
org.turro.jpa.query.AbstractJpaQuery< E > Class Template Referenceabstract
Inheritance diagram for org.turro.jpa.query.AbstractJpaQuery< E >:
Collaboration diagram for org.turro.jpa.query.AbstractJpaQuery< E >:

Public Member Functions

 AbstractJpaQuery (Class< E > persistentClass)
 
JpaRoot< E > root ()
 
CriteriaQuery< E > query ()
 
abstract AbstractJpaQuery< E > select ()
 
abstract AbstractJpaQuery< E > select (String... columns)
 
AbstractJpaQuery< E > where (Expression< Boolean > restriction)
 
AbstractJpaQuery< E > where (Predicate... restrictions)
 
AbstractJpaQuery< E > groupBy (Expression<?>... grouping)
 
AbstractJpaQuery< E > groupBy (List< Expression<?>> grouping)
 
AbstractJpaQuery< E > having (Expression< Boolean > restriction)
 
AbstractJpaQuery< E > having (Predicate... restrictions)
 
AbstractJpaQuery< E > distinct (boolean distinct)
 

Protected Attributes

final Class< E > persistentClass
 
AbstractQuery< E > query
 
JpaRoot root
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 31 of file AbstractJpaQuery.java.

Constructor & Destructor Documentation

◆ AbstractJpaQuery()

org.turro.jpa.query.AbstractJpaQuery< E >.AbstractJpaQuery ( Class< E >  persistentClass)

Definition at line 37 of file AbstractJpaQuery.java.

37  {
39  }

Member Function Documentation

◆ distinct()

AbstractJpaQuery<E> org.turro.jpa.query.AbstractJpaQuery< E >.distinct ( boolean  distinct)

Definition at line 89 of file AbstractJpaQuery.java.

89  {
90  query.distinct(distinct);
91  return this;
92  }
AbstractJpaQuery< E > distinct(boolean distinct)

◆ groupBy() [1/2]

AbstractJpaQuery<E> org.turro.jpa.query.AbstractJpaQuery< E >.groupBy ( Expression<?>...  grouping)

Definition at line 69 of file AbstractJpaQuery.java.

69  {
70  query.groupBy(grouping);
71  return this;
72  }

◆ groupBy() [2/2]

AbstractJpaQuery<E> org.turro.jpa.query.AbstractJpaQuery< E >.groupBy ( List< Expression<?>>  grouping)

Definition at line 74 of file AbstractJpaQuery.java.

74  {
75  query.groupBy(grouping);
76  return this;
77  }

◆ having() [1/2]

AbstractJpaQuery<E> org.turro.jpa.query.AbstractJpaQuery< E >.having ( Expression< Boolean >  restriction)

Definition at line 79 of file AbstractJpaQuery.java.

79  {
80  query.having(restriction);
81  return this;
82  }

◆ having() [2/2]

AbstractJpaQuery<E> org.turro.jpa.query.AbstractJpaQuery< E >.having ( Predicate...  restrictions)

Definition at line 84 of file AbstractJpaQuery.java.

84  {
85  query.having(restrictions);
86  return this;
87  }

◆ query()

CriteriaQuery<E> org.turro.jpa.query.AbstractJpaQuery< E >.query ( )

Definition at line 52 of file AbstractJpaQuery.java.

52  {
53  return (CriteriaQuery<E>) query;
54  }

◆ root()

Definition at line 41 of file AbstractJpaQuery.java.

41  {
42  if(root == null) {
43  root = new JpaRoot<>(query.from(persistentClass));
44  }
45  return root;
46  }

◆ select() [1/2]

◆ select() [2/2]

abstract AbstractJpaQuery<E> org.turro.jpa.query.AbstractJpaQuery< E >.select ( String...  columns)
abstract

◆ where() [1/2]

AbstractJpaQuery<E> org.turro.jpa.query.AbstractJpaQuery< E >.where ( Expression< Boolean >  restriction)

Definition at line 59 of file AbstractJpaQuery.java.

59  {
60  query.where(restriction);
61  return this;
62  }

◆ where() [2/2]

AbstractJpaQuery<E> org.turro.jpa.query.AbstractJpaQuery< E >.where ( Predicate...  restrictions)

Definition at line 64 of file AbstractJpaQuery.java.

64  {
65  query.where(restrictions);
66  return this;
67  }

Member Data Documentation

◆ persistentClass

final Class<E> org.turro.jpa.query.AbstractJpaQuery< E >.persistentClass
protected

Definition at line 33 of file AbstractJpaQuery.java.

◆ query

AbstractQuery<E> org.turro.jpa.query.AbstractJpaQuery< E >.query
protected

Definition at line 34 of file AbstractJpaQuery.java.

◆ root

Definition at line 35 of file AbstractJpaQuery.java.


The documentation for this class was generated from the following file: