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

Public Member Functions

double getDepreciated ()
 
void setDepreciated (double depreciated)
 
LineType getDepreciationLineType ()
 
void setDepreciationLineType (LineType depreciationLineType)
 
Set< FixedAssetDepreciationgetDepreciations ()
 
void setDepreciations (Set< FixedAssetDepreciation > depreciations)
 
Set< DocumentLinegetDocumentLines ()
 
void setDocumentLines (Set< DocumentLine > documentLines)
 
long getId ()
 
void setId (long id)
 
double getInvestment ()
 
void setInvestment (double investment)
 
ContractPreference getInvestmentPreference ()
 
void setInvestmentPreference (ContractPreference investmentPreference)
 
String getName ()
 
void setName (String name)
 
String getNotes ()
 
void setNotes (String notes)
 
Contract getStore ()
 
void setStore (Contract store)
 
boolean isUnsubscribed ()
 
void setUnsubscribed (boolean unsubscribed)
 
RegisterView getView ()
 
void setView (RegisterView view)
 
Object entityId ()
 
boolean isEmpty ()
 
void prepareForSaving ()
 
MappingSet getSerializerMappings ()
 
- 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 34 of file FixedAsset.java.

Member Function Documentation

◆ entityId()

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

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 171 of file FixedAsset.java.

171  {
172  return id;
173  }

◆ getDepreciated()

double org.turro.financials.entity.FixedAsset.getDepreciated ( )

Definition at line 72 of file FixedAsset.java.

72  {
73  return depreciated;
74  }
Here is the caller graph for this function:

◆ getDepreciationLineType()

LineType org.turro.financials.entity.FixedAsset.getDepreciationLineType ( )

Definition at line 80 of file FixedAsset.java.

80  {
81  return depreciationLineType;
82  }

◆ getDepreciations()

Set<FixedAssetDepreciation> org.turro.financials.entity.FixedAsset.getDepreciations ( )

Definition at line 88 of file FixedAsset.java.

88  {
89  return depreciations;
90  }
Here is the caller graph for this function:

◆ getDocumentLines()

Set<DocumentLine> org.turro.financials.entity.FixedAsset.getDocumentLines ( )

Definition at line 96 of file FixedAsset.java.

96  {
97  return documentLines;
98  }
Here is the caller graph for this function:

◆ getId()

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

Definition at line 104 of file FixedAsset.java.

104  {
105  return id;
106  }
Here is the caller graph for this function:

◆ getInvestment()

double org.turro.financials.entity.FixedAsset.getInvestment ( )

Definition at line 112 of file FixedAsset.java.

112  {
113  return investment;
114  }
Here is the caller graph for this function:

◆ getInvestmentPreference()

ContractPreference org.turro.financials.entity.FixedAsset.getInvestmentPreference ( )

Definition at line 120 of file FixedAsset.java.

120  {
121  return investmentPreference;
122  }
Here is the caller graph for this function:

◆ getName()

String org.turro.financials.entity.FixedAsset.getName ( )

Definition at line 128 of file FixedAsset.java.

128  {
129  return name;
130  }

◆ getNotes()

String org.turro.financials.entity.FixedAsset.getNotes ( )

Definition at line 136 of file FixedAsset.java.

136  {
137  return notes;
138  }

◆ getSerializerMappings()

MappingSet org.turro.financials.entity.FixedAsset.getSerializerMappings ( )

Definition at line 191 of file FixedAsset.java.

191  {
192  MappingSet set = new MappingSet();
193  set.addMapping(FixedAsset.class, 1,
194  new String[] { "name", "depreciated", "investment" },
195  new String[] { "depreciations", "investmentPreference",
196  "depreciationLineType", "view", "store", "notes" });
197  set.addMapping(RegisterView.class, 2,
198  new String[] { "id", "name" },
199  null);
200  set.addMapping(ContractPreference.class, 2,
201  new String[] { "id", "name" },
202  null);
203  set.addMapping(Contract.class, 2,
204  new String[] { "id", "name" },
205  null);
206  set.addMapping(FixedAssetDepreciation.class, 2,
207  new String[] { "depreciationDate", "percent", "comment" },
208  new String[] {});
209  set.addMapping(LineType.class, 2,
210  new String[] { "name" },
211  null);
212  return set;
213  }

◆ getStore()

Contract org.turro.financials.entity.FixedAsset.getStore ( )

Definition at line 144 of file FixedAsset.java.

144  {
145  return store;
146  }

◆ getView()

RegisterView org.turro.financials.entity.FixedAsset.getView ( )

Definition at line 160 of file FixedAsset.java.

160  {
161  return view;
162  }

◆ isEmpty()

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

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 176 of file FixedAsset.java.

176  {
177  return Strings.isBlank(name) || view == null || store == null ||
178  investmentPreference == null || depreciationLineType == null;
179  }

◆ isUnsubscribed()

boolean org.turro.financials.entity.FixedAsset.isUnsubscribed ( )

Definition at line 152 of file FixedAsset.java.

152  {
153  return unsubscribed;
154  }

◆ prepareForSaving()

void org.turro.financials.entity.FixedAsset.prepareForSaving ( )

Helpers

Definition at line 183 of file FixedAsset.java.

183  {
184  if(id == 0) {
185  id = IdUtils.getNewLongIdFromLong(new FinancialsPU(), "FixedAsset", "id");
186  }
187  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDepreciated()

void org.turro.financials.entity.FixedAsset.setDepreciated ( double  depreciated)

Definition at line 76 of file FixedAsset.java.

76  {
77  this.depreciated = depreciated;
78  }

◆ setDepreciationLineType()

void org.turro.financials.entity.FixedAsset.setDepreciationLineType ( LineType  depreciationLineType)

Definition at line 84 of file FixedAsset.java.

84  {
85  this.depreciationLineType = depreciationLineType;
86  }

◆ setDepreciations()

void org.turro.financials.entity.FixedAsset.setDepreciations ( Set< FixedAssetDepreciation depreciations)

Definition at line 92 of file FixedAsset.java.

92  {
93  this.depreciations = depreciations;
94  }

◆ setDocumentLines()

void org.turro.financials.entity.FixedAsset.setDocumentLines ( Set< DocumentLine documentLines)

Definition at line 100 of file FixedAsset.java.

100  {
101  this.documentLines = documentLines;
102  }
Here is the caller graph for this function:

◆ setId()

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

Definition at line 108 of file FixedAsset.java.

108  {
109  this.id = id;
110  }

◆ setInvestment()

void org.turro.financials.entity.FixedAsset.setInvestment ( double  investment)

Definition at line 116 of file FixedAsset.java.

116  {
117  this.investment = investment;
118  }

◆ setInvestmentPreference()

void org.turro.financials.entity.FixedAsset.setInvestmentPreference ( ContractPreference  investmentPreference)

Definition at line 124 of file FixedAsset.java.

124  {
125  this.investmentPreference = investmentPreference;
126  }

◆ setName()

void org.turro.financials.entity.FixedAsset.setName ( String  name)

Definition at line 132 of file FixedAsset.java.

132  {
133  this.name = name;
134  }

◆ setNotes()

void org.turro.financials.entity.FixedAsset.setNotes ( String  notes)

Definition at line 140 of file FixedAsset.java.

140  {
141  this.notes = notes;
142  }

◆ setStore()

void org.turro.financials.entity.FixedAsset.setStore ( Contract  store)

Definition at line 148 of file FixedAsset.java.

148  {
149  this.store = store;
150  }

◆ setUnsubscribed()

void org.turro.financials.entity.FixedAsset.setUnsubscribed ( boolean  unsubscribed)

Definition at line 156 of file FixedAsset.java.

156  {
157  this.unsubscribed = unsubscribed;
158  }

◆ setView()

void org.turro.financials.entity.FixedAsset.setView ( RegisterView  view)

Definition at line 164 of file FixedAsset.java.

164  {
165  this.view = view;
166  }

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