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

Public Member Functions

long getId ()
 
void setId (long id)
 
Contract getContract ()
 
void setContract (Contract contract)
 
DocumentDefinition getDocumentDefinition ()
 
void setDocumentDefinition (DocumentDefinition documentDefinition)
 
Set< ContractExpirygetContractExpiries ()
 
void setContractExpiries (Set< ContractExpiry > contractExpiries)
 
String getDescription ()
 
void setDescription (String description)
 
Object entityId ()
 
boolean isEmpty ()
 
void clearEmpties ()
 
void generateFlows (Document document)
 
- Public Member Functions inherited from org.turro.jpa.entity.IDaoEntity
default boolean isNew ()
 
default void prepareSave ()
 
default void prepareDelete ()
 
default void removeEmpties ()
 
default Collection< Collection > collections ()
 

Detailed Description

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

Definition at line 41 of file ContractFlow.java.

Member Function Documentation

◆ clearEmpties()

void org.turro.financials.entity.ContractFlow.clearEmpties ( )

Definition at line 113 of file ContractFlow.java.

113  {
114  EntityCollections.entities(getContractExpiries()).removeEmpties();
115  }
Set< ContractExpiry > getContractExpiries()
Here is the call graph for this function:

◆ entityId()

Object org.turro.financials.entity.ContractFlow.entityId ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 102 of file ContractFlow.java.

102  {
103  return id;
104  }

◆ generateFlows()

void org.turro.financials.entity.ContractFlow.generateFlows ( Document  document)

Definition at line 117 of file ContractFlow.java.

117  {
118  double amount = document.getTotalAmount();
119  int count = 1;
120  for(ContractExpiry ce : contractExpiries) {
121  amount = ce.generateFlow(document, amount, count++);
122  }
123  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getContract()

Contract org.turro.financials.entity.ContractFlow.getContract ( )

Definition at line 67 of file ContractFlow.java.

67  {
68  return contract;
69  }
Here is the caller graph for this function:

◆ getContractExpiries()

Set<ContractExpiry> org.turro.financials.entity.ContractFlow.getContractExpiries ( )

Definition at line 83 of file ContractFlow.java.

83  {
84  return contractExpiries;
85  }
Here is the caller graph for this function:

◆ getDescription()

String org.turro.financials.entity.ContractFlow.getDescription ( )

Definition at line 91 of file ContractFlow.java.

91  {
92  return description;
93  }
Here is the caller graph for this function:

◆ getDocumentDefinition()

DocumentDefinition org.turro.financials.entity.ContractFlow.getDocumentDefinition ( )

Definition at line 75 of file ContractFlow.java.

75  {
76  return documentDefinition;
77  }
Here is the caller graph for this function:

◆ getId()

long org.turro.financials.entity.ContractFlow.getId ( )

Definition at line 59 of file ContractFlow.java.

59  {
60  return id;
61  }

◆ isEmpty()

boolean org.turro.financials.entity.ContractFlow.isEmpty ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 107 of file ContractFlow.java.

107  {
108  return Strings.isBlank(description) || contractExpiries.isEmpty();
109  }

◆ setContract()

void org.turro.financials.entity.ContractFlow.setContract ( Contract  contract)

Definition at line 71 of file ContractFlow.java.

71  {
72  this.contract = contract;
73  }

◆ setContractExpiries()

void org.turro.financials.entity.ContractFlow.setContractExpiries ( Set< ContractExpiry contractExpiries)

Definition at line 87 of file ContractFlow.java.

87  {
88  this.contractExpiries = contractExpiries;
89  }

◆ setDescription()

void org.turro.financials.entity.ContractFlow.setDescription ( String  description)

Definition at line 95 of file ContractFlow.java.

95  {
96  this.description = description;
97  }

◆ setDocumentDefinition()

void org.turro.financials.entity.ContractFlow.setDocumentDefinition ( DocumentDefinition  documentDefinition)

Definition at line 79 of file ContractFlow.java.

79  {
80  this.documentDefinition = documentDefinition;
81  }

◆ setId()

void org.turro.financials.entity.ContractFlow.setId ( long  id)

Definition at line 63 of file ContractFlow.java.

63  {
64  this.id = id;
65  }

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