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

Public Member Functions

long getId ()
 
void setId (long id)
 
Contract getContract ()
 
void setContract (Contract contract)
 
Product getProduct ()
 
void setProduct (Product product)
 
String getConcept ()
 
void setConcept (String concept)
 
double getQuantity ()
 
void setQuantity (double quantity)
 
double getPrice ()
 
void setPrice (double price)
 
Object entityId ()
 
boolean isEmpty ()
 
String getProductString ()
 
double getFinalPrice ()
 
- 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 35 of file Contracted.java.

Member Function Documentation

◆ entityId()

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

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 103 of file Contracted.java.

103  {
104  return id;
105  }

◆ getConcept()

String org.turro.financials.entity.Contracted.getConcept ( )

Definition at line 76 of file Contracted.java.

76  {
77  return concept;
78  }

◆ getContract()

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

Definition at line 60 of file Contracted.java.

60  {
61  return contract;
62  }

◆ getFinalPrice()

double org.turro.financials.entity.Contracted.getFinalPrice ( )

Definition at line 118 of file Contracted.java.

118  {
119  return price != 0.0 ? price : (product != null ? product.getPrice() : 0.0);
120  }

◆ getId()

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

Definition at line 52 of file Contracted.java.

52  {
53  return id;
54  }

◆ getPrice()

double org.turro.financials.entity.Contracted.getPrice ( )

Definition at line 92 of file Contracted.java.

92  {
93  return price;
94  }

◆ getProduct()

Product org.turro.financials.entity.Contracted.getProduct ( )

Definition at line 68 of file Contracted.java.

68  {
69  return product;
70  }

◆ getProductString()

String org.turro.financials.entity.Contracted.getProductString ( )

Definition at line 114 of file Contracted.java.

114  {
115  return product != null ? product.getProductString() : "";
116  }

◆ getQuantity()

double org.turro.financials.entity.Contracted.getQuantity ( )

Definition at line 84 of file Contracted.java.

84  {
85  return quantity;
86  }

◆ isEmpty()

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

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 108 of file Contracted.java.

108  {
109  return product == null && Strings.isBlank(concept);
110  }
Here is the caller graph for this function:

◆ setConcept()

void org.turro.financials.entity.Contracted.setConcept ( String  concept)

Definition at line 80 of file Contracted.java.

80  {
81  this.concept = concept;
82  }

◆ setContract()

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

Definition at line 64 of file Contracted.java.

64  {
65  this.contract = contract;
66  }
Here is the caller graph for this function:

◆ setId()

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

Definition at line 56 of file Contracted.java.

56  {
57  this.id = id;
58  }

◆ setPrice()

void org.turro.financials.entity.Contracted.setPrice ( double  price)

Definition at line 96 of file Contracted.java.

96  {
97  this.price = price;
98  }

◆ setProduct()

void org.turro.financials.entity.Contracted.setProduct ( Product  product)

Definition at line 72 of file Contracted.java.

72  {
73  this.product = product;
74  }

◆ setQuantity()

void org.turro.financials.entity.Contracted.setQuantity ( double  quantity)

Definition at line 88 of file Contracted.java.

88  {
89  this.quantity = quantity;
90  }
Here is the caller graph for this function:

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