BrightSide Workbench Full Report + Source Code
org.turro.activity.AttendeeParticipationCatcher Class Reference
Inheritance diagram for org.turro.activity.AttendeeParticipationCatcher:
Collaboration diagram for org.turro.activity.AttendeeParticipationCatcher:

Public Member Functions

String getDescription ()
 
Dao createDao ()
 
WhereClause getQuery (Path entityPath)
 
boolean getCanDelete (Attendee v)
 
String getDescription (Attendee v)
 
void doDelete (Attendee v)
 
void doShow (Attendee v)
 
void onChange (Object entity)
 
void onDelete (Object entity)
 
boolean getCanChangeFor (Attendee v)
 
void doChangeFor (Attendee v, Path toPath)
 
Object getReferringEntity (Attendee v)
 
- Public Member Functions inherited from org.turro.activity.JpaParticipationCatcher< Attendee >
List< IParticipationgetParticipations (Path entityPath)
 
Dao getDao ()
 
abstract Dao createDao ()
 
abstract WhereClause getQuery (Path entityPath)
 
abstract boolean getCanDelete (V v)
 
abstract boolean getCanChangeFor (V v)
 
abstract String getDescription (V v)
 
abstract void doDelete (V v)
 
abstract void doShow (V v)
 
abstract void doChangeFor (V v, Path toPath)
 
abstract Object getReferringEntity (V v)
 

Detailed Description

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

Definition at line 32 of file AttendeeParticipationCatcher.java.

Member Function Documentation

◆ createDao()

Dao org.turro.activity.AttendeeParticipationCatcher.createDao ( )

Definition at line 40 of file AttendeeParticipationCatcher.java.

40  {
41  return new ContactsPU();
42  }

◆ doChangeFor()

void org.turro.activity.AttendeeParticipationCatcher.doChangeFor ( Attendee  v,
Path  toPath 
)

Definition at line 93 of file AttendeeParticipationCatcher.java.

93  {
94  // do nothing
95  }

◆ doDelete()

void org.turro.activity.AttendeeParticipationCatcher.doDelete ( Attendee  v)

Definition at line 64 of file AttendeeParticipationCatcher.java.

64  {
65  // Using SQL because has cascading attributes in Convocation
66  WhereClause wc = new WhereClause();
67  wc.addClause("delete from Attendee where id = :id");
68  wc.addNamedValue("id", v.getId());
69  getDao().executeUpdate(wc);
70  }
int executeUpdate(String query)
Definition: Dao.java:463
Here is the call graph for this function:

◆ doShow()

void org.turro.activity.AttendeeParticipationCatcher.doShow ( Attendee  v)

Definition at line 73 of file AttendeeParticipationCatcher.java.

73  {
74  // nothing to show?
75  }

◆ getCanChangeFor()

boolean org.turro.activity.AttendeeParticipationCatcher.getCanChangeFor ( Attendee  v)

Definition at line 88 of file AttendeeParticipationCatcher.java.

88  {
89  return false;
90  }

◆ getCanDelete()

boolean org.turro.activity.AttendeeParticipationCatcher.getCanDelete ( Attendee  v)

Definition at line 54 of file AttendeeParticipationCatcher.java.

54  {
55  return true;
56  }

◆ getDescription() [1/2]

String org.turro.activity.AttendeeParticipationCatcher.getDescription ( )

Definition at line 35 of file AttendeeParticipationCatcher.java.

35  {
36  return "BrightSide Contacts - Attendee";
37  }

◆ getDescription() [2/2]

String org.turro.activity.AttendeeParticipationCatcher.getDescription ( Attendee  v)

Definition at line 59 of file AttendeeParticipationCatcher.java.

59  {
60  return v.getConvocation().getName();
61  }
Here is the call graph for this function:

◆ getQuery()

WhereClause org.turro.activity.AttendeeParticipationCatcher.getQuery ( Path  entityPath)

Definition at line 45 of file AttendeeParticipationCatcher.java.

45  {
46  WhereClause wc = new WhereClause();
47  wc.addClause("select distinct a from Attendee as a");
48  wc.addClause("where a.contact.id = :id");
49  wc.addNamedValue("id", entityPath.getLastNode());
50  return wc;
51  }
Here is the call graph for this function:

◆ getReferringEntity()

Object org.turro.activity.AttendeeParticipationCatcher.getReferringEntity ( Attendee  v)

Definition at line 98 of file AttendeeParticipationCatcher.java.

98  {
99  return v.getConvocation();
100  }
Here is the call graph for this function:

◆ onChange()

void org.turro.activity.AttendeeParticipationCatcher.onChange ( Object  entity)

Definition at line 78 of file AttendeeParticipationCatcher.java.

78  {
79  // do nothing
80  }

◆ onDelete()

void org.turro.activity.AttendeeParticipationCatcher.onDelete ( Object  entity)

Definition at line 83 of file AttendeeParticipationCatcher.java.

83  {
84  // do nothing
85  }

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