OSDN Git Service

DBFlute-0.9.3に更新
[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.io.Serializable;\r
4 import java.util.*;\r
5 \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
9 \r
10 /**\r
11  * The entity of t_tasks that the type is TABLE. <br />\r
12  * <pre>\r
13  * [primary-key]\r
14  *     \r
15  * \r
16  * [column]\r
17  *     TaskID, Name, TaskType, NOTES, Priority, Status, Owner, StartDate, EndDate, Phase, History, Percent, TotalTime, ActualTime, AssignedTo\r
18  * \r
19  * [sequence]\r
20  *     \r
21  * \r
22  * [identity]\r
23  *     \r
24  * \r
25  * [version-no]\r
26  *     \r
27  * \r
28  * [foreign-table]\r
29  *     \r
30  * \r
31  * [referrer-table]\r
32  *     \r
33  * \r
34  * [foreign-property]\r
35  *     \r
36  * \r
37  * [referrer-property]\r
38  *     \r
39  * </pre>\r
40  * @author DBFlute(AutoGenerator)\r
41  */\r
42 public abstract class BsTTasks implements Entity, 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     // ===================================================================================\r
51     //                                                                           Attribute\r
52     //                                                                           =========\r
53     // -----------------------------------------------------\r
54     //                                                Column\r
55     //                                                ------\r
56     /** TaskID: {UQ : NotNull : COUNTER} */\r
57     protected java.lang.Integer _taskid;\r
58 \r
59     /** Name: {VARCHAR(255)} */\r
60     protected String _name;\r
61 \r
62     /** TaskType: {VARCHAR(255)} */\r
63     protected String _tasktype;\r
64 \r
65     /** NOTES: {LONGCHAR(2147483647)} */\r
66     protected String _notes;\r
67 \r
68     /** Priority: {VARCHAR(255)} */\r
69     protected String _priority;\r
70 \r
71     /** Status: {VARCHAR(255)} */\r
72     protected String _status;\r
73 \r
74     /** Owner: {VARCHAR(255)} */\r
75     protected String _owner;\r
76 \r
77     /** StartDate: {DATETIME} */\r
78     protected java.sql.Timestamp _startdate;\r
79 \r
80     /** EndDate: {DATETIME} */\r
81     protected java.sql.Timestamp _enddate;\r
82 \r
83     /** Phase: {VARCHAR(50)} */\r
84     protected String _phase;\r
85 \r
86     /** History: {LONGCHAR(2147483647)} */\r
87     protected String _history;\r
88 \r
89     /** Percent: {INTEGER} */\r
90     protected java.lang.Integer _percent;\r
91 \r
92     /** TotalTime: {INTEGER} */\r
93     protected java.lang.Integer _totaltime;\r
94 \r
95     /** ActualTime: {INTEGER} */\r
96     protected java.lang.Integer _actualtime;\r
97 \r
98     /** AssignedTo: {VARCHAR(100)} */\r
99     protected String _assignedto;\r
100 \r
101     // -----------------------------------------------------\r
102     //                                              Internal\r
103     //                                              --------\r
104     /** The attribute of entity modified properties. (for S2Dao) */\r
105     protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties();\r
106     \r
107     // ===================================================================================\r
108     //                                                                          Table Name\r
109     //                                                                          ==========\r
110     public String getTableDbName() {\r
111         return "t_tasks";\r
112     }\r
113 \r
114     public String getTablePropertyName() { // as JavaBeansRule\r
115         return "TTasks";\r
116     }\r
117 \r
118     // ===================================================================================\r
119     //                                                                              DBMeta\r
120     //                                                                              ======\r
121     public DBMeta getDBMeta() {\r
122         return DBMetaInstanceHandler.findDBMeta(getTableDbName());\r
123     }\r
124 \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
141     //                                                                       Determination\r
142     //                                                                       =============\r
143     public boolean hasPrimaryKeyValue() {\r
144         return false;\r
145     }\r
146 \r
147     // ===================================================================================\r
148     //                                                                 Modified Properties\r
149     //                                                                 ===================\r
150     public Set<String> getModifiedPropertyNames() {\r
151         return _modifiedProperties.getPropertyNames();\r
152     }\r
153 \r
154     protected EntityModifiedProperties newEntityModifiedProperties() {\r
155         return new EntityModifiedProperties();\r
156     }\r
157 \r
158     public void clearModifiedPropertyNames() {\r
159         _modifiedProperties.clear();\r
160     }\r
161 \r
162     public boolean hasModification() {\r
163         return !_modifiedProperties.isEmpty();\r
164     }\r
165 \r
166     // ===================================================================================\r
167     //                                                                      Basic Override\r
168     //                                                                      ==============\r
169     /**\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
173      */\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
192         return true;\r
193     }\r
194 \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
198     }\r
199 \r
200     /**\r
201      * Calculates hash-code from all columns.\r
202      * @return Hash-code from all-columns.\r
203      */\r
204     public int hashCode() {\r
205         int result = 17;\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
221         return result;\r
222     }\r
223 \r
224     /**\r
225      * @return The view string of columns. (NotNull)\r
226      */\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
248     }\r
249 \r
250     // ===================================================================================\r
251     //                                                                            Accessor\r
252     //                                                                            ========\r
253     /**\r
254      * TaskID: {UQ : NotNull : COUNTER} <br />\r
255      * @return The value of the column 'TaskID'. (Nullable)\r
256      */\r
257     public java.lang.Integer getTaskid() {\r
258         return _taskid;\r
259     }\r
260 \r
261     /**\r
262      * TaskID: {UQ : NotNull : COUNTER} <br />\r
263      * @param taskid The value of the column 'TaskID'. (Nullable)\r
264      */\r
265     public void setTaskid(java.lang.Integer taskid) {\r
266         _modifiedProperties.addPropertyName("taskid");\r
267         this._taskid = taskid;\r
268     }\r
269 \r
270     /**\r
271      * Name: {VARCHAR(255)} <br />\r
272      * @return The value of the column 'Name'. (Nullable)\r
273      */\r
274     public String getName() {\r
275         return _name;\r
276     }\r
277 \r
278     /**\r
279      * Name: {VARCHAR(255)} <br />\r
280      * @param name The value of the column 'Name'. (Nullable)\r
281      */\r
282     public void setName(String name) {\r
283         _modifiedProperties.addPropertyName("name");\r
284         this._name = name;\r
285     }\r
286 \r
287     /**\r
288      * TaskType: {VARCHAR(255)} <br />\r
289      * @return The value of the column 'TaskType'. (Nullable)\r
290      */\r
291     public String getTasktype() {\r
292         return _tasktype;\r
293     }\r
294 \r
295     /**\r
296      * TaskType: {VARCHAR(255)} <br />\r
297      * @param tasktype The value of the column 'TaskType'. (Nullable)\r
298      */\r
299     public void setTasktype(String tasktype) {\r
300         _modifiedProperties.addPropertyName("tasktype");\r
301         this._tasktype = tasktype;\r
302     }\r
303 \r
304     /**\r
305      * NOTES: {LONGCHAR(2147483647)} <br />\r
306      * @return The value of the column 'NOTES'. (Nullable)\r
307      */\r
308     public String getNotes() {\r
309         return _notes;\r
310     }\r
311 \r
312     /**\r
313      * NOTES: {LONGCHAR(2147483647)} <br />\r
314      * @param notes The value of the column 'NOTES'. (Nullable)\r
315      */\r
316     public void setNotes(String notes) {\r
317         _modifiedProperties.addPropertyName("notes");\r
318         this._notes = notes;\r
319     }\r
320 \r
321     /**\r
322      * Priority: {VARCHAR(255)} <br />\r
323      * @return The value of the column 'Priority'. (Nullable)\r
324      */\r
325     public String getPriority() {\r
326         return _priority;\r
327     }\r
328 \r
329     /**\r
330      * Priority: {VARCHAR(255)} <br />\r
331      * @param priority The value of the column 'Priority'. (Nullable)\r
332      */\r
333     public void setPriority(String priority) {\r
334         _modifiedProperties.addPropertyName("priority");\r
335         this._priority = priority;\r
336     }\r
337 \r
338     /**\r
339      * Status: {VARCHAR(255)} <br />\r
340      * @return The value of the column 'Status'. (Nullable)\r
341      */\r
342     public String getStatus() {\r
343         return _status;\r
344     }\r
345 \r
346     /**\r
347      * Status: {VARCHAR(255)} <br />\r
348      * @param status The value of the column 'Status'. (Nullable)\r
349      */\r
350     public void setStatus(String status) {\r
351         _modifiedProperties.addPropertyName("status");\r
352         this._status = status;\r
353     }\r
354 \r
355     /**\r
356      * Owner: {VARCHAR(255)} <br />\r
357      * @return The value of the column 'Owner'. (Nullable)\r
358      */\r
359     public String getOwner() {\r
360         return _owner;\r
361     }\r
362 \r
363     /**\r
364      * Owner: {VARCHAR(255)} <br />\r
365      * @param owner The value of the column 'Owner'. (Nullable)\r
366      */\r
367     public void setOwner(String owner) {\r
368         _modifiedProperties.addPropertyName("owner");\r
369         this._owner = owner;\r
370     }\r
371 \r
372     /**\r
373      * StartDate: {DATETIME} <br />\r
374      * @return The value of the column 'StartDate'. (Nullable)\r
375      */\r
376     public java.sql.Timestamp getStartdate() {\r
377         return _startdate;\r
378     }\r
379 \r
380     /**\r
381      * StartDate: {DATETIME} <br />\r
382      * @param startdate The value of the column 'StartDate'. (Nullable)\r
383      */\r
384     public void setStartdate(java.sql.Timestamp startdate) {\r
385         _modifiedProperties.addPropertyName("startdate");\r
386         this._startdate = startdate;\r
387     }\r
388 \r
389     /**\r
390      * EndDate: {DATETIME} <br />\r
391      * @return The value of the column 'EndDate'. (Nullable)\r
392      */\r
393     public java.sql.Timestamp getEnddate() {\r
394         return _enddate;\r
395     }\r
396 \r
397     /**\r
398      * EndDate: {DATETIME} <br />\r
399      * @param enddate The value of the column 'EndDate'. (Nullable)\r
400      */\r
401     public void setEnddate(java.sql.Timestamp enddate) {\r
402         _modifiedProperties.addPropertyName("enddate");\r
403         this._enddate = enddate;\r
404     }\r
405 \r
406     /**\r
407      * Phase: {VARCHAR(50)} <br />\r
408      * @return The value of the column 'Phase'. (Nullable)\r
409      */\r
410     public String getPhase() {\r
411         return _phase;\r
412     }\r
413 \r
414     /**\r
415      * Phase: {VARCHAR(50)} <br />\r
416      * @param phase The value of the column 'Phase'. (Nullable)\r
417      */\r
418     public void setPhase(String phase) {\r
419         _modifiedProperties.addPropertyName("phase");\r
420         this._phase = phase;\r
421     }\r
422 \r
423     /**\r
424      * History: {LONGCHAR(2147483647)} <br />\r
425      * @return The value of the column 'History'. (Nullable)\r
426      */\r
427     public String getHistory() {\r
428         return _history;\r
429     }\r
430 \r
431     /**\r
432      * History: {LONGCHAR(2147483647)} <br />\r
433      * @param history The value of the column 'History'. (Nullable)\r
434      */\r
435     public void setHistory(String history) {\r
436         _modifiedProperties.addPropertyName("history");\r
437         this._history = history;\r
438     }\r
439 \r
440     /**\r
441      * Percent: {INTEGER} <br />\r
442      * @return The value of the column 'Percent'. (Nullable)\r
443      */\r
444     public java.lang.Integer getPercent() {\r
445         return _percent;\r
446     }\r
447 \r
448     /**\r
449      * Percent: {INTEGER} <br />\r
450      * @param percent The value of the column 'Percent'. (Nullable)\r
451      */\r
452     public void setPercent(java.lang.Integer percent) {\r
453         _modifiedProperties.addPropertyName("percent");\r
454         this._percent = percent;\r
455     }\r
456 \r
457     /**\r
458      * TotalTime: {INTEGER} <br />\r
459      * @return The value of the column 'TotalTime'. (Nullable)\r
460      */\r
461     public java.lang.Integer getTotaltime() {\r
462         return _totaltime;\r
463     }\r
464 \r
465     /**\r
466      * TotalTime: {INTEGER} <br />\r
467      * @param totaltime The value of the column 'TotalTime'. (Nullable)\r
468      */\r
469     public void setTotaltime(java.lang.Integer totaltime) {\r
470         _modifiedProperties.addPropertyName("totaltime");\r
471         this._totaltime = totaltime;\r
472     }\r
473 \r
474     /**\r
475      * ActualTime: {INTEGER} <br />\r
476      * @return The value of the column 'ActualTime'. (Nullable)\r
477      */\r
478     public java.lang.Integer getActualtime() {\r
479         return _actualtime;\r
480     }\r
481 \r
482     /**\r
483      * ActualTime: {INTEGER} <br />\r
484      * @param actualtime The value of the column 'ActualTime'. (Nullable)\r
485      */\r
486     public void setActualtime(java.lang.Integer actualtime) {\r
487         _modifiedProperties.addPropertyName("actualtime");\r
488         this._actualtime = actualtime;\r
489     }\r
490 \r
491     /**\r
492      * AssignedTo: {VARCHAR(100)} <br />\r
493      * @return The value of the column 'AssignedTo'. (Nullable)\r
494      */\r
495     public String getAssignedto() {\r
496         return _assignedto;\r
497     }\r
498 \r
499     /**\r
500      * AssignedTo: {VARCHAR(100)} <br />\r
501      * @param assignedto The value of the column 'AssignedTo'. (Nullable)\r
502      */\r
503     public void setAssignedto(String assignedto) {\r
504         _modifiedProperties.addPropertyName("assignedto");\r
505         this._assignedto = assignedto;\r
506     }\r
507 }\r