OSDN Git Service

"https://svn.sourceforge.jp/svnroot/ea2ddl" にプロジェクト "ea2ddl-dao" を共用
[ea2ddl/ea2ddl.git] / ea2ddl-dao / src / main / java / jp / sourceforge / ea2ddl / dao / bsentity / BsTObjecttests.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_objecttests(TABLE).\r
11  * <pre>\r
12  * [primary-key]\r
13  *     \r
14  * \r
15  * [column]\r
16  *     Object_ID, Test, TestClass, TestType, Notes, InputData, AcceptanceCriteria, Status, DateRun, Results, RunBy, CheckBy\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 BsTObjecttests 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_objecttests. */\r
51     public static final String TABLE = "t_objecttests";\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 'Object_ID'. {UQ : INTEGER} */\r
61     protected java.lang.Integer _objectId;\r
62 \r
63     /** The attribute of the column 'Test'. {UQ : VARCHAR(255)} */\r
64     protected String _test;\r
65 \r
66     /** The attribute of the column 'TestClass'. {UQ : INTEGER} */\r
67     protected java.lang.Integer _testclass;\r
68 \r
69     /** The attribute of the column 'TestType'. {VARCHAR(50)} */\r
70     protected String _testtype;\r
71 \r
72     /** The attribute of the column 'Notes'. {LONGCHAR(2147483647)} */\r
73     protected String _notes;\r
74 \r
75     /** The attribute of the column 'InputData'. {LONGCHAR(2147483647)} */\r
76     protected String _inputdata;\r
77 \r
78     /** The attribute of the column 'AcceptanceCriteria'. {LONGCHAR(2147483647)} */\r
79     protected String _acceptancecriteria;\r
80 \r
81     /** The attribute of the column 'Status'. {VARCHAR(32)} */\r
82     protected String _status;\r
83 \r
84     /** The attribute of the column 'DateRun'. {DATETIME} */\r
85     protected java.sql.Timestamp _daterun;\r
86 \r
87     /** The attribute of the column 'Results'. {LONGCHAR(2147483647)} */\r
88     protected String _results;\r
89 \r
90     /** The attribute of the column 'RunBy'. {VARCHAR(255)} */\r
91     protected String _runby;\r
92 \r
93     /** The attribute of the column 'CheckBy'. {VARCHAR(255)} */\r
94     protected String _checkby;\r
95 \r
96     // -----------------------------------------------------\r
97     //                                              Internal\r
98     //                                              --------\r
99     /** The attribute of entity modified properties. (for S2Dao) */\r
100     protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties();\r
101     \r
102     // ===================================================================================\r
103     //                                                                         Constructor\r
104     //                                                                         ===========\r
105     public BsTObjecttests() {\r
106     }\r
107 \r
108     // ===================================================================================\r
109     //                                                                          Table Name\r
110     //                                                                          ==========\r
111     public String getTableDbName() {\r
112         return "t_objecttests";\r
113     }\r
114 \r
115     public String getTablePropertyName() {// as JavaBeansRule\r
116         return "TObjecttests";\r
117     }\r
118 \r
119     // ===================================================================================\r
120     //                                                                              DBMeta\r
121     //                                                                              ======\r
122     public DBMeta getDBMeta() {\r
123         return DBMetaInstanceHandler.findDBMeta(getTableDbName());\r
124     }\r
125 \r
126     // ===================================================================================\r
127     //                                                          Classification Classifying\r
128     //                                                          ==========================\r
129     // ===================================================================================\r
130     //                                                        Classification Determination\r
131     //                                                        ============================\r
132     // ===================================================================================\r
133     //                                                           Classification Name/Alias\r
134     //                                                           =========================\r
135     // ===================================================================================\r
136     //                                                                    Foreign Property\r
137     //                                                                    ================\r
138     // ===================================================================================\r
139     //                                                                   Referrer Property\r
140     //                                                                   =================\r
141 \r
142     // ===================================================================================\r
143     //                                                                       Determination\r
144     //                                                                       =============\r
145     public boolean hasPrimaryKeyValue() {\r
146         return false;\r
147     }\r
148 \r
149     // ===================================================================================\r
150     //                                                                 Modified Properties\r
151     //                                                                 ===================\r
152     public Set<String> getModifiedPropertyNames() {\r
153         return _modifiedProperties.getPropertyNames();\r
154     }\r
155 \r
156     protected EntityModifiedProperties newEntityModifiedProperties() {\r
157         return new EntityModifiedProperties();\r
158     }\r
159 \r
160     public void clearModifiedPropertyNames() {\r
161         _modifiedProperties.clear();\r
162     }\r
163 \r
164     public boolean hasModification() {\r
165         return !_modifiedProperties.isEmpty();\r
166     }\r
167 \r
168     // ===================================================================================\r
169     //                                                                      Basic Override\r
170     //                                                                      ==============\r
171     /**\r
172      * If the all-column value of the other is same as this one, returns true.\r
173      * @param other Other entity. (Nullable)\r
174      * @return Comparing result. If other is null, returns false.\r
175      */\r
176     public boolean equals(Object other) {\r
177         if (other == null || !(other instanceof BsTObjecttests)) { return false; }\r
178         final BsTObjecttests otherEntity = (BsTObjecttests)other;\r
179         if (!helpComparingValue(getObjectId(), otherEntity.getObjectId())) { return false; }\r
180         if (!helpComparingValue(getTest(), otherEntity.getTest())) { return false; }\r
181         if (!helpComparingValue(getTestclass(), otherEntity.getTestclass())) { return false; }\r
182         if (!helpComparingValue(getTesttype(), otherEntity.getTesttype())) { return false; }\r
183         if (!helpComparingValue(getNotes(), otherEntity.getNotes())) { return false; }\r
184         if (!helpComparingValue(getInputdata(), otherEntity.getInputdata())) { return false; }\r
185         if (!helpComparingValue(getAcceptancecriteria(), otherEntity.getAcceptancecriteria())) { return false; }\r
186         if (!helpComparingValue(getStatus(), otherEntity.getStatus())) { return false; }\r
187         if (!helpComparingValue(getDaterun(), otherEntity.getDaterun())) { return false; }\r
188         if (!helpComparingValue(getResults(), otherEntity.getResults())) { return false; }\r
189         if (!helpComparingValue(getRunby(), otherEntity.getRunby())) { return false; }\r
190         if (!helpComparingValue(getCheckby(), otherEntity.getCheckby())) { return false; }\r
191         return true;\r
192     }\r
193 \r
194     protected boolean helpComparingValue(Object value1, Object value2) {\r
195         if (value1 == null && value2 == null) { return true; }\r
196         return value1 != null && value2 != null && value1.equals(value2);\r
197     }\r
198 \r
199     /**\r
200      * Calculates hash-code from all columns.\r
201      * @return Hash-code from all-columns.\r
202      */\r
203     public int hashCode() {\r
204         int result = 17;\r
205         if (this.getObjectId() != null) { result = result + this.getObjectId().hashCode(); }\r
206         if (this.getTest() != null) { result = result + this.getTest().hashCode(); }\r
207         if (this.getTestclass() != null) { result = result + this.getTestclass().hashCode(); }\r
208         if (this.getTesttype() != null) { result = result + this.getTesttype().hashCode(); }\r
209         if (this.getNotes() != null) { result = result + this.getNotes().hashCode(); }\r
210         if (this.getInputdata() != null) { result = result + this.getInputdata().hashCode(); }\r
211         if (this.getAcceptancecriteria() != null) { result = result + this.getAcceptancecriteria().hashCode(); }\r
212         if (this.getStatus() != null) { result = result + this.getStatus().hashCode(); }\r
213         if (this.getDaterun() != null) { result = result + this.getDaterun().hashCode(); }\r
214         if (this.getResults() != null) { result = result + this.getResults().hashCode(); }\r
215         if (this.getRunby() != null) { result = result + this.getRunby().hashCode(); }\r
216         if (this.getCheckby() != null) { result = result + this.getCheckby().hashCode(); }\r
217         return result;\r
218     }\r
219 \r
220     /**\r
221      * @return The view string of columns. (NotNull)\r
222      */\r
223     public String toString() {\r
224         String delimiter = ",";\r
225         StringBuilder sb = new StringBuilder();\r
226         sb.append(delimiter).append(getObjectId());\r
227         sb.append(delimiter).append(getTest());\r
228         sb.append(delimiter).append(getTestclass());\r
229         sb.append(delimiter).append(getTesttype());\r
230         sb.append(delimiter).append(getNotes());\r
231         sb.append(delimiter).append(getInputdata());\r
232         sb.append(delimiter).append(getAcceptancecriteria());\r
233         sb.append(delimiter).append(getStatus());\r
234         sb.append(delimiter).append(getDaterun());\r
235         sb.append(delimiter).append(getResults());\r
236         sb.append(delimiter).append(getRunby());\r
237         sb.append(delimiter).append(getCheckby());\r
238         if (sb.length() > 0) { sb.delete(0, delimiter.length()); }\r
239         sb.insert(0, "{").append("}");\r
240         return sb.toString();\r
241     }\r
242 \r
243     // ===================================================================================\r
244     //                                                                            Accessor\r
245     //                                                                            ========\r
246 \r
247     /** The column annotation for S2Dao. {UQ : INTEGER} */\r
248     public static final String objectId_COLUMN = "Object_ID";\r
249 \r
250     /**\r
251      * Get the value of the column 'Object_ID'. <br />\r
252      * {UQ : INTEGER}\r
253      * @return The value of the column 'Object_ID'. (Nullable)\r
254      */\r
255     public java.lang.Integer getObjectId() {\r
256         return _objectId;\r
257     }\r
258 \r
259     /**\r
260      * Set the value of the column 'Object_ID'. <br />\r
261      * {UQ : INTEGER}\r
262      * @param objectId The value of the column 'Object_ID'. (Nullable)\r
263      */\r
264     public void setObjectId(java.lang.Integer objectId) {\r
265         _modifiedProperties.addPropertyName("objectId");\r
266         this._objectId = objectId;\r
267     }\r
268 \r
269     /** The column annotation for S2Dao. {UQ : VARCHAR(255)} */\r
270     public static final String test_COLUMN = "Test";\r
271 \r
272     /**\r
273      * Get the value of the column 'Test'. <br />\r
274      * {UQ : VARCHAR(255)}\r
275      * @return The value of the column 'Test'. (Nullable)\r
276      */\r
277     public String getTest() {\r
278         return _test;\r
279     }\r
280 \r
281     /**\r
282      * Set the value of the column 'Test'. <br />\r
283      * {UQ : VARCHAR(255)}\r
284      * @param test The value of the column 'Test'. (Nullable)\r
285      */\r
286     public void setTest(String test) {\r
287         _modifiedProperties.addPropertyName("test");\r
288         this._test = test;\r
289     }\r
290 \r
291     /** The column annotation for S2Dao. {UQ : INTEGER} */\r
292     public static final String testclass_COLUMN = "TestClass";\r
293 \r
294     /**\r
295      * Get the value of the column 'TestClass'. <br />\r
296      * {UQ : INTEGER}\r
297      * @return The value of the column 'TestClass'. (Nullable)\r
298      */\r
299     public java.lang.Integer getTestclass() {\r
300         return _testclass;\r
301     }\r
302 \r
303     /**\r
304      * Set the value of the column 'TestClass'. <br />\r
305      * {UQ : INTEGER}\r
306      * @param testclass The value of the column 'TestClass'. (Nullable)\r
307      */\r
308     public void setTestclass(java.lang.Integer testclass) {\r
309         _modifiedProperties.addPropertyName("testclass");\r
310         this._testclass = testclass;\r
311     }\r
312 \r
313     /** The column annotation for S2Dao. {VARCHAR(50)} */\r
314     public static final String testtype_COLUMN = "TestType";\r
315 \r
316     /**\r
317      * Get the value of the column 'TestType'. <br />\r
318      * {VARCHAR(50)}\r
319      * @return The value of the column 'TestType'. (Nullable)\r
320      */\r
321     public String getTesttype() {\r
322         return _testtype;\r
323     }\r
324 \r
325     /**\r
326      * Set the value of the column 'TestType'. <br />\r
327      * {VARCHAR(50)}\r
328      * @param testtype The value of the column 'TestType'. (Nullable)\r
329      */\r
330     public void setTesttype(String testtype) {\r
331         _modifiedProperties.addPropertyName("testtype");\r
332         this._testtype = testtype;\r
333     }\r
334 \r
335     /** The column annotation for S2Dao. {LONGCHAR(2147483647)} */\r
336     public static final String notes_COLUMN = "Notes";\r
337 \r
338     /**\r
339      * Get the value of the column 'Notes'. <br />\r
340      * {LONGCHAR(2147483647)}\r
341      * @return The value of the column 'Notes'. (Nullable)\r
342      */\r
343     public String getNotes() {\r
344         return _notes;\r
345     }\r
346 \r
347     /**\r
348      * Set the value of the column 'Notes'. <br />\r
349      * {LONGCHAR(2147483647)}\r
350      * @param notes The value of the column 'Notes'. (Nullable)\r
351      */\r
352     public void setNotes(String notes) {\r
353         _modifiedProperties.addPropertyName("notes");\r
354         this._notes = notes;\r
355     }\r
356 \r
357     /** The column annotation for S2Dao. {LONGCHAR(2147483647)} */\r
358     public static final String inputdata_COLUMN = "InputData";\r
359 \r
360     /**\r
361      * Get the value of the column 'InputData'. <br />\r
362      * {LONGCHAR(2147483647)}\r
363      * @return The value of the column 'InputData'. (Nullable)\r
364      */\r
365     public String getInputdata() {\r
366         return _inputdata;\r
367     }\r
368 \r
369     /**\r
370      * Set the value of the column 'InputData'. <br />\r
371      * {LONGCHAR(2147483647)}\r
372      * @param inputdata The value of the column 'InputData'. (Nullable)\r
373      */\r
374     public void setInputdata(String inputdata) {\r
375         _modifiedProperties.addPropertyName("inputdata");\r
376         this._inputdata = inputdata;\r
377     }\r
378 \r
379     /** The column annotation for S2Dao. {LONGCHAR(2147483647)} */\r
380     public static final String acceptancecriteria_COLUMN = "AcceptanceCriteria";\r
381 \r
382     /**\r
383      * Get the value of the column 'AcceptanceCriteria'. <br />\r
384      * {LONGCHAR(2147483647)}\r
385      * @return The value of the column 'AcceptanceCriteria'. (Nullable)\r
386      */\r
387     public String getAcceptancecriteria() {\r
388         return _acceptancecriteria;\r
389     }\r
390 \r
391     /**\r
392      * Set the value of the column 'AcceptanceCriteria'. <br />\r
393      * {LONGCHAR(2147483647)}\r
394      * @param acceptancecriteria The value of the column 'AcceptanceCriteria'. (Nullable)\r
395      */\r
396     public void setAcceptancecriteria(String acceptancecriteria) {\r
397         _modifiedProperties.addPropertyName("acceptancecriteria");\r
398         this._acceptancecriteria = acceptancecriteria;\r
399     }\r
400 \r
401     /** The column annotation for S2Dao. {VARCHAR(32)} */\r
402     public static final String status_COLUMN = "Status";\r
403 \r
404     /**\r
405      * Get the value of the column 'Status'. <br />\r
406      * {VARCHAR(32)}\r
407      * @return The value of the column 'Status'. (Nullable)\r
408      */\r
409     public String getStatus() {\r
410         return _status;\r
411     }\r
412 \r
413     /**\r
414      * Set the value of the column 'Status'. <br />\r
415      * {VARCHAR(32)}\r
416      * @param status The value of the column 'Status'. (Nullable)\r
417      */\r
418     public void setStatus(String status) {\r
419         _modifiedProperties.addPropertyName("status");\r
420         this._status = status;\r
421     }\r
422 \r
423     /** The column annotation for S2Dao. {DATETIME} */\r
424     public static final String daterun_COLUMN = "DateRun";\r
425 \r
426     /**\r
427      * Get the value of the column 'DateRun'. <br />\r
428      * {DATETIME}\r
429      * @return The value of the column 'DateRun'. (Nullable)\r
430      */\r
431     public java.sql.Timestamp getDaterun() {\r
432         return _daterun;\r
433     }\r
434 \r
435     /**\r
436      * Set the value of the column 'DateRun'. <br />\r
437      * {DATETIME}\r
438      * @param daterun The value of the column 'DateRun'. (Nullable)\r
439      */\r
440     public void setDaterun(java.sql.Timestamp daterun) {\r
441         _modifiedProperties.addPropertyName("daterun");\r
442         this._daterun = daterun;\r
443     }\r
444 \r
445     /** The column annotation for S2Dao. {LONGCHAR(2147483647)} */\r
446     public static final String results_COLUMN = "Results";\r
447 \r
448     /**\r
449      * Get the value of the column 'Results'. <br />\r
450      * {LONGCHAR(2147483647)}\r
451      * @return The value of the column 'Results'. (Nullable)\r
452      */\r
453     public String getResults() {\r
454         return _results;\r
455     }\r
456 \r
457     /**\r
458      * Set the value of the column 'Results'. <br />\r
459      * {LONGCHAR(2147483647)}\r
460      * @param results The value of the column 'Results'. (Nullable)\r
461      */\r
462     public void setResults(String results) {\r
463         _modifiedProperties.addPropertyName("results");\r
464         this._results = results;\r
465     }\r
466 \r
467     /** The column annotation for S2Dao. {VARCHAR(255)} */\r
468     public static final String runby_COLUMN = "RunBy";\r
469 \r
470     /**\r
471      * Get the value of the column 'RunBy'. <br />\r
472      * {VARCHAR(255)}\r
473      * @return The value of the column 'RunBy'. (Nullable)\r
474      */\r
475     public String getRunby() {\r
476         return _runby;\r
477     }\r
478 \r
479     /**\r
480      * Set the value of the column 'RunBy'. <br />\r
481      * {VARCHAR(255)}\r
482      * @param runby The value of the column 'RunBy'. (Nullable)\r
483      */\r
484     public void setRunby(String runby) {\r
485         _modifiedProperties.addPropertyName("runby");\r
486         this._runby = runby;\r
487     }\r
488 \r
489     /** The column annotation for S2Dao. {VARCHAR(255)} */\r
490     public static final String checkby_COLUMN = "CheckBy";\r
491 \r
492     /**\r
493      * Get the value of the column 'CheckBy'. <br />\r
494      * {VARCHAR(255)}\r
495      * @return The value of the column 'CheckBy'. (Nullable)\r
496      */\r
497     public String getCheckby() {\r
498         return _checkby;\r
499     }\r
500 \r
501     /**\r
502      * Set the value of the column 'CheckBy'. <br />\r
503      * {VARCHAR(255)}\r
504      * @param checkby The value of the column 'CheckBy'. (Nullable)\r
505      */\r
506     public void setCheckby(String checkby) {\r
507         _modifiedProperties.addPropertyName("checkby");\r
508         this._checkby = checkby;\r
509     }\r
510 \r
511 }\r