1 package jp.sourceforge.ea2ddl.dao.bsentity;
\r
3 import java.io.Serializable;
\r
6 import org.seasar.dbflute.Entity;
\r
7 import org.seasar.dbflute.dbmeta.DBMeta;
\r
8 import jp.sourceforge.ea2ddl.dao.allcommon.DBMetaInstanceHandler;
\r
11 * The entity of t_tasks that the type is TABLE. <br />
\r
17 * TaskID, Name, TaskType, NOTES, Priority, Status, Owner, StartDate, EndDate, Phase, History, Percent, TotalTime, ActualTime, AssignedTo
\r
34 * [foreign-property]
\r
37 * [referrer-property]
\r
40 * @author DBFlute(AutoGenerator)
\r
42 public abstract class BsTTasks implements Entity, Serializable {
\r
44 // ===================================================================================
\r
47 /** Serial version UID. (Default) */
\r
48 private static final long serialVersionUID = 1L;
\r
50 // ===================================================================================
\r
53 // -----------------------------------------------------
\r
56 /** TaskID: {UQ : NotNull : COUNTER} */
\r
57 protected java.lang.Integer _taskid;
\r
59 /** Name: {VARCHAR(255)} */
\r
60 protected String _name;
\r
62 /** TaskType: {VARCHAR(255)} */
\r
63 protected String _tasktype;
\r
65 /** NOTES: {LONGCHAR(2147483647)} */
\r
66 protected String _notes;
\r
68 /** Priority: {VARCHAR(255)} */
\r
69 protected String _priority;
\r
71 /** Status: {VARCHAR(255)} */
\r
72 protected String _status;
\r
74 /** Owner: {VARCHAR(255)} */
\r
75 protected String _owner;
\r
77 /** StartDate: {DATETIME} */
\r
78 protected java.sql.Timestamp _startdate;
\r
80 /** EndDate: {DATETIME} */
\r
81 protected java.sql.Timestamp _enddate;
\r
83 /** Phase: {VARCHAR(50)} */
\r
84 protected String _phase;
\r
86 /** History: {LONGCHAR(2147483647)} */
\r
87 protected String _history;
\r
89 /** Percent: {INTEGER} */
\r
90 protected java.lang.Integer _percent;
\r
92 /** TotalTime: {INTEGER} */
\r
93 protected java.lang.Integer _totaltime;
\r
95 /** ActualTime: {INTEGER} */
\r
96 protected java.lang.Integer _actualtime;
\r
98 /** AssignedTo: {VARCHAR(100)} */
\r
99 protected String _assignedto;
\r
101 // -----------------------------------------------------
\r
104 /** The attribute of entity modified properties. (for S2Dao) */
\r
105 protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties();
\r
107 // ===================================================================================
\r
110 public String getTableDbName() {
\r
114 public String getTablePropertyName() { // as JavaBeansRule
\r
118 // ===================================================================================
\r
121 public DBMeta getDBMeta() {
\r
122 return DBMetaInstanceHandler.findDBMeta(getTableDbName());
\r
125 // ===================================================================================
\r
126 // Classification Classifying
\r
127 // ==========================
\r
128 // ===================================================================================
\r
129 // Classification Determination
\r
130 // ============================
\r
131 // ===================================================================================
\r
132 // Classification Name/Alias
\r
133 // =========================
\r
134 // ===================================================================================
\r
135 // Foreign Property
\r
136 // ================
\r
137 // ===================================================================================
\r
138 // Referrer Property
\r
139 // =================
\r
140 // ===================================================================================
\r
143 public boolean hasPrimaryKeyValue() {
\r
147 // ===================================================================================
\r
148 // Modified Properties
\r
149 // ===================
\r
150 public Set<String> getModifiedPropertyNames() {
\r
151 return _modifiedProperties.getPropertyNames();
\r
154 protected EntityModifiedProperties newEntityModifiedProperties() {
\r
155 return new EntityModifiedProperties();
\r
158 public void clearModifiedPropertyNames() {
\r
159 _modifiedProperties.clear();
\r
162 public boolean hasModification() {
\r
163 return !_modifiedProperties.isEmpty();
\r
166 // ===================================================================================
\r
170 * If the all-column value of the other is same as this one, returns true.
\r
171 * @param other Other entity. (Nullable)
\r
172 * @return Comparing result. If other is null, returns false.
\r
174 public boolean equals(Object other) {
\r
175 if (other == null || !(other instanceof BsTTasks)) { return false; }
\r
176 final BsTTasks otherEntity = (BsTTasks)other;
\r
177 if (!helpComparingValue(getTaskid(), otherEntity.getTaskid())) { return false; }
\r
178 if (!helpComparingValue(getName(), otherEntity.getName())) { return false; }
\r
179 if (!helpComparingValue(getTasktype(), otherEntity.getTasktype())) { return false; }
\r
180 if (!helpComparingValue(getNotes(), otherEntity.getNotes())) { return false; }
\r
181 if (!helpComparingValue(getPriority(), otherEntity.getPriority())) { return false; }
\r
182 if (!helpComparingValue(getStatus(), otherEntity.getStatus())) { return false; }
\r
183 if (!helpComparingValue(getOwner(), otherEntity.getOwner())) { return false; }
\r
184 if (!helpComparingValue(getStartdate(), otherEntity.getStartdate())) { return false; }
\r
185 if (!helpComparingValue(getEnddate(), otherEntity.getEnddate())) { return false; }
\r
186 if (!helpComparingValue(getPhase(), otherEntity.getPhase())) { return false; }
\r
187 if (!helpComparingValue(getHistory(), otherEntity.getHistory())) { return false; }
\r
188 if (!helpComparingValue(getPercent(), otherEntity.getPercent())) { return false; }
\r
189 if (!helpComparingValue(getTotaltime(), otherEntity.getTotaltime())) { return false; }
\r
190 if (!helpComparingValue(getActualtime(), otherEntity.getActualtime())) { return false; }
\r
191 if (!helpComparingValue(getAssignedto(), otherEntity.getAssignedto())) { return false; }
\r
195 protected boolean helpComparingValue(Object value1, Object value2) {
\r
196 if (value1 == null && value2 == null) { return true; }
\r
197 return value1 != null && value2 != null && value1.equals(value2);
\r
201 * Calculates hash-code from all columns.
\r
202 * @return Hash-code from all-columns.
\r
204 public int hashCode() {
\r
206 if (this.getTaskid() != null) { result = result + this.getTaskid().hashCode(); }
\r
207 if (this.getName() != null) { result = result + this.getName().hashCode(); }
\r
208 if (this.getTasktype() != null) { result = result + this.getTasktype().hashCode(); }
\r
209 if (this.getNotes() != null) { result = result + this.getNotes().hashCode(); }
\r
210 if (this.getPriority() != null) { result = result + this.getPriority().hashCode(); }
\r
211 if (this.getStatus() != null) { result = result + this.getStatus().hashCode(); }
\r
212 if (this.getOwner() != null) { result = result + this.getOwner().hashCode(); }
\r
213 if (this.getStartdate() != null) { result = result + this.getStartdate().hashCode(); }
\r
214 if (this.getEnddate() != null) { result = result + this.getEnddate().hashCode(); }
\r
215 if (this.getPhase() != null) { result = result + this.getPhase().hashCode(); }
\r
216 if (this.getHistory() != null) { result = result + this.getHistory().hashCode(); }
\r
217 if (this.getPercent() != null) { result = result + this.getPercent().hashCode(); }
\r
218 if (this.getTotaltime() != null) { result = result + this.getTotaltime().hashCode(); }
\r
219 if (this.getActualtime() != null) { result = result + this.getActualtime().hashCode(); }
\r
220 if (this.getAssignedto() != null) { result = result + this.getAssignedto().hashCode(); }
\r
225 * @return The view string of columns. (NotNull)
\r
227 public String toString() {
\r
228 String delimiter = ",";
\r
229 StringBuilder sb = new StringBuilder();
\r
230 sb.append(delimiter).append(getTaskid());
\r
231 sb.append(delimiter).append(getName());
\r
232 sb.append(delimiter).append(getTasktype());
\r
233 sb.append(delimiter).append(getNotes());
\r
234 sb.append(delimiter).append(getPriority());
\r
235 sb.append(delimiter).append(getStatus());
\r
236 sb.append(delimiter).append(getOwner());
\r
237 sb.append(delimiter).append(getStartdate());
\r
238 sb.append(delimiter).append(getEnddate());
\r
239 sb.append(delimiter).append(getPhase());
\r
240 sb.append(delimiter).append(getHistory());
\r
241 sb.append(delimiter).append(getPercent());
\r
242 sb.append(delimiter).append(getTotaltime());
\r
243 sb.append(delimiter).append(getActualtime());
\r
244 sb.append(delimiter).append(getAssignedto());
\r
245 if (sb.length() > 0) { sb.delete(0, delimiter.length()); }
\r
246 sb.insert(0, "{").append("}");
\r
247 return sb.toString();
\r
250 // ===================================================================================
\r
254 * TaskID: {UQ : NotNull : COUNTER} <br />
\r
255 * @return The value of the column 'TaskID'. (Nullable)
\r
257 public java.lang.Integer getTaskid() {
\r
262 * TaskID: {UQ : NotNull : COUNTER} <br />
\r
263 * @param taskid The value of the column 'TaskID'. (Nullable)
\r
265 public void setTaskid(java.lang.Integer taskid) {
\r
266 _modifiedProperties.addPropertyName("taskid");
\r
267 this._taskid = taskid;
\r
271 * Name: {VARCHAR(255)} <br />
\r
272 * @return The value of the column 'Name'. (Nullable)
\r
274 public String getName() {
\r
279 * Name: {VARCHAR(255)} <br />
\r
280 * @param name The value of the column 'Name'. (Nullable)
\r
282 public void setName(String name) {
\r
283 _modifiedProperties.addPropertyName("name");
\r
288 * TaskType: {VARCHAR(255)} <br />
\r
289 * @return The value of the column 'TaskType'. (Nullable)
\r
291 public String getTasktype() {
\r
296 * TaskType: {VARCHAR(255)} <br />
\r
297 * @param tasktype The value of the column 'TaskType'. (Nullable)
\r
299 public void setTasktype(String tasktype) {
\r
300 _modifiedProperties.addPropertyName("tasktype");
\r
301 this._tasktype = tasktype;
\r
305 * NOTES: {LONGCHAR(2147483647)} <br />
\r
306 * @return The value of the column 'NOTES'. (Nullable)
\r
308 public String getNotes() {
\r
313 * NOTES: {LONGCHAR(2147483647)} <br />
\r
314 * @param notes The value of the column 'NOTES'. (Nullable)
\r
316 public void setNotes(String notes) {
\r
317 _modifiedProperties.addPropertyName("notes");
\r
318 this._notes = notes;
\r
322 * Priority: {VARCHAR(255)} <br />
\r
323 * @return The value of the column 'Priority'. (Nullable)
\r
325 public String getPriority() {
\r
330 * Priority: {VARCHAR(255)} <br />
\r
331 * @param priority The value of the column 'Priority'. (Nullable)
\r
333 public void setPriority(String priority) {
\r
334 _modifiedProperties.addPropertyName("priority");
\r
335 this._priority = priority;
\r
339 * Status: {VARCHAR(255)} <br />
\r
340 * @return The value of the column 'Status'. (Nullable)
\r
342 public String getStatus() {
\r
347 * Status: {VARCHAR(255)} <br />
\r
348 * @param status The value of the column 'Status'. (Nullable)
\r
350 public void setStatus(String status) {
\r
351 _modifiedProperties.addPropertyName("status");
\r
352 this._status = status;
\r
356 * Owner: {VARCHAR(255)} <br />
\r
357 * @return The value of the column 'Owner'. (Nullable)
\r
359 public String getOwner() {
\r
364 * Owner: {VARCHAR(255)} <br />
\r
365 * @param owner The value of the column 'Owner'. (Nullable)
\r
367 public void setOwner(String owner) {
\r
368 _modifiedProperties.addPropertyName("owner");
\r
369 this._owner = owner;
\r
373 * StartDate: {DATETIME} <br />
\r
374 * @return The value of the column 'StartDate'. (Nullable)
\r
376 public java.sql.Timestamp getStartdate() {
\r
381 * StartDate: {DATETIME} <br />
\r
382 * @param startdate The value of the column 'StartDate'. (Nullable)
\r
384 public void setStartdate(java.sql.Timestamp startdate) {
\r
385 _modifiedProperties.addPropertyName("startdate");
\r
386 this._startdate = startdate;
\r
390 * EndDate: {DATETIME} <br />
\r
391 * @return The value of the column 'EndDate'. (Nullable)
\r
393 public java.sql.Timestamp getEnddate() {
\r
398 * EndDate: {DATETIME} <br />
\r
399 * @param enddate The value of the column 'EndDate'. (Nullable)
\r
401 public void setEnddate(java.sql.Timestamp enddate) {
\r
402 _modifiedProperties.addPropertyName("enddate");
\r
403 this._enddate = enddate;
\r
407 * Phase: {VARCHAR(50)} <br />
\r
408 * @return The value of the column 'Phase'. (Nullable)
\r
410 public String getPhase() {
\r
415 * Phase: {VARCHAR(50)} <br />
\r
416 * @param phase The value of the column 'Phase'. (Nullable)
\r
418 public void setPhase(String phase) {
\r
419 _modifiedProperties.addPropertyName("phase");
\r
420 this._phase = phase;
\r
424 * History: {LONGCHAR(2147483647)} <br />
\r
425 * @return The value of the column 'History'. (Nullable)
\r
427 public String getHistory() {
\r
432 * History: {LONGCHAR(2147483647)} <br />
\r
433 * @param history The value of the column 'History'. (Nullable)
\r
435 public void setHistory(String history) {
\r
436 _modifiedProperties.addPropertyName("history");
\r
437 this._history = history;
\r
441 * Percent: {INTEGER} <br />
\r
442 * @return The value of the column 'Percent'. (Nullable)
\r
444 public java.lang.Integer getPercent() {
\r
449 * Percent: {INTEGER} <br />
\r
450 * @param percent The value of the column 'Percent'. (Nullable)
\r
452 public void setPercent(java.lang.Integer percent) {
\r
453 _modifiedProperties.addPropertyName("percent");
\r
454 this._percent = percent;
\r
458 * TotalTime: {INTEGER} <br />
\r
459 * @return The value of the column 'TotalTime'. (Nullable)
\r
461 public java.lang.Integer getTotaltime() {
\r
466 * TotalTime: {INTEGER} <br />
\r
467 * @param totaltime The value of the column 'TotalTime'. (Nullable)
\r
469 public void setTotaltime(java.lang.Integer totaltime) {
\r
470 _modifiedProperties.addPropertyName("totaltime");
\r
471 this._totaltime = totaltime;
\r
475 * ActualTime: {INTEGER} <br />
\r
476 * @return The value of the column 'ActualTime'. (Nullable)
\r
478 public java.lang.Integer getActualtime() {
\r
479 return _actualtime;
\r
483 * ActualTime: {INTEGER} <br />
\r
484 * @param actualtime The value of the column 'ActualTime'. (Nullable)
\r
486 public void setActualtime(java.lang.Integer actualtime) {
\r
487 _modifiedProperties.addPropertyName("actualtime");
\r
488 this._actualtime = actualtime;
\r
492 * AssignedTo: {VARCHAR(100)} <br />
\r
493 * @return The value of the column 'AssignedTo'. (Nullable)
\r
495 public String getAssignedto() {
\r
496 return _assignedto;
\r
500 * AssignedTo: {VARCHAR(100)} <br />
\r
501 * @param assignedto The value of the column 'AssignedTo'. (Nullable)
\r
503 public void setAssignedto(String assignedto) {
\r
504 _modifiedProperties.addPropertyName("assignedto");
\r
505 this._assignedto = assignedto;
\r