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

Public Member Functions

boolean isActive ()
 
void setActive (boolean active)
 
double getCostHour ()
 
void setCostHour (double costHour)
 
long getId ()
 
void setId (long id)
 
long getIdContract ()
 
void setIdContract (long idContract)
 
double getMarketPrice ()
 
void setMarketPrice (double marketPrice)
 
String getName ()
 
void setName (String name)
 
Set< AptitudeDegreegetAptitudeDegrees ()
 
void setAptitudeDegrees (Set< AptitudeDegree > aptitudeDegrees)
 
double getPriceHour ()
 
void setPriceHour (double priceHour)
 
Contract getContract ()
 
void setContract (Contract contract)
 
void prepareForSaving ()
 
boolean isInternal ()
 

Detailed Description

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

Definition at line 31 of file Resource.java.

Member Function Documentation

◆ getAptitudeDegrees()

Set<AptitudeDegree> org.turro.erp.entity.Resource.getAptitudeDegrees ( )

Definition at line 98 of file Resource.java.

98  {
99  return aptitudeDegrees;
100  }
Here is the caller graph for this function:

◆ getContract()

Contract org.turro.erp.entity.Resource.getContract ( )

Helpers

Definition at line 116 of file Resource.java.

116  {
117  return new FinancialsPU().find(Contract.class, idContract);
118  }
Here is the caller graph for this function:

◆ getCostHour()

double org.turro.erp.entity.Resource.getCostHour ( )

Definition at line 58 of file Resource.java.

58  {
59  return costHour;
60  }
Here is the caller graph for this function:

◆ getId()

long org.turro.erp.entity.Resource.getId ( )

Definition at line 66 of file Resource.java.

66  {
67  return id;
68  }

◆ getIdContract()

long org.turro.erp.entity.Resource.getIdContract ( )

Definition at line 74 of file Resource.java.

74  {
75  return idContract;
76  }
Here is the caller graph for this function:

◆ getMarketPrice()

double org.turro.erp.entity.Resource.getMarketPrice ( )

Definition at line 82 of file Resource.java.

82  {
83  return marketPrice;
84  }
Here is the caller graph for this function:

◆ getName()

String org.turro.erp.entity.Resource.getName ( )

Definition at line 90 of file Resource.java.

90  {
91  return name;
92  }
Here is the caller graph for this function:

◆ getPriceHour()

double org.turro.erp.entity.Resource.getPriceHour ( )

Definition at line 106 of file Resource.java.

106  {
107  return priceHour;
108  }
Here is the caller graph for this function:

◆ isActive()

boolean org.turro.erp.entity.Resource.isActive ( )

Definition at line 50 of file Resource.java.

50  {
51  return active;
52  }

◆ isInternal()

boolean org.turro.erp.entity.Resource.isInternal ( )

Definition at line 130 of file Resource.java.

130  {
131  return idContract == 0;
132  }
Here is the caller graph for this function:

◆ prepareForSaving()

void org.turro.erp.entity.Resource.prepareForSaving ( )

Definition at line 124 of file Resource.java.

124  {
125  Contract c = getContract();
126  String s = c == null ? null : c.getIContractor().getName();
127  name = (s == null || name.endsWith(s)) ? name : name + " - " + s;
128  }
Here is the call graph for this function:

◆ setActive()

void org.turro.erp.entity.Resource.setActive ( boolean  active)

Definition at line 54 of file Resource.java.

54  {
55  this.active = active;
56  }

◆ setAptitudeDegrees()

void org.turro.erp.entity.Resource.setAptitudeDegrees ( Set< AptitudeDegree aptitudeDegrees)

Definition at line 102 of file Resource.java.

102  {
103  this.aptitudeDegrees = aptitudeDegrees;
104  }

◆ setContract()

void org.turro.erp.entity.Resource.setContract ( Contract  contract)

Definition at line 120 of file Resource.java.

120  {
121  idContract = contract != null ? contract.getId() : 0L;
122  }
Here is the call graph for this function:

◆ setCostHour()

void org.turro.erp.entity.Resource.setCostHour ( double  costHour)

Definition at line 62 of file Resource.java.

62  {
63  this.costHour = costHour;
64  }

◆ setId()

void org.turro.erp.entity.Resource.setId ( long  id)

Definition at line 70 of file Resource.java.

70  {
71  this.id = id;
72  }

◆ setIdContract()

void org.turro.erp.entity.Resource.setIdContract ( long  idContract)

Definition at line 78 of file Resource.java.

78  {
79  this.idContract = idContract;
80  }

◆ setMarketPrice()

void org.turro.erp.entity.Resource.setMarketPrice ( double  marketPrice)

Definition at line 86 of file Resource.java.

86  {
87  this.marketPrice = marketPrice;
88  }

◆ setName()

void org.turro.erp.entity.Resource.setName ( String  name)

Definition at line 94 of file Resource.java.

94  {
95  this.name = name;
96  }

◆ setPriceHour()

void org.turro.erp.entity.Resource.setPriceHour ( double  priceHour)

Definition at line 110 of file Resource.java.

110  {
111  this.priceHour = priceHour;
112  }

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