BrightSide Workbench Full Report + Source Code
PracticalWorkStub.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.students.stub;
20 
21 import java.util.Date;
22 import org.turro.reflection.stub.DefaultStub;
23 import org.turro.students.entities.PracticalWork;
24 import org.turro.students.entities.PracticalWorkRole;
25 
30 public class PracticalWorkStub extends DefaultStub {
31 
32  private Long id;
33  private String title;
34  private PracticalWorkRole role;
35  private String type;
36  private Date creation, startDate, endDate;
37  private double hours, price;
38  private String zipCode, relatedURL;
39  private String idContact, idResponsible;
40  private boolean immediate, published;
41  private String wiki;
42 
43  public PracticalWorkStub(PracticalWork practicalWork) {
44  silentlyInitializeValues(practicalWork);
45  }
46 
47  public Long getId() {
48  return id;
49  }
50 
51  public void setId(Long id) {
52  this.id = id;
53  }
54 
55  public String getTitle() {
56  return title;
57  }
58 
59  public void setTitle(String title) {
60  this.title = title;
61  }
62 
64  return role;
65  }
66 
67  public void setRole(PracticalWorkRole role) {
68  this.role = role;
69  }
70 
71  public String getType() {
72  return type;
73  }
74 
75  public void setType(String type) {
76  this.type = type;
77  }
78 
79  public Date getCreation() {
80  return creation;
81  }
82 
83  public void setCreation(Date creation) {
84  this.creation = creation;
85  }
86 
87  public Date getStartDate() {
88  return startDate;
89  }
90 
91  public void setStartDate(Date startDate) {
92  this.startDate = startDate;
93  }
94 
95  public Date getEndDate() {
96  return endDate;
97  }
98 
99  public void setEndDate(Date endDate) {
100  this.endDate = endDate;
101  }
102 
103  public double getHours() {
104  return hours;
105  }
106 
107  public void setHours(double hours) {
108  this.hours = hours;
109  }
110 
111  public double getPrice() {
112  return price;
113  }
114 
115  public void setPrice(double price) {
116  this.price = price;
117  }
118 
119  public String getZipCode() {
120  return zipCode;
121  }
122 
123  public void setZipCode(String zipCode) {
124  this.zipCode = zipCode;
125  }
126 
127  public String getRelatedURL() {
128  return relatedURL;
129  }
130 
131  public void setRelatedURL(String relatedURL) {
132  this.relatedURL = relatedURL;
133  }
134 
135  public String getIdContact() {
136  return idContact;
137  }
138 
139  public void setIdContact(String idContact) {
140  this.idContact = idContact;
141  }
142 
143  public String getIdResponsible() {
144  return idResponsible;
145  }
146 
147  public void setIdResponsible(String idResponsible) {
148  this.idResponsible = idResponsible;
149  }
150 
151  public boolean isImmediate() {
152  return immediate;
153  }
154 
155  public void setImmediate(boolean immediate) {
156  this.immediate = immediate;
157  }
158 
159  public boolean isPublished() {
160  return published;
161  }
162 
163  public void setPublished(boolean published) {
164  this.published = published;
165  }
166 
167  public String getWiki() {
168  return wiki;
169  }
170 
171  public void setWiki(String wiki) {
172  this.wiki = wiki;
173  }
174 
175 }
PracticalWorkStub(PracticalWork practicalWork)