OSDN Git Service

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