BrightSide Workbench Full Report + Source Code
org.turro.dossier.kb.PendingRevisionQuery Class Reference

Public Member Functions

IContact getByParticipant ()
 
List getResultList ()
 
Long getCount ()
 
void archive (long archive)
 

Detailed Description

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

Definition at line 32 of file PendingRevisionQuery.java.

Member Function Documentation

◆ archive()

void org.turro.dossier.kb.PendingRevisionQuery.archive ( long  archive)

Definition at line 73 of file PendingRevisionQuery.java.

73  {
74  WhereClause wc = new WhereClause();
75  wc.addClause("update IssueParticipant as ip");
76  wc.addClause("set ip.pendingRevision = false");
77  if(byParticipant != null && byParticipant.isValid()) {
78  wc.addClause("where ip.idContact = :idContact");
79  wc.addNamedValue("idContact", byParticipant.getId());
80  wc.addClause("and ip.id = :id");
81  wc.addNamedValue("id", archive);
82  Dao dao = new DossierPU();
83  dao.executeUpdate(wc);
84  }
85  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getByParticipant()

IContact org.turro.dossier.kb.PendingRevisionQuery.getByParticipant ( )

Definition at line 36 of file PendingRevisionQuery.java.

36  {
37  return byParticipant;
38  }

◆ getCount()

Long org.turro.dossier.kb.PendingRevisionQuery.getCount ( )

Definition at line 46 of file PendingRevisionQuery.java.

46  {
47  Dao dao = new DossierPU();
48  WhereClause wc = createCriteria(true);
49  return (Long) dao.getSingleResultOrNull(wc);
50  }
Here is the call graph for this function:

◆ getResultList()

List org.turro.dossier.kb.PendingRevisionQuery.getResultList ( )

Definition at line 40 of file PendingRevisionQuery.java.

40  {
41  Dao dao = new DossierPU();
42  WhereClause wc = createCriteria(false);
43  return dao.getResultList(wc);
44  }
Here is the caller graph for this function:

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