1 package jp.sourceforge.ea2ddl.dao.bsentity;
\r
5 import jp.sourceforge.ea2ddl.dao.allcommon.Entity;
\r
6 import jp.sourceforge.ea2ddl.dao.allcommon.dbmeta.DBMeta;
\r
7 import jp.sourceforge.ea2ddl.dao.allcommon.dbmeta.DBMetaInstanceHandler;
\r
10 * The entity of t_tasks(TABLE).
\r
16 * TaskID, Name, TaskType, NOTES, Priority, Status, Owner, StartDate, EndDate, Phase, History, Percent, TotalTime, ActualTime, AssignedTo
\r
33 * [foreign-property]
\r
36 * [referrer-property]
\r
39 * @author DBFlute(AutoGenerator)
\r
41 @SuppressWarnings("unchecked")
\r
42 public abstract class BsTTasks implements Entity, java.io.Serializable {
\r
44 // ===================================================================================
\r
47 /** Serial version UID. (Default) */
\r
48 private static final long serialVersionUID = 1L;
\r
50 /** TABLE-Annotation for S2Dao. The value is t_tasks. */
\r
51 public static final String TABLE = "t_tasks";
\r
54 // ===================================================================================
\r
57 // -----------------------------------------------------
\r
60 /** The attribute of the column 'TaskID'. {UQ : COUNTER : NotNull} */
\r
61 protected java.lang.Integer _taskid;
\r
63 /** The attribute of the column 'Name'. {VARCHAR(255)} */
\r
64 protected String _name;
\r
66 /** The attribute of the column 'TaskType'. {VARCHAR(255)} */
\r
67 protected String _tasktype;
\r
69 /** The attribute of the column 'NOTES'. {LONGCHAR(2147483647)} */
\r
70 protected String _notes;
\r
72 /** The attribute of the column 'Priority'. {VARCHAR(255)} */
\r
73 protected String _priority;
\r
75 /** The attribute of the column 'Status'. {VARCHAR(255)} */
\r
76 protected String _status;
\r
78 /** The attribute of the column 'Owner'. {VARCHAR(255)} */
\r
79 protected String _owner;
\r
81 /** The attribute of the column 'StartDate'. {DATETIME} */
\r
82 protected java.sql.Timestamp _startdate;
\r
84 /** The attribute of the column 'EndDate'. {DATETIME} */
\r
85 protected java.sql.Timestamp _enddate;
\r
87 /** The attribute of the column 'Phase'. {VARCHAR(50)} */
\r
88 protected String _phase;
\r
90 /** The attribute of the column 'History'. {LONGCHAR(2147483647)} */
\r
91 protected String _history;
\r
93 /** The attribute of the column 'Percent'. {INTEGER} */
\r
94 protected java.lang.Integer _percent;
\r
96 /** The attribute of the column 'TotalTime'. {INTEGER} */
\r
97 protected java.lang.Integer _totaltime;
\r
99 /** The attribute of the column 'ActualTime'. {INTEGER} */
\r
100 protected java.lang.Integer _actualtime;
\r
102 /** The attribute of the column 'AssignedTo'. {VARCHAR(100)} */
\r
103 protected String _assignedto;
\r
105 // -----------------------------------------------------
\r
108 /** The attribute of entity modified properties. (for S2Dao) */
\r
109 protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties();
\r
111 // ===================================================================================
\r
114 public BsTTasks() {
\r
117 // ===================================================================================
\r
120 public String getTableDbName() {
\r
124 public String getTablePropertyName() {// as JavaBeansRule
\r
128 // ===================================================================================
\r
131 public DBMeta getDBMeta() {
\r
132 return DBMetaInstanceHandler.findDBMeta(getTableDbName());
\r
135 // ===================================================================================
\r
136 // Classification Classifying
\r
137 // ==========================
\r
138 // ===================================================================================
\r
139 // Classification Determination
\r
140 // ============================
\r
141 // ===================================================================================
\r
142 // Classification Name/Alias
\r
143 // =========================
\r
144 // ===================================================================================
\r
145 // Foreign Property
\r
146 // ================
\r
147 // ===================================================================================
\r
148 // Referrer Property
\r
149 // =================
\r
151 // ===================================================================================
\r
154 public boolean hasPrimaryKeyValue() {
\r
158 // ===================================================================================
\r
159 // Modified Properties
\r
160 // ===================
\r
161 public Set<String> getModifiedPropertyNames() {
\r
162 return _modifiedProperties.getPropertyNames();
\r
165 protected EntityModifiedProperties newEntityModifiedProperties() {
\r
166 return new EntityModifiedProperties();
\r
169 public void clearModifiedPropertyNames() {
\r
170 _modifiedProperties.clear();
\r
173 public boolean hasModification() {
\r
174 return !_modifiedProperties.isEmpty();
\r
177 // ===================================================================================
\r
181 * If the all-column value of the other is same as this one, returns true.
\r
182 * @param other Other entity. (Nullable)
\r
183 * @return Comparing result. If other is null, returns false.
\r
185 public boolean equals(Object other) {
\r
186 if (other == null || !(other instanceof BsTTasks)) { return false; }
\r
187 final BsTTasks otherEntity = (BsTTasks)other;
\r
188 if (!helpComparingValue(getTaskid(), otherEntity.getTaskid())) { return false; }
\r
189 if (!helpComparingValue(getName(), otherEntity.getName())) { return false; }
\r
190 if (!helpComparingValue(getTasktype(), otherEntity.getTasktype())) { return false; }
\r
191 if (!helpComparingValue(getNotes(), otherEntity.getNotes())) { return false; }
\r
192 if (!helpComparingValue(getPriority(), otherEntity.getPriority())) { return false; }
\r
193 if (!helpComparingValue(getStatus(), otherEntity.getStatus())) { return false; }
\r
194 if (!helpComparingValue(getOwner(), otherEntity.getOwner())) { return false; }
\r
195 if (!helpComparingValue(getStartdate(), otherEntity.getStartdate())) { return false; }
\r
196 if (!helpComparingValue(getEnddate(), otherEntity.getEnddate())) { return false; }
\r
197 if (!helpComparingValue(getPhase(), otherEntity.getPhase())) { return false; }
\r
198 if (!helpComparingValue(getHistory(), otherEntity.getHistory())) { return false; }
\r
199 if (!helpComparingValue(getPercent(), otherEntity.getPercent())) { return false; }
\r
200 if (!helpComparingValue(getTotaltime(), otherEntity.getTotaltime())) { return false; }
\r
201 if (!helpComparingValue(getActualtime(), otherEntity.getActualtime())) { return false; }
\r
202 if (!helpComparingValue(getAssignedto(), otherEntity.getAssignedto())) { return false; }
\r
206 protected boolean helpComparingValue(Object value1, Object value2) {
\r
207 if (value1 == null && value2 == null) { return true; }
\r
208 return value1 != null && value2 != null && value1.equals(value2);
\r
212 * Calculates hash-code from all columns.
\r
213 * @return Hash-code from all-columns.
\r
215 public int hashCode() {
\r
217 if (this.getTaskid() != null) { result = result + this.getTaskid().hashCode(); }
\r
218 if (this.getName() != null) { result = result + this.getName().hashCode(); }
\r
219 if (this.getTasktype() != null) { result = result + this.getTasktype().hashCode(); }
\r
220 if (this.getNotes() != null) { result = result + this.getNotes().hashCode(); }
\r
221 if (this.getPriority() != null) { result = result + this.getPriority().hashCode(); }
\r
222 if (this.getStatus() != null) { result = result + this.getStatus().hashCode(); }
\r
223 if (this.getOwner() != null) { result = result + this.getOwner().hashCode(); }
\r
224 if (this.getStartdate() != null) { result = result + this.getStartdate().hashCode(); }
\r
225 if (this.getEnddate() != null) { result = result + this.getEnddate().hashCode(); }
\r
226 if (this.getPhase() != null) { result = result + this.getPhase().hashCode(); }
\r
227 if (this.getHistory() != null) { result = result + this.getHistory().hashCode(); }
\r
228 if (this.getPercent() != null) { result = result + this.getPercent().hashCode(); }
\r
229 if (this.getTotaltime() != null) { result = result + this.getTotaltime().hashCode(); }
\r
230 if (this.getActualtime() != null) { result = result + this.getActualtime().hashCode(); }
\r
231 if (this.getAssignedto() != null) { result = result + this.getAssignedto().hashCode(); }
\r
236 * @return The view string of columns. (NotNull)
\r
238 public String toString() {
\r
239 String delimiter = ",";
\r
240 StringBuilder sb = new StringBuilder();
\r
241 sb.append(delimiter).append(getTaskid());
\r
242 sb.append(delimiter).append(getName());
\r
243 sb.append(delimiter).append(getTasktype());
\r
244 sb.append(delimiter).append(getNotes());
\r
245 sb.append(delimiter).append(getPriority());
\r
246 sb.append(delimiter).append(getStatus());
\r
247 sb.append(delimiter).append(getOwner());
\r
248 sb.append(delimiter).append(getStartdate());
\r
249 sb.append(delimiter).append(getEnddate());
\r
250 sb.append(delimiter).append(getPhase());
\r
251 sb.append(delimiter).append(getHistory());
\r
252 sb.append(delimiter).append(getPercent());
\r
253 sb.append(delimiter).append(getTotaltime());
\r
254 sb.append(delimiter).append(getActualtime());
\r
255 sb.append(delimiter).append(getAssignedto());
\r
256 if (sb.length() > 0) { sb.delete(0, delimiter.length()); }
\r
257 sb.insert(0, "{").append("}");
\r
258 return sb.toString();
\r
261 // ===================================================================================
\r
265 /** The column annotation for S2Dao. {UQ : COUNTER : NotNull} */
\r
266 public static final String taskid_COLUMN = "TaskID";
\r
269 * Get the value of the column 'TaskID'. <br />
\r
270 * {UQ : COUNTER : NotNull}
\r
271 * @return The value of the column 'TaskID'. (Nullable)
\r
273 public java.lang.Integer getTaskid() {
\r
278 * Set the value of the column 'TaskID'. <br />
\r
279 * {UQ : COUNTER : NotNull}
\r
280 * @param taskid The value of the column 'TaskID'. (Nullable)
\r
282 public void setTaskid(java.lang.Integer taskid) {
\r
283 _modifiedProperties.addPropertyName("taskid");
\r
284 this._taskid = taskid;
\r
287 /** The column annotation for S2Dao. {VARCHAR(255)} */
\r
288 public static final String name_COLUMN = "Name";
\r
291 * Get the value of the column 'Name'. <br />
\r
293 * @return The value of the column 'Name'. (Nullable)
\r
295 public String getName() {
\r
300 * Set the value of the column 'Name'. <br />
\r
302 * @param name The value of the column 'Name'. (Nullable)
\r
304 public void setName(String name) {
\r
305 _modifiedProperties.addPropertyName("name");
\r
309 /** The column annotation for S2Dao. {VARCHAR(255)} */
\r
310 public static final String tasktype_COLUMN = "TaskType";
\r
313 * Get the value of the column 'TaskType'. <br />
\r
315 * @return The value of the column 'TaskType'. (Nullable)
\r
317 public String getTasktype() {
\r
322 * Set the value of the column 'TaskType'. <br />
\r
324 * @param tasktype The value of the column 'TaskType'. (Nullable)
\r
326 public void setTasktype(String tasktype) {
\r
327 _modifiedProperties.addPropertyName("tasktype");
\r
328 this._tasktype = tasktype;
\r
331 /** The column annotation for S2Dao. {LONGCHAR(2147483647)} */
\r
332 public static final String notes_COLUMN = "NOTES";
\r
335 * Get the value of the column 'NOTES'. <br />
\r
336 * {LONGCHAR(2147483647)}
\r
337 * @return The value of the column 'NOTES'. (Nullable)
\r
339 public String getNotes() {
\r
344 * Set the value of the column 'NOTES'. <br />
\r
345 * {LONGCHAR(2147483647)}
\r
346 * @param notes The value of the column 'NOTES'. (Nullable)
\r
348 public void setNotes(String notes) {
\r
349 _modifiedProperties.addPropertyName("notes");
\r
350 this._notes = notes;
\r
353 /** The column annotation for S2Dao. {VARCHAR(255)} */
\r
354 public static final String priority_COLUMN = "Priority";
\r
357 * Get the value of the column 'Priority'. <br />
\r
359 * @return The value of the column 'Priority'. (Nullable)
\r
361 public String getPriority() {
\r
366 * Set the value of the column 'Priority'. <br />
\r
368 * @param priority The value of the column 'Priority'. (Nullable)
\r
370 public void setPriority(String priority) {
\r
371 _modifiedProperties.addPropertyName("priority");
\r
372 this._priority = priority;
\r
375 /** The column annotation for S2Dao. {VARCHAR(255)} */
\r
376 public static final String status_COLUMN = "Status";
\r
379 * Get the value of the column 'Status'. <br />
\r
381 * @return The value of the column 'Status'. (Nullable)
\r
383 public String getStatus() {
\r
388 * Set the value of the column 'Status'. <br />
\r
390 * @param status The value of the column 'Status'. (Nullable)
\r
392 public void setStatus(String status) {
\r
393 _modifiedProperties.addPropertyName("status");
\r
394 this._status = status;
\r
397 /** The column annotation for S2Dao. {VARCHAR(255)} */
\r
398 public static final String owner_COLUMN = "Owner";
\r
401 * Get the value of the column 'Owner'. <br />
\r
403 * @return The value of the column 'Owner'. (Nullable)
\r
405 public String getOwner() {
\r
410 * Set the value of the column 'Owner'. <br />
\r
412 * @param owner The value of the column 'Owner'. (Nullable)
\r
414 public void setOwner(String owner) {
\r
415 _modifiedProperties.addPropertyName("owner");
\r
416 this._owner = owner;
\r
419 /** The column annotation for S2Dao. {DATETIME} */
\r
420 public static final String startdate_COLUMN = "StartDate";
\r
423 * Get the value of the column 'StartDate'. <br />
\r
425 * @return The value of the column 'StartDate'. (Nullable)
\r
427 public java.sql.Timestamp getStartdate() {
\r
432 * Set the value of the column 'StartDate'. <br />
\r
434 * @param startdate The value of the column 'StartDate'. (Nullable)
\r
436 public void setStartdate(java.sql.Timestamp startdate) {
\r
437 _modifiedProperties.addPropertyName("startdate");
\r
438 this._startdate = startdate;
\r
441 /** The column annotation for S2Dao. {DATETIME} */
\r
442 public static final String enddate_COLUMN = "EndDate";
\r
445 * Get the value of the column 'EndDate'. <br />
\r
447 * @return The value of the column 'EndDate'. (Nullable)
\r
449 public java.sql.Timestamp getEnddate() {
\r
454 * Set the value of the column 'EndDate'. <br />
\r
456 * @param enddate The value of the column 'EndDate'. (Nullable)
\r
458 public void setEnddate(java.sql.Timestamp enddate) {
\r
459 _modifiedProperties.addPropertyName("enddate");
\r
460 this._enddate = enddate;
\r
463 /** The column annotation for S2Dao. {VARCHAR(50)} */
\r
464 public static final String phase_COLUMN = "Phase";
\r
467 * Get the value of the column 'Phase'. <br />
\r
469 * @return The value of the column 'Phase'. (Nullable)
\r
471 public String getPhase() {
\r
476 * Set the value of the column 'Phase'. <br />
\r
478 * @param phase The value of the column 'Phase'. (Nullable)
\r
480 public void setPhase(String phase) {
\r
481 _modifiedProperties.addPropertyName("phase");
\r
482 this._phase = phase;
\r
485 /** The column annotation for S2Dao. {LONGCHAR(2147483647)} */
\r
486 public static final String history_COLUMN = "History";
\r
489 * Get the value of the column 'History'. <br />
\r
490 * {LONGCHAR(2147483647)}
\r
491 * @return The value of the column 'History'. (Nullable)
\r
493 public String getHistory() {
\r
498 * Set the value of the column 'History'. <br />
\r
499 * {LONGCHAR(2147483647)}
\r
500 * @param history The value of the column 'History'. (Nullable)
\r
502 public void setHistory(String history) {
\r
503 _modifiedProperties.addPropertyName("history");
\r
504 this._history = history;
\r
507 /** The column annotation for S2Dao. {INTEGER} */
\r
508 public static final String percent_COLUMN = "Percent";
\r
511 * Get the value of the column 'Percent'. <br />
\r
513 * @return The value of the column 'Percent'. (Nullable)
\r
515 public java.lang.Integer getPercent() {
\r
520 * Set the value of the column 'Percent'. <br />
\r
522 * @param percent The value of the column 'Percent'. (Nullable)
\r
524 public void setPercent(java.lang.Integer percent) {
\r
525 _modifiedProperties.addPropertyName("percent");
\r
526 this._percent = percent;
\r
529 /** The column annotation for S2Dao. {INTEGER} */
\r
530 public static final String totaltime_COLUMN = "TotalTime";
\r
533 * Get the value of the column 'TotalTime'. <br />
\r
535 * @return The value of the column 'TotalTime'. (Nullable)
\r
537 public java.lang.Integer getTotaltime() {
\r
542 * Set the value of the column 'TotalTime'. <br />
\r
544 * @param totaltime The value of the column 'TotalTime'. (Nullable)
\r
546 public void setTotaltime(java.lang.Integer totaltime) {
\r
547 _modifiedProperties.addPropertyName("totaltime");
\r
548 this._totaltime = totaltime;
\r
551 /** The column annotation for S2Dao. {INTEGER} */
\r
552 public static final String actualtime_COLUMN = "ActualTime";
\r
555 * Get the value of the column 'ActualTime'. <br />
\r
557 * @return The value of the column 'ActualTime'. (Nullable)
\r
559 public java.lang.Integer getActualtime() {
\r
560 return _actualtime;
\r
564 * Set the value of the column 'ActualTime'. <br />
\r
566 * @param actualtime The value of the column 'ActualTime'. (Nullable)
\r
568 public void setActualtime(java.lang.Integer actualtime) {
\r
569 _modifiedProperties.addPropertyName("actualtime");
\r
570 this._actualtime = actualtime;
\r
573 /** The column annotation for S2Dao. {VARCHAR(100)} */
\r
574 public static final String assignedto_COLUMN = "AssignedTo";
\r
577 * Get the value of the column 'AssignedTo'. <br />
\r
579 * @return The value of the column 'AssignedTo'. (Nullable)
\r
581 public String getAssignedto() {
\r
582 return _assignedto;
\r
586 * Set the value of the column 'AssignedTo'. <br />
\r
588 * @param assignedto The value of the column 'AssignedTo'. (Nullable)
\r
590 public void setAssignedto(String assignedto) {
\r
591 _modifiedProperties.addPropertyName("assignedto");
\r
592 this._assignedto = assignedto;
\r