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

Public Member Functions

String getDescription ()
 
Dao createDao ()
 
WhereClause getQuery (Path entityPath)
 
boolean getCanDelete (Company v)
 
String getDescription (Company v)
 
void doDelete (Company v)
 
void doShow (Company v)
 
void onChange (Object entity)
 
void onDelete (Object entity)
 
boolean getCanChangeFor (Company v)
 
void doChangeFor (Company v, Path toPath)
 
Object getReferringEntity (Company v)
 
- Public Member Functions inherited from org.turro.activity.JpaParticipationCatcher< Company >
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 33 of file CompanyParticipationCatcher.java.

Member Function Documentation

◆ createDao()

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

Definition at line 41 of file CompanyParticipationCatcher.java.

41  {
42  return new FinancialsPU();
43  }

◆ doChangeFor()

void org.turro.activity.CompanyParticipationCatcher.doChangeFor ( Company  v,
Path  toPath 
)

Definition at line 99 of file CompanyParticipationCatcher.java.

99  {
100  // do nothing
101  }

◆ doDelete()

void org.turro.activity.CompanyParticipationCatcher.doDelete ( Company  v)

Definition at line 68 of file CompanyParticipationCatcher.java.

Here is the call graph for this function:

◆ doShow()

void org.turro.activity.CompanyParticipationCatcher.doShow ( Company  v)

Definition at line 73 of file CompanyParticipationCatcher.java.

73  {
74  throw new UnsupportedOperationException("Not supported yet.");
75  }

◆ getCanChangeFor()

boolean org.turro.activity.CompanyParticipationCatcher.getCanChangeFor ( Company  v)

Definition at line 94 of file CompanyParticipationCatcher.java.

94  {
95  return false;
96  }

◆ getCanDelete()

boolean org.turro.activity.CompanyParticipationCatcher.getCanDelete ( Company  v)

Definition at line 58 of file CompanyParticipationCatcher.java.

58  {
59  return false;
60  }

◆ getDescription() [1/2]

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

Definition at line 36 of file CompanyParticipationCatcher.java.

36  {
37  return "BrightSide Business - " + I_.get("Company");
38  }
Here is the call graph for this function:

◆ getDescription() [2/2]

String org.turro.activity.CompanyParticipationCatcher.getDescription ( Company  v)

Definition at line 63 of file CompanyParticipationCatcher.java.

63  {
64  return v.getName();
65  }
Here is the call graph for this function:

◆ getQuery()

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

Definition at line 46 of file CompanyParticipationCatcher.java.

46  {
47  if(!entityPath.isRoot() && "contact".equals(entityPath.getRoot())) {
48  WhereClause wc = new WhereClause();
49  wc.addClause("select distinct company from Company as company");
50  wc.addClause("where company.idContact = :id");
51  wc.addNamedValue("id", entityPath.getLastNode());
52  return wc;
53  }
54  return null;
55  }
Here is the call graph for this function:

◆ getReferringEntity()

Object org.turro.activity.CompanyParticipationCatcher.getReferringEntity ( Company  v)

Definition at line 104 of file CompanyParticipationCatcher.java.

104  {
105  return v;
106  }

◆ onChange()

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

Definition at line 78 of file CompanyParticipationCatcher.java.

78  {
79  if(entity instanceof IContact) {
80  IContact contact = (IContact) entity;
82  "update Company set name = ? " +
83  "where idContact = ?",
84  new Object[] { contact.getName(), contact.getId() });
85  }
86  }
int executeUpdate(String query)
Definition: Dao.java:463
Here is the call graph for this function:

◆ onDelete()

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

Definition at line 89 of file CompanyParticipationCatcher.java.

89  {
90  // do nothing
91  }

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