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

Public Member Functions

 JpaCriteriaUpdate (Class< E > persistentClass, JpaCriteria jpaCriteria)
 
CriteriaUpdate< E > update ()
 
JpaCriteriaUpdate< E > set (String attributeName, Object value)
 
JpaCriteriaUpdate< E > where (Expression< Boolean > restriction)
 
JpaCriteriaUpdate< 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 39 of file JpaCriteriaUpdate.java.

Constructor & Destructor Documentation

◆ JpaCriteriaUpdate()

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

Definition at line 46 of file JpaCriteriaUpdate.java.

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

Member Function Documentation

◆ alias()

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

Definition at line 107 of file JpaCriteriaUpdate.java.

107  {
108  return root.alias(name);
109  }

◆ field()

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

Definition at line 103 of file JpaCriteriaUpdate.java.

103  {
104  return root.get(fieldName);
105  }
Here is the caller graph for this function:

◆ getRestriction()

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

Definition at line 97 of file JpaCriteriaUpdate.java.

97  {
98  return criteriaUpdate.getRestriction();
99  }

◆ set()

JpaCriteriaUpdate<E> org.turro.jpa.query.JpaCriteriaUpdate< E >.set ( String  attributeName,
Object  value 
)

Definition at line 78 of file JpaCriteriaUpdate.java.

78  {
79  criteriaUpdate.set(attributeName, value);
80  return this;
81  }

◆ update()

CriteriaUpdate<E> org.turro.jpa.query.JpaCriteriaUpdate< E >.update ( )

Definition at line 52 of file JpaCriteriaUpdate.java.

52  {
53  return criteriaUpdate;
54  }

◆ where() [1/2]

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

Definition at line 83 of file JpaCriteriaUpdate.java.

83  {
84  criteriaUpdate.where(restriction);
85  return this;
86  }

◆ where() [2/2]

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

Definition at line 88 of file JpaCriteriaUpdate.java.

88  {
89  criteriaUpdate.where(restrictions);
90  return this;
91  }

Member Data Documentation

◆ root

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

Definition at line 44 of file JpaCriteriaUpdate.java.


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