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

Public Member Functions

 JpaCriteriaDelete (Class< E > persistentClass, JpaCriteria jpaCriteria)
 
CriteriaDelete< E > delete ()
 
JpaCriteriaDelete< E > where (Expression< Boolean > restriction)
 
JpaCriteriaDelete< E > where (Predicate... restrictions)
 
Predicate getRestriction ()
 
Path field (String fieldName)
 
Selection< E > alias (String name)
 

Protected Attributes

Root< E > root
 

Detailed Description

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

Definition at line 38 of file JpaCriteriaDelete.java.

Constructor & Destructor Documentation

◆ JpaCriteriaDelete()

org.turro.jpa.query.JpaCriteriaDelete< E >.JpaCriteriaDelete ( Class< E >  persistentClass,
JpaCriteria  jpaCriteria 
)

Definition at line 45 of file JpaCriteriaDelete.java.

45  {
46  this.persistentClass = persistentClass;
47  this.jpaCriteria = jpaCriteria;
48  initCriteria();
49  }

Member Function Documentation

◆ alias()

Selection<E> org.turro.jpa.query.JpaCriteriaDelete< E >.alias ( String  name)

Definition at line 81 of file JpaCriteriaDelete.java.

81  {
82  return root.alias(name);
83  }

◆ delete()

CriteriaDelete<E> org.turro.jpa.query.JpaCriteriaDelete< E >.delete ( )

Definition at line 51 of file JpaCriteriaDelete.java.

51  {
52  return criteriaDelete;
53  }

◆ field()

Path org.turro.jpa.query.JpaCriteriaDelete< E >.field ( String  fieldName)

Definition at line 77 of file JpaCriteriaDelete.java.

77  {
78  return root.get(fieldName);
79  }

◆ getRestriction()

Predicate org.turro.jpa.query.JpaCriteriaDelete< E >.getRestriction ( )

Definition at line 71 of file JpaCriteriaDelete.java.

71  {
72  return criteriaDelete.getRestriction();
73  }

◆ where() [1/2]

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

Definition at line 57 of file JpaCriteriaDelete.java.

57  {
58  criteriaDelete.where(restriction);
59  return this;
60  }

◆ where() [2/2]

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

Definition at line 62 of file JpaCriteriaDelete.java.

62  {
63  criteriaDelete.where(restrictions);
64  return this;
65  }

Member Data Documentation

◆ root

Root<E> org.turro.jpa.query.JpaCriteriaDelete< E >.root
protected

Definition at line 43 of file JpaCriteriaDelete.java.


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