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

Public Member Functions

void update ()
 
void deleteUsuals ()
 
void updateDocument (Document doc)
 

Detailed Description

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

Definition at line 33 of file UsualUpdate.java.

Member Function Documentation

◆ deleteUsuals()

void org.turro.financials.usual.UsualUpdate.deleteUsuals ( )

Definition at line 44 of file UsualUpdate.java.

44  {
45  UsualUsages.clearUsuals("dc-");
46  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update()

void org.turro.financials.usual.UsualUpdate.update ( )

Implements org.turro.usual.IUsualUpdate.

Definition at line 36 of file UsualUpdate.java.

36  {
37  Dao dao = new FinancialsPU();
38  deleteUsuals();
39  for(Document doc : (List<Document>) dao.getResultList("select doc from Document as doc")) {
40  updateDocument(doc);
41  }
42  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateDocument()

void org.turro.financials.usual.UsualUpdate.updateDocument ( Document  doc)

Definition at line 48 of file UsualUpdate.java.

48  {
49  for(DocumentLine l : doc.getDocumentLines()) {
50  if(!l.isEmpty() && l.getStore() != null) {
51  UsualUsages.addUsage(doc.getUsualPath() + "st:" + l.getStore().getId());
52  UsualUsages.addUsage(doc.getUsualPath() + "cp:" + l.getConcept());
53  }
54  }
55  for(DocumentRelation dr : doc.getDescendants()) {
56  for(DocumentLine l : dr.getDescendant().getDocumentLines()) {
57  if(!l.isEmpty() && l.getStore() != null) {
58  UsualUsages.addUsage(doc.getUsualPath() + "df:" + l.getDocument().getDocumentDefinition().getId());
59  }
60  }
61  }
62  }
Here is the call graph for this function:
Here is the caller graph for this function:

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