OSDN Git Service

"https://svn.sourceforge.jp/svnroot/ea2ddl" にプロジェクト "ea2ddl-dao" を共用
[ea2ddl/ea2ddl.git] / ea2ddl-dao / src / main / java / jp / sourceforge / ea2ddl / dao / bsentity / BsTTasks.java
1 package jp.sourceforge.ea2ddl.dao.bsentity;\r
2 \r
3 import java.util.*;\r
4     \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
8 \r
9 /**\r
10  * The entity of t_tasks(TABLE).\r
11  * <pre>\r
12  * [primary-key]\r
13  *     \r
14  * \r
15  * [column]\r
16  *     TaskID, Name, TaskType, NOTES, Priority, Status, Owner, StartDate, EndDate, Phase, History, Percent, TotalTime, ActualTime, AssignedTo\r
17  * \r
18  * [sequence]\r
19  *     \r
20  * \r
21  * [identity]\r
22  *     \r
23  * \r
24  * [version-no]\r
25  *     \r
26  * \r
27  * [foreign-table]\r
28  *     \r
29  * \r
30  * [referrer-table]\r
31  *     \r
32  * \r
33  * [foreign-property]\r
34  *     \r
35  * \r
36  * [referrer-property]\r
37  *     \r
38  * </pre>\r
39  * @author DBFlute(AutoGenerator)\r
40  */
41 @SuppressWarnings("unchecked")\r
42 public abstract class BsTTasks implements Entity, java.io.Serializable {\r
43 \r
44     // ===================================================================================\r
45     //                                                                          Definition\r
46     //                                                                          ==========\r
47     /** Serial version UID. (Default) */\r
48     private static final long serialVersionUID = 1L;\r
49 \r
50     /** TABLE-Annotation for S2Dao. The value is t_tasks. */\r
51     public static final String TABLE = "t_tasks";\r
52 \r
53 \r
54     // ===================================================================================\r
55     //                                                                           Attribute\r
56     //                                                                           =========\r
57     // -----------------------------------------------------\r
58     //                                                Column\r
59     //                                                ------\r
60     /** The attribute of the column 'TaskID'. {UQ : COUNTER : NotNull} */\r
61     protected java.lang.Integer _taskid;\r
62 \r
63     /** The attribute of the column 'Name'. {VARCHAR(255)} */\r
64     protected String _name;\r
65 \r
66     /** The attribute of the column 'TaskType'. {VARCHAR(255)} */\r
67     protected String _tasktype;\r
68 \r
69     /** The attribute of the column 'NOTES'. {LONGCHAR(2147483647)} */\r
70     protected String _notes;\r
71 \r
72     /** The attribute of the column 'Priority'. {VARCHAR(255)} */\r
73     protected String _priority;\r
74 \r
75     /** The attribute of the column 'Status'. {VARCHAR(255)} */\r
76     protected String _status;\r
77 \r
78     /** The attribute of the column 'Owner'. {VARCHAR(255)} */\r
79     protected String _owner;\r
80 \r
81     /** The attribute of the column 'StartDate'. {DATETIME} */\r
82     protected java.sql.Timestamp _startdate;\r
83 \r
84     /** The attribute of the column 'EndDate'. {DATETIME} */\r
85     protected java.sql.Timestamp _enddate;\r
86 \r
87     /** The attribute of the column 'Phase'. {VARCHAR(50)} */\r
88     protected String _phase;\r
89 \r
90     /** The attribute of the column 'History'. {LONGCHAR(2147483647)} */\r
91     protected String _history;\r
92 \r
93     /** The attribute of the column 'Percent'. {INTEGER} */\r
94     protected java.lang.Integer _percent;\r
95 \r
96     /** The attribute of the column 'TotalTime'. {INTEGER} */\r
97     protected java.lang.Integer _totaltime;\r
98 \r
99     /** The attribute of the column 'ActualTime'. {INTEGER} */\r
100     protected java.lang.Integer _actualtime;\r
101 \r
102     /** The attribute of the column 'AssignedTo'. {VARCHAR(100)} */\r
103     protected String _assignedto;\r
104 \r
105     // -----------------------------------------------------\r
106     //                                              Internal\r
107     //                                              --------\r
108     /** The attribute of entity modified properties. (for S2Dao) */\r
109     protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties();\r
110     \r
111     // ===================================================================================\r
112     //                                                                         Constructor\r
113     //                                                                         ===========\r
114     public BsTTasks() {\r
115     }\r
116 \r
117     // ===================================================================================\r
118     //                                                                          Table Name\r
119     //                                                                          ==========\r
120     public String getTableDbName() {\r
121         return "t_tasks";\r
122     }\r
123 \r
124     public String getTablePropertyName() {// as JavaBeansRule\r
125         return "TTasks";\r
126     }\r
127 \r
128     // ===================================================================================\r
129     //                                                                              DBMeta\r
130     //                                                                              ======\r
131     public DBMeta getDBMeta() {\r
132         return DBMetaInstanceHandler.findDBMeta(getTableDbName());\r
133     }\r
134 \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
150 \r
151     // ===================================================================================\r
152     //                                                                       Determination\r
153     //                                                                       =============\r
154     public boolean hasPrimaryKeyValue() {\r
155         return false;\r
156     }\r
157 \r
158     // ===================================================================================\r
159     //                                                                 Modified Properties\r
160     //                                                                 ===================\r
161     public Set<String> getModifiedPropertyNames() {\r
162         return _modifiedProperties.getPropertyNames();\r
163     }\r
164 \r
165     protected EntityModifiedProperties newEntityModifiedProperties() {\r
166         return new EntityModifiedProperties();\r
167     }\r
168 \r
169     public void clearModifiedPropertyNames() {\r
170         _modifiedProperties.clear();\r
171     }\r
172 \r
173     public boolean hasModification() {\r
174         return !_modifiedProperties.isEmpty();\r
175     }\r
176 \r
177     // ===================================================================================\r
178     //                                                                      Basic Override\r
179     //                                                                      ==============\r
180     /**\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
184      */\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
203         return true;\r
204     }\r
205 \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
209     }\r
210 \r
211     /**\r
212      * Calculates hash-code from all columns.\r
213      * @return Hash-code from all-columns.\r
214      */\r
215     public int hashCode() {\r
216         int result = 17;\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
232         return result;\r
233     }\r
234 \r
235     /**\r
236      * @return The view string of columns. (NotNull)\r
237      */\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
259     }\r
260 \r
261     // ===================================================================================\r
262     //                                                                            Accessor\r
263     //                                                                            ========\r
264 \r
265     /** The column annotation for S2Dao. {UQ : COUNTER : NotNull} */\r
266     public static final String taskid_COLUMN = "TaskID";\r
267 \r
268     /**\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
272      */\r
273     public java.lang.Integer getTaskid() {\r
274         return _taskid;\r
275     }\r
276 \r
277     /**\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
281      */\r
282     public void setTaskid(java.lang.Integer taskid) {\r
283         _modifiedProperties.addPropertyName("taskid");\r
284         this._taskid = taskid;\r
285     }\r
286 \r
287     /** The column annotation for S2Dao. {VARCHAR(255)} */\r
288     public static final String name_COLUMN = "Name";\r
289 \r
290     /**\r
291      * Get the value of the column 'Name'. <br />\r
292      * {VARCHAR(255)}\r
293      * @return The value of the column 'Name'. (Nullable)\r
294      */\r
295     public String getName() {\r
296         return _name;\r
297     }\r
298 \r
299     /**\r
300      * Set the value of the column 'Name'. <br />\r
301      * {VARCHAR(255)}\r
302      * @param name The value of the column 'Name'. (Nullable)\r
303      */\r
304     public void setName(String name) {\r
305         _modifiedProperties.addPropertyName("name");\r
306         this._name = name;\r
307     }\r
308 \r
309     /** The column annotation for S2Dao. {VARCHAR(255)} */\r
310     public static final String tasktype_COLUMN = "TaskType";\r
311 \r
312     /**\r
313      * Get the value of the column 'TaskType'. <br />\r
314      * {VARCHAR(255)}\r
315      * @return The value of the column 'TaskType'. (Nullable)\r
316      */\r
317     public String getTasktype() {\r
318         return _tasktype;\r
319     }\r
320 \r
321     /**\r
322      * Set the value of the column 'TaskType'. <br />\r
323      * {VARCHAR(255)}\r
324      * @param tasktype The value of the column 'TaskType'. (Nullable)\r
325      */\r
326     public void setTasktype(String tasktype) {\r
327         _modifiedProperties.addPropertyName("tasktype");\r
328         this._tasktype = tasktype;\r
329     }\r
330 \r
331     /** The column annotation for S2Dao. {LONGCHAR(2147483647)} */\r
332     public static final String notes_COLUMN = "NOTES";\r
333 \r
334     /**\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
338      */\r
339     public String getNotes() {\r
340         return _notes;\r
341     }\r
342 \r
343     /**\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
347      */\r
348     public void setNotes(String notes) {\r
349         _modifiedProperties.addPropertyName("notes");\r
350         this._notes = notes;\r
351     }\r
352 \r
353     /** The column annotation for S2Dao. {VARCHAR(255)} */\r
354     public static final String priority_COLUMN = "Priority";\r
355 \r
356     /**\r
357      * Get the value of the column 'Priority'. <br />\r
358      * {VARCHAR(255)}\r
359      * @return The value of the column 'Priority'. (Nullable)\r
360      */\r
361     public String getPriority() {\r
362         return _priority;\r
363     }\r
364 \r
365     /**\r
366      * Set the value of the column 'Priority'. <br />\r
367      * {VARCHAR(255)}\r
368      * @param priority The value of the column 'Priority'. (Nullable)\r
369      */\r
370     public void setPriority(String priority) {\r
371         _modifiedProperties.addPropertyName("priority");\r
372         this._priority = priority;\r
373     }\r
374 \r
375     /** The column annotation for S2Dao. {VARCHAR(255)} */\r
376     public static final String status_COLUMN = "Status";\r
377 \r
378     /**\r
379      * Get the value of the column 'Status'. <br />\r
380      * {VARCHAR(255)}\r
381      * @return The value of the column 'Status'. (Nullable)\r
382      */\r
383     public String getStatus() {\r
384         return _status;\r
385     }\r
386 \r
387     /**\r
388      * Set the value of the column 'Status'. <br />\r
389      * {VARCHAR(255)}\r
390      * @param status The value of the column 'Status'. (Nullable)\r
391      */\r
392     public void setStatus(String status) {\r
393         _modifiedProperties.addPropertyName("status");\r
394         this._status = status;\r
395     }\r
396 \r
397     /** The column annotation for S2Dao. {VARCHAR(255)} */\r
398     public static final String owner_COLUMN = "Owner";\r
399 \r
400     /**\r
401      * Get the value of the column 'Owner'. <br />\r
402      * {VARCHAR(255)}\r
403      * @return The value of the column 'Owner'. (Nullable)\r
404      */\r
405     public String getOwner() {\r
406         return _owner;\r
407     }\r
408 \r
409     /**\r
410      * Set the value of the column 'Owner'. <br />\r
411      * {VARCHAR(255)}\r
412      * @param owner The value of the column 'Owner'. (Nullable)\r
413      */\r
414     public void setOwner(String owner) {\r
415         _modifiedProperties.addPropertyName("owner");\r
416         this._owner = owner;\r
417     }\r
418 \r
419     /** The column annotation for S2Dao. {DATETIME} */\r
420     public static final String startdate_COLUMN = "StartDate";\r
421 \r
422     /**\r
423      * Get the value of the column 'StartDate'. <br />\r
424      * {DATETIME}\r
425      * @return The value of the column 'StartDate'. (Nullable)\r
426      */\r
427     public java.sql.Timestamp getStartdate() {\r
428         return _startdate;\r
429     }\r
430 \r
431     /**\r
432      * Set the value of the column 'StartDate'. <br />\r
433      * {DATETIME}\r
434      * @param startdate The value of the column 'StartDate'. (Nullable)\r
435      */\r
436     public void setStartdate(java.sql.Timestamp startdate) {\r
437         _modifiedProperties.addPropertyName("startdate");\r
438         this._startdate = startdate;\r
439     }\r
440 \r
441     /** The column annotation for S2Dao. {DATETIME} */\r
442     public static final String enddate_COLUMN = "EndDate";\r
443 \r
444     /**\r
445      * Get the value of the column 'EndDate'. <br />\r
446      * {DATETIME}\r
447      * @return The value of the column 'EndDate'. (Nullable)\r
448      */\r
449     public java.sql.Timestamp getEnddate() {\r
450         return _enddate;\r
451     }\r
452 \r
453     /**\r
454      * Set the value of the column 'EndDate'. <br />\r
455      * {DATETIME}\r
456      * @param enddate The value of the column 'EndDate'. (Nullable)\r
457      */\r
458     public void setEnddate(java.sql.Timestamp enddate) {\r
459         _modifiedProperties.addPropertyName("enddate");\r
460         this._enddate = enddate;\r
461     }\r
462 \r
463     /** The column annotation for S2Dao. {VARCHAR(50)} */\r
464     public static final String phase_COLUMN = "Phase";\r
465 \r
466     /**\r
467      * Get the value of the column 'Phase'. <br />\r
468      * {VARCHAR(50)}\r
469      * @return The value of the column 'Phase'. (Nullable)\r
470      */\r
471     public String getPhase() {\r
472         return _phase;\r
473     }\r
474 \r
475     /**\r
476      * Set the value of the column 'Phase'. <br />\r
477      * {VARCHAR(50)}\r
478      * @param phase The value of the column 'Phase'. (Nullable)\r
479      */\r
480     public void setPhase(String phase) {\r
481         _modifiedProperties.addPropertyName("phase");\r
482         this._phase = phase;\r
483     }\r
484 \r
485     /** The column annotation for S2Dao. {LONGCHAR(2147483647)} */\r
486     public static final String history_COLUMN = "History";\r
487 \r
488     /**\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
492      */\r
493     public String getHistory() {\r
494         return _history;\r
495     }\r
496 \r
497     /**\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
501      */\r
502     public void setHistory(String history) {\r
503         _modifiedProperties.addPropertyName("history");\r
504         this._history = history;\r
505     }\r
506 \r
507     /** The column annotation for S2Dao. {INTEGER} */\r
508     public static final String percent_COLUMN = "Percent";\r
509 \r
510     /**\r
511      * Get the value of the column 'Percent'. <br />\r
512      * {INTEGER}\r
513      * @return The value of the column 'Percent'. (Nullable)\r
514      */\r
515     public java.lang.Integer getPercent() {\r
516         return _percent;\r
517     }\r
518 \r
519     /**\r
520      * Set the value of the column 'Percent'. <br />\r
521      * {INTEGER}\r
522      * @param percent The value of the column 'Percent'. (Nullable)\r
523      */\r
524     public void setPercent(java.lang.Integer percent) {\r
525         _modifiedProperties.addPropertyName("percent");\r
526         this._percent = percent;\r
527     }\r
528 \r
529     /** The column annotation for S2Dao. {INTEGER} */\r
530     public static final String totaltime_COLUMN = "TotalTime";\r
531 \r
532     /**\r
533      * Get the value of the column 'TotalTime'. <br />\r
534      * {INTEGER}\r
535      * @return The value of the column 'TotalTime'. (Nullable)\r
536      */\r
537     public java.lang.Integer getTotaltime() {\r
538         return _totaltime;\r
539     }\r
540 \r
541     /**\r
542      * Set the value of the column 'TotalTime'. <br />\r
543      * {INTEGER}\r
544      * @param totaltime The value of the column 'TotalTime'. (Nullable)\r
545      */\r
546     public void setTotaltime(java.lang.Integer totaltime) {\r
547         _modifiedProperties.addPropertyName("totaltime");\r
548         this._totaltime = totaltime;\r
549     }\r
550 \r
551     /** The column annotation for S2Dao. {INTEGER} */\r
552     public static final String actualtime_COLUMN = "ActualTime";\r
553 \r
554     /**\r
555      * Get the value of the column 'ActualTime'. <br />\r
556      * {INTEGER}\r
557      * @return The value of the column 'ActualTime'. (Nullable)\r
558      */\r
559     public java.lang.Integer getActualtime() {\r
560         return _actualtime;\r
561     }\r
562 \r
563     /**\r
564      * Set the value of the column 'ActualTime'. <br />\r
565      * {INTEGER}\r
566      * @param actualtime The value of the column 'ActualTime'. (Nullable)\r
567      */\r
568     public void setActualtime(java.lang.Integer actualtime) {\r
569         _modifiedProperties.addPropertyName("actualtime");\r
570         this._actualtime = actualtime;\r
571     }\r
572 \r
573     /** The column annotation for S2Dao. {VARCHAR(100)} */\r
574     public static final String assignedto_COLUMN = "AssignedTo";\r
575 \r
576     /**\r
577      * Get the value of the column 'AssignedTo'. <br />\r
578      * {VARCHAR(100)}\r
579      * @return The value of the column 'AssignedTo'. (Nullable)\r
580      */\r
581     public String getAssignedto() {\r
582         return _assignedto;\r
583     }\r
584 \r
585     /**\r
586      * Set the value of the column 'AssignedTo'. <br />\r
587      * {VARCHAR(100)}\r
588      * @param assignedto The value of the column 'AssignedTo'. (Nullable)\r
589      */\r
590     public void setAssignedto(String assignedto) {\r
591         _modifiedProperties.addPropertyName("assignedto");\r
592         this._assignedto = assignedto;\r
593     }\r
594 \r
595 }\r