BrightSide Workbench Full Report + Source Code
org.turro.financials.business.CompaniesComposer Class Reference
Inheritance diagram for org.turro.financials.business.CompaniesComposer:
Collaboration diagram for org.turro.financials.business.CompaniesComposer:

Protected Member Functions

String getAttributeName ()
 
Company getEntityInstance (Long id)
 
DaoEntity getWrapperInstance (Component comp)
 
boolean beforeDelete ()
 
boolean shouldBeSaved ()
 
boolean inSaveRole ()
 
boolean inDeleteRole ()
 
boolean hasChanged ()
 
void retrieveEntity ()
 
- Protected Member Functions inherited from org.turro.jpa.composer.EntityComposer< E, ID >
abstract E getEntityInstance (ID id)
 
void doOnSave ()
 
boolean beforeSave ()
 
void afterSave ()
 
void doOnDelete ()
 
void afterDelete ()
 
void doOnChange ()
 
boolean canClose ()
 

Additional Inherited Members

- Public Member Functions inherited from org.turro.jpa.composer.EntityComposer< E, ID >
final void onChange (Event event)
 
final void onSave ()
 
final void onDelete ()
 
Object getEntity ()
 
Object getWrapper ()
 
void doBeforeComposeChildren (Component comp) throws Exception
 
void doFinally () throws Exception
 
void doAfterCompose (Component comp) throws Exception
 
- Protected Attributes inherited from org.turro.jpa.composer.EntityComposer< E, ID >
entity
 
DaoEntity wrapper
 

Detailed Description

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

Definition at line 33 of file CompaniesComposer.java.

Member Function Documentation

◆ beforeDelete()

boolean org.turro.financials.business.CompaniesComposer.beforeDelete ( )
protected

Reimplemented from org.turro.jpa.composer.EntityComposer< E, ID >.

Definition at line 55 of file CompaniesComposer.java.

55  {
56  return false;
57  }

◆ getAttributeName()

String org.turro.financials.business.CompaniesComposer.getAttributeName ( )
protected

Reimplemented from org.turro.jpa.composer.EntityComposer< E, ID >.

Definition at line 36 of file CompaniesComposer.java.

36  {
37  return "company";
38  }

◆ getEntityInstance()

Company org.turro.financials.business.CompaniesComposer.getEntityInstance ( Long  id)
protected

Definition at line 41 of file CompaniesComposer.java.

41  {
42  return new FinancialsPU().find(Company.class, 1L);
43  }

◆ getWrapperInstance()

DaoEntity org.turro.financials.business.CompaniesComposer.getWrapperInstance ( Component  comp)
protected

Reimplemented from org.turro.jpa.composer.EntityComposer< E, ID >.

Definition at line 46 of file CompaniesComposer.java.

46  {
47  CompanyWrapper w = new CompanyWrapper();
48  w.setEntity(entity);
49  Framework.getCurrent().setSelectedLabel(w.getTabLabel());
50  Framework.getCurrent().setSelectedTooltiptext(w.getTooltiptext());
51  return w;
52  }
Here is the call graph for this function:

◆ hasChanged()

boolean org.turro.financials.business.CompaniesComposer.hasChanged ( )
protected

Reimplemented from org.turro.jpa.composer.EntityComposer< E, ID >.

Definition at line 75 of file CompaniesComposer.java.

75  {
76  // avoid xmlseralizer
77  return true;
78  }

◆ inDeleteRole()

boolean org.turro.financials.business.CompaniesComposer.inDeleteRole ( )
protected

Reimplemented from org.turro.jpa.composer.EntityComposer< E, ID >.

Definition at line 70 of file CompaniesComposer.java.

70  {
71  return false;
72  }

◆ inSaveRole()

boolean org.turro.financials.business.CompaniesComposer.inSaveRole ( )
protected

Reimplemented from org.turro.jpa.composer.EntityComposer< E, ID >.

Definition at line 65 of file CompaniesComposer.java.

65  {
66  return Application.getApplication().isInRole("finan-company:edit");
67  }
Here is the call graph for this function:

◆ retrieveEntity()

void org.turro.financials.business.CompaniesComposer.retrieveEntity ( )
protected

Reimplemented from org.turro.jpa.composer.EntityComposer< E, ID >.

Definition at line 81 of file CompaniesComposer.java.

81  {
82  // avoid xmlseralizer and attribute
83  entity = CompanyWrapper.getDefaultCompany(true);
84  }
Here is the call graph for this function:

◆ shouldBeSaved()

boolean org.turro.financials.business.CompaniesComposer.shouldBeSaved ( )
protected

Reimplemented from org.turro.jpa.composer.EntityComposer< E, ID >.

Definition at line 60 of file CompaniesComposer.java.

60  {
61  return true || super.shouldBeSaved();
62  }

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