OSDN Git Service

"https://svn.sourceforge.jp/svnroot/ea2ddl" にプロジェクト "ea2ddl-dao" を共用
[ea2ddl/ea2ddl.git] / ea2ddl-dao / src / main / java / jp / sourceforge / ea2ddl / dao / bsentity / BsTOperationparams.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_operationparams(TABLE).\r
11  * <pre>\r
12  * [primary-key]\r
13  *     \r
14  * \r
15  * [column]\r
16  *     OperationID, Name, Type, Notes, Pos, Style, Kind, Classifier, ea_guid, StyleEx\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 BsTOperationparams 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_operationparams. */\r
51     public static final String TABLE = "t_operationparams";\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 'OperationID'. {UQ : INTEGER} */\r
61     protected java.lang.Integer _operationid;\r
62 \r
63     /** The attribute of the column 'Name'. {UQ : VARCHAR(255)} */\r
64     protected String _name;\r
65 \r
66     /** The attribute of the column 'Type'. {VARCHAR(255)} */\r
67     protected String _type;\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 'Pos'. {INTEGER} */\r
73     protected java.lang.Integer _pos;\r
74 \r
75     /** The attribute of the column 'Style'. {VARCHAR(255)} */\r
76     protected String _style;\r
77 \r
78     /** The attribute of the column 'Kind'. {VARCHAR(12)} */\r
79     protected String _kind;\r
80 \r
81     /** The attribute of the column 'Classifier'. {VARCHAR(50)} */\r
82     protected String _classifier;\r
83 \r
84     /** The attribute of the column 'ea_guid'. {VARCHAR(50)} */\r
85     protected String _eaGuid;\r
86 \r
87     /** The attribute of the column 'StyleEx'. {LONGCHAR(2147483647)} */\r
88     protected String _styleex;\r
89 \r
90     // -----------------------------------------------------\r
91     //                                              Internal\r
92     //                                              --------\r
93     /** The attribute of entity modified properties. (for S2Dao) */\r
94     protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties();\r
95     \r
96     // ===================================================================================\r
97     //                                                                         Constructor\r
98     //                                                                         ===========\r
99     public BsTOperationparams() {\r
100     }\r
101 \r
102     // ===================================================================================\r
103     //                                                                          Table Name\r
104     //                                                                          ==========\r
105     public String getTableDbName() {\r
106         return "t_operationparams";\r
107     }\r
108 \r
109     public String getTablePropertyName() {// as JavaBeansRule\r
110         return "TOperationparams";\r
111     }\r
112 \r
113     // ===================================================================================\r
114     //                                                                              DBMeta\r
115     //                                                                              ======\r
116     public DBMeta getDBMeta() {\r
117         return DBMetaInstanceHandler.findDBMeta(getTableDbName());\r
118     }\r
119 \r
120     // ===================================================================================\r
121     //                                                          Classification Classifying\r
122     //                                                          ==========================\r
123     // ===================================================================================\r
124     //                                                        Classification Determination\r
125     //                                                        ============================\r
126     // ===================================================================================\r
127     //                                                           Classification Name/Alias\r
128     //                                                           =========================\r
129     // ===================================================================================\r
130     //                                                                    Foreign Property\r
131     //                                                                    ================\r
132     // ===================================================================================\r
133     //                                                                   Referrer Property\r
134     //                                                                   =================\r
135 \r
136     // ===================================================================================\r
137     //                                                                       Determination\r
138     //                                                                       =============\r
139     public boolean hasPrimaryKeyValue() {\r
140         return false;\r
141     }\r
142 \r
143     // ===================================================================================\r
144     //                                                                 Modified Properties\r
145     //                                                                 ===================\r
146     public Set<String> getModifiedPropertyNames() {\r
147         return _modifiedProperties.getPropertyNames();\r
148     }\r
149 \r
150     protected EntityModifiedProperties newEntityModifiedProperties() {\r
151         return new EntityModifiedProperties();\r
152     }\r
153 \r
154     public void clearModifiedPropertyNames() {\r
155         _modifiedProperties.clear();\r
156     }\r
157 \r
158     public boolean hasModification() {\r
159         return !_modifiedProperties.isEmpty();\r
160     }\r
161 \r
162     // ===================================================================================\r
163     //                                                                      Basic Override\r
164     //                                                                      ==============\r
165     /**\r
166      * If the all-column value of the other is same as this one, returns true.\r
167      * @param other Other entity. (Nullable)\r
168      * @return Comparing result. If other is null, returns false.\r
169      */\r
170     public boolean equals(Object other) {\r
171         if (other == null || !(other instanceof BsTOperationparams)) { return false; }\r
172         final BsTOperationparams otherEntity = (BsTOperationparams)other;\r
173         if (!helpComparingValue(getOperationid(), otherEntity.getOperationid())) { return false; }\r
174         if (!helpComparingValue(getName(), otherEntity.getName())) { return false; }\r
175         if (!helpComparingValue(getType(), otherEntity.getType())) { return false; }\r
176         if (!helpComparingValue(getNotes(), otherEntity.getNotes())) { return false; }\r
177         if (!helpComparingValue(getPos(), otherEntity.getPos())) { return false; }\r
178         if (!helpComparingValue(getStyle(), otherEntity.getStyle())) { return false; }\r
179         if (!helpComparingValue(getKind(), otherEntity.getKind())) { return false; }\r
180         if (!helpComparingValue(getClassifier(), otherEntity.getClassifier())) { return false; }\r
181         if (!helpComparingValue(getEaGuid(), otherEntity.getEaGuid())) { return false; }\r
182         if (!helpComparingValue(getStyleex(), otherEntity.getStyleex())) { return false; }\r
183         return true;\r
184     }\r
185 \r
186     protected boolean helpComparingValue(Object value1, Object value2) {\r
187         if (value1 == null && value2 == null) { return true; }\r
188         return value1 != null && value2 != null && value1.equals(value2);\r
189     }\r
190 \r
191     /**\r
192      * Calculates hash-code from all columns.\r
193      * @return Hash-code from all-columns.\r
194      */\r
195     public int hashCode() {\r
196         int result = 17;\r
197         if (this.getOperationid() != null) { result = result + this.getOperationid().hashCode(); }\r
198         if (this.getName() != null) { result = result + this.getName().hashCode(); }\r
199         if (this.getType() != null) { result = result + this.getType().hashCode(); }\r
200         if (this.getNotes() != null) { result = result + this.getNotes().hashCode(); }\r
201         if (this.getPos() != null) { result = result + this.getPos().hashCode(); }\r
202         if (this.getStyle() != null) { result = result + this.getStyle().hashCode(); }\r
203         if (this.getKind() != null) { result = result + this.getKind().hashCode(); }\r
204         if (this.getClassifier() != null) { result = result + this.getClassifier().hashCode(); }\r
205         if (this.getEaGuid() != null) { result = result + this.getEaGuid().hashCode(); }\r
206         if (this.getStyleex() != null) { result = result + this.getStyleex().hashCode(); }\r
207         return result;\r
208     }\r
209 \r
210     /**\r
211      * @return The view string of columns. (NotNull)\r
212      */\r
213     public String toString() {\r
214         String delimiter = ",";\r
215         StringBuilder sb = new StringBuilder();\r
216         sb.append(delimiter).append(getOperationid());\r
217         sb.append(delimiter).append(getName());\r
218         sb.append(delimiter).append(getType());\r
219         sb.append(delimiter).append(getNotes());\r
220         sb.append(delimiter).append(getPos());\r
221         sb.append(delimiter).append(getStyle());\r
222         sb.append(delimiter).append(getKind());\r
223         sb.append(delimiter).append(getClassifier());\r
224         sb.append(delimiter).append(getEaGuid());\r
225         sb.append(delimiter).append(getStyleex());\r
226         if (sb.length() > 0) { sb.delete(0, delimiter.length()); }\r
227         sb.insert(0, "{").append("}");\r
228         return sb.toString();\r
229     }\r
230 \r
231     // ===================================================================================\r
232     //                                                                            Accessor\r
233     //                                                                            ========\r
234 \r
235     /** The column annotation for S2Dao. {UQ : INTEGER} */\r
236     public static final String operationid_COLUMN = "OperationID";\r
237 \r
238     /**\r
239      * Get the value of the column 'OperationID'. <br />\r
240      * {UQ : INTEGER}\r
241      * @return The value of the column 'OperationID'. (Nullable)\r
242      */\r
243     public java.lang.Integer getOperationid() {\r
244         return _operationid;\r
245     }\r
246 \r
247     /**\r
248      * Set the value of the column 'OperationID'. <br />\r
249      * {UQ : INTEGER}\r
250      * @param operationid The value of the column 'OperationID'. (Nullable)\r
251      */\r
252     public void setOperationid(java.lang.Integer operationid) {\r
253         _modifiedProperties.addPropertyName("operationid");\r
254         this._operationid = operationid;\r
255     }\r
256 \r
257     /** The column annotation for S2Dao. {UQ : VARCHAR(255)} */\r
258     public static final String name_COLUMN = "Name";\r
259 \r
260     /**\r
261      * Get the value of the column 'Name'. <br />\r
262      * {UQ : VARCHAR(255)}\r
263      * @return The value of the column 'Name'. (Nullable)\r
264      */\r
265     public String getName() {\r
266         return _name;\r
267     }\r
268 \r
269     /**\r
270      * Set the value of the column 'Name'. <br />\r
271      * {UQ : VARCHAR(255)}\r
272      * @param name The value of the column 'Name'. (Nullable)\r
273      */\r
274     public void setName(String name) {\r
275         _modifiedProperties.addPropertyName("name");\r
276         this._name = name;\r
277     }\r
278 \r
279     /** The column annotation for S2Dao. {VARCHAR(255)} */\r
280     public static final String type_COLUMN = "Type";\r
281 \r
282     /**\r
283      * Get the value of the column 'Type'. <br />\r
284      * {VARCHAR(255)}\r
285      * @return The value of the column 'Type'. (Nullable)\r
286      */\r
287     public String getType() {\r
288         return _type;\r
289     }\r
290 \r
291     /**\r
292      * Set the value of the column 'Type'. <br />\r
293      * {VARCHAR(255)}\r
294      * @param type The value of the column 'Type'. (Nullable)\r
295      */\r
296     public void setType(String type) {\r
297         _modifiedProperties.addPropertyName("type");\r
298         this._type = type;\r
299     }\r
300 \r
301     /** The column annotation for S2Dao. {LONGCHAR(2147483647)} */\r
302     public static final String notes_COLUMN = "Notes";\r
303 \r
304     /**\r
305      * Get the value of the column 'Notes'. <br />\r
306      * {LONGCHAR(2147483647)}\r
307      * @return The value of the column 'Notes'. (Nullable)\r
308      */\r
309     public String getNotes() {\r
310         return _notes;\r
311     }\r
312 \r
313     /**\r
314      * Set the value of the column 'Notes'. <br />\r
315      * {LONGCHAR(2147483647)}\r
316      * @param notes The value of the column 'Notes'. (Nullable)\r
317      */\r
318     public void setNotes(String notes) {\r
319         _modifiedProperties.addPropertyName("notes");\r
320         this._notes = notes;\r
321     }\r
322 \r
323     /** The column annotation for S2Dao. {INTEGER} */\r
324     public static final String pos_COLUMN = "Pos";\r
325 \r
326     /**\r
327      * Get the value of the column 'Pos'. <br />\r
328      * {INTEGER}\r
329      * @return The value of the column 'Pos'. (Nullable)\r
330      */\r
331     public java.lang.Integer getPos() {\r
332         return _pos;\r
333     }\r
334 \r
335     /**\r
336      * Set the value of the column 'Pos'. <br />\r
337      * {INTEGER}\r
338      * @param pos The value of the column 'Pos'. (Nullable)\r
339      */\r
340     public void setPos(java.lang.Integer pos) {\r
341         _modifiedProperties.addPropertyName("pos");\r
342         this._pos = pos;\r
343     }\r
344 \r
345     /** The column annotation for S2Dao. {VARCHAR(255)} */\r
346     public static final String style_COLUMN = "Style";\r
347 \r
348     /**\r
349      * Get the value of the column 'Style'. <br />\r
350      * {VARCHAR(255)}\r
351      * @return The value of the column 'Style'. (Nullable)\r
352      */\r
353     public String getStyle() {\r
354         return _style;\r
355     }\r
356 \r
357     /**\r
358      * Set the value of the column 'Style'. <br />\r
359      * {VARCHAR(255)}\r
360      * @param style The value of the column 'Style'. (Nullable)\r
361      */\r
362     public void setStyle(String style) {\r
363         _modifiedProperties.addPropertyName("style");\r
364         this._style = style;\r
365     }\r
366 \r
367     /** The column annotation for S2Dao. {VARCHAR(12)} */\r
368     public static final String kind_COLUMN = "Kind";\r
369 \r
370     /**\r
371      * Get the value of the column 'Kind'. <br />\r
372      * {VARCHAR(12)}\r
373      * @return The value of the column 'Kind'. (Nullable)\r
374      */\r
375     public String getKind() {\r
376         return _kind;\r
377     }\r
378 \r
379     /**\r
380      * Set the value of the column 'Kind'. <br />\r
381      * {VARCHAR(12)}\r
382      * @param kind The value of the column 'Kind'. (Nullable)\r
383      */\r
384     public void setKind(String kind) {\r
385         _modifiedProperties.addPropertyName("kind");\r
386         this._kind = kind;\r
387     }\r
388 \r
389     /** The column annotation for S2Dao. {VARCHAR(50)} */\r
390     public static final String classifier_COLUMN = "Classifier";\r
391 \r
392     /**\r
393      * Get the value of the column 'Classifier'. <br />\r
394      * {VARCHAR(50)}\r
395      * @return The value of the column 'Classifier'. (Nullable)\r
396      */\r
397     public String getClassifier() {\r
398         return _classifier;\r
399     }\r
400 \r
401     /**\r
402      * Set the value of the column 'Classifier'. <br />\r
403      * {VARCHAR(50)}\r
404      * @param classifier The value of the column 'Classifier'. (Nullable)\r
405      */\r
406     public void setClassifier(String classifier) {\r
407         _modifiedProperties.addPropertyName("classifier");\r
408         this._classifier = classifier;\r
409     }\r
410 \r
411     /** The column annotation for S2Dao. {VARCHAR(50)} */\r
412     public static final String eaGuid_COLUMN = "ea_guid";\r
413 \r
414     /**\r
415      * Get the value of the column 'ea_guid'. <br />\r
416      * {VARCHAR(50)}\r
417      * @return The value of the column 'ea_guid'. (Nullable)\r
418      */\r
419     public String getEaGuid() {\r
420         return _eaGuid;\r
421     }\r
422 \r
423     /**\r
424      * Set the value of the column 'ea_guid'. <br />\r
425      * {VARCHAR(50)}\r
426      * @param eaGuid The value of the column 'ea_guid'. (Nullable)\r
427      */\r
428     public void setEaGuid(String eaGuid) {\r
429         _modifiedProperties.addPropertyName("eaGuid");\r
430         this._eaGuid = eaGuid;\r
431     }\r
432 \r
433     /** The column annotation for S2Dao. {LONGCHAR(2147483647)} */\r
434     public static final String styleex_COLUMN = "StyleEx";\r
435 \r
436     /**\r
437      * Get the value of the column 'StyleEx'. <br />\r
438      * {LONGCHAR(2147483647)}\r
439      * @return The value of the column 'StyleEx'. (Nullable)\r
440      */\r
441     public String getStyleex() {\r
442         return _styleex;\r
443     }\r
444 \r
445     /**\r
446      * Set the value of the column 'StyleEx'. <br />\r
447      * {LONGCHAR(2147483647)}\r
448      * @param styleex The value of the column 'StyleEx'. (Nullable)\r
449      */\r
450     public void setStyleex(String styleex) {\r
451         _modifiedProperties.addPropertyName("styleex");\r
452         this._styleex = styleex;\r
453     }\r
454 \r
455 }\r