BrightSide Workbench Full Report + Source Code
RegisterEntryStub.java
Go to the documentation of this file.
1 /*
2  * TurrĂ³ i Cutiller Foundation. License notice.
3  * Copyright (C) 2022 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 package org.turro.financials.stub;
20 
21 import org.turro.financials.entity.RegisterEntry;
22 import org.turro.reflection.stub.DefaultStub;
23 
28 public class RegisterEntryStub extends DefaultStub {
29 
30  private long entryOrder;
31  private AccountStub account;
32  private String concept;
33  private String path;
34  private double debit;
35  private double credit;
36  private boolean approved;
37  private boolean conciliated;
38 
39  public RegisterEntryStub(RegisterEntry registerEntry) {
40  silentlyInitializeValues(registerEntry);
41  }
42 
43  public long getEntryOrder() {
44  return entryOrder;
45  }
46 
47  public void setEntryOrder(long entryOrder) {
48  this.entryOrder = entryOrder;
49  }
50 
52  return account;
53  }
54 
55  public void setAccount(AccountStub account) {
56  this.account = account;
57  }
58 
59  public String getConcept() {
60  return concept;
61  }
62 
63  public void setConcept(String concept) {
64  this.concept = concept;
65  }
66 
67  public String getPath() {
68  return path;
69  }
70 
71  public void setPath(String path) {
72  this.path = path;
73  }
74 
75  public double getDebit() {
76  return debit;
77  }
78 
79  public void setDebit(double debit) {
80  this.debit = debit;
81  }
82 
83  public double getCredit() {
84  return credit;
85  }
86 
87  public void setCredit(double credit) {
88  this.credit = credit;
89  }
90 
91  public boolean isApproved() {
92  return approved;
93  }
94 
95  public void setApproved(boolean approved) {
96  this.approved = approved;
97  }
98 
99  public boolean isConciliated() {
100  return conciliated;
101  }
102 
103  public void setConciliated(boolean conciliated) {
104  this.conciliated = conciliated;
105  }
106 
107 }
RegisterEntryStub(RegisterEntry registerEntry)