OSDN Git Service

"https://svn.sourceforge.jp/svnroot/ea2ddl" にプロジェクト "ea2ddl-dao" を共用
[ea2ddl/ea2ddl.git] / ea2ddl-dao / src / main / java / jp / sourceforge / ea2ddl / dao / bsentity / BsTOperationtag.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_operationtag(TABLE).\r
11  * <pre>\r
12  * [primary-key]\r
13  *     \r
14  * \r
15  * [column]\r
16  *     PropertyID, ElementID, Property, VALUE, NOTES, ea_guid\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 BsTOperationtag 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_operationtag. */\r
51     public static final String TABLE = "t_operationtag";\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 'PropertyID'. {UQ : COUNTER : NotNull} */\r
61     protected java.lang.Integer _propertyid;\r
62 \r
63     /** The attribute of the column 'ElementID'. {INTEGER} */\r
64     protected java.lang.Integer _elementid;\r
65 \r
66     /** The attribute of the column 'Property'. {VARCHAR(255)} */\r
67     protected String _property;\r
68 \r
69     /** The attribute of the column 'VALUE'. {VARCHAR(255)} */\r
70     protected String _value;\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 'ea_guid'. {VARCHAR(40)} */\r
76     protected String _eaGuid;\r
77 \r
78     // -----------------------------------------------------\r
79     //                                              Internal\r
80     //                                              --------\r
81     /** The attribute of entity modified properties. (for S2Dao) */\r
82     protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties();\r
83     \r
84     // ===================================================================================\r
85     //                                                                         Constructor\r
86     //                                                                         ===========\r
87     public BsTOperationtag() {\r
88     }\r
89 \r
90     // ===================================================================================\r
91     //                                                                          Table Name\r
92     //                                                                          ==========\r
93     public String getTableDbName() {\r
94         return "t_operationtag";\r
95     }\r
96 \r
97     public String getTablePropertyName() {// as JavaBeansRule\r
98         return "TOperationtag";\r
99     }\r
100 \r
101     // ===================================================================================\r
102     //                                                                              DBMeta\r
103     //                                                                              ======\r
104     public DBMeta getDBMeta() {\r
105         return DBMetaInstanceHandler.findDBMeta(getTableDbName());\r
106     }\r
107 \r
108     // ===================================================================================\r
109     //                                                          Classification Classifying\r
110     //                                                          ==========================\r
111     // ===================================================================================\r
112     //                                                        Classification Determination\r
113     //                                                        ============================\r
114     // ===================================================================================\r
115     //                                                           Classification Name/Alias\r
116     //                                                           =========================\r
117     // ===================================================================================\r
118     //                                                                    Foreign Property\r
119     //                                                                    ================\r
120     // ===================================================================================\r
121     //                                                                   Referrer Property\r
122     //                                                                   =================\r
123 \r
124     // ===================================================================================\r
125     //                                                                       Determination\r
126     //                                                                       =============\r
127     public boolean hasPrimaryKeyValue() {\r
128         return false;\r
129     }\r
130 \r
131     // ===================================================================================\r
132     //                                                                 Modified Properties\r
133     //                                                                 ===================\r
134     public Set<String> getModifiedPropertyNames() {\r
135         return _modifiedProperties.getPropertyNames();\r
136     }\r
137 \r
138     protected EntityModifiedProperties newEntityModifiedProperties() {\r
139         return new EntityModifiedProperties();\r
140     }\r
141 \r
142     public void clearModifiedPropertyNames() {\r
143         _modifiedProperties.clear();\r
144     }\r
145 \r
146     public boolean hasModification() {\r
147         return !_modifiedProperties.isEmpty();\r
148     }\r
149 \r
150     // ===================================================================================\r
151     //                                                                      Basic Override\r
152     //                                                                      ==============\r
153     /**\r
154      * If the all-column value of the other is same as this one, returns true.\r
155      * @param other Other entity. (Nullable)\r
156      * @return Comparing result. If other is null, returns false.\r
157      */\r
158     public boolean equals(Object other) {\r
159         if (other == null || !(other instanceof BsTOperationtag)) { return false; }\r
160         final BsTOperationtag otherEntity = (BsTOperationtag)other;\r
161         if (!helpComparingValue(getPropertyid(), otherEntity.getPropertyid())) { return false; }\r
162         if (!helpComparingValue(getElementid(), otherEntity.getElementid())) { return false; }\r
163         if (!helpComparingValue(getProperty(), otherEntity.getProperty())) { return false; }\r
164         if (!helpComparingValue(getValue(), otherEntity.getValue())) { return false; }\r
165         if (!helpComparingValue(getNotes(), otherEntity.getNotes())) { return false; }\r
166         if (!helpComparingValue(getEaGuid(), otherEntity.getEaGuid())) { return false; }\r
167         return true;\r
168     }\r
169 \r
170     protected boolean helpComparingValue(Object value1, Object value2) {\r
171         if (value1 == null && value2 == null) { return true; }\r
172         return value1 != null && value2 != null && value1.equals(value2);\r
173     }\r
174 \r
175     /**\r
176      * Calculates hash-code from all columns.\r
177      * @return Hash-code from all-columns.\r
178      */\r
179     public int hashCode() {\r
180         int result = 17;\r
181         if (this.getPropertyid() != null) { result = result + this.getPropertyid().hashCode(); }\r
182         if (this.getElementid() != null) { result = result + this.getElementid().hashCode(); }\r
183         if (this.getProperty() != null) { result = result + this.getProperty().hashCode(); }\r
184         if (this.getValue() != null) { result = result + this.getValue().hashCode(); }\r
185         if (this.getNotes() != null) { result = result + this.getNotes().hashCode(); }\r
186         if (this.getEaGuid() != null) { result = result + this.getEaGuid().hashCode(); }\r
187         return result;\r
188     }\r
189 \r
190     /**\r
191      * @return The view string of columns. (NotNull)\r
192      */\r
193     public String toString() {\r
194         String delimiter = ",";\r
195         StringBuilder sb = new StringBuilder();\r
196         sb.append(delimiter).append(getPropertyid());\r
197         sb.append(delimiter).append(getElementid());\r
198         sb.append(delimiter).append(getProperty());\r
199         sb.append(delimiter).append(getValue());\r
200         sb.append(delimiter).append(getNotes());\r
201         sb.append(delimiter).append(getEaGuid());\r
202         if (sb.length() > 0) { sb.delete(0, delimiter.length()); }\r
203         sb.insert(0, "{").append("}");\r
204         return sb.toString();\r
205     }\r
206 \r
207     // ===================================================================================\r
208     //                                                                            Accessor\r
209     //                                                                            ========\r
210 \r
211     /** The column annotation for S2Dao. {UQ : COUNTER : NotNull} */\r
212     public static final String propertyid_COLUMN = "PropertyID";\r
213 \r
214     /**\r
215      * Get the value of the column 'PropertyID'. <br />\r
216      * {UQ : COUNTER : NotNull}\r
217      * @return The value of the column 'PropertyID'. (Nullable)\r
218      */\r
219     public java.lang.Integer getPropertyid() {\r
220         return _propertyid;\r
221     }\r
222 \r
223     /**\r
224      * Set the value of the column 'PropertyID'. <br />\r
225      * {UQ : COUNTER : NotNull}\r
226      * @param propertyid The value of the column 'PropertyID'. (Nullable)\r
227      */\r
228     public void setPropertyid(java.lang.Integer propertyid) {\r
229         _modifiedProperties.addPropertyName("propertyid");\r
230         this._propertyid = propertyid;\r
231     }\r
232 \r
233     /** The column annotation for S2Dao. {INTEGER} */\r
234     public static final String elementid_COLUMN = "ElementID";\r
235 \r
236     /**\r
237      * Get the value of the column 'ElementID'. <br />\r
238      * {INTEGER}\r
239      * @return The value of the column 'ElementID'. (Nullable)\r
240      */\r
241     public java.lang.Integer getElementid() {\r
242         return _elementid;\r
243     }\r
244 \r
245     /**\r
246      * Set the value of the column 'ElementID'. <br />\r
247      * {INTEGER}\r
248      * @param elementid The value of the column 'ElementID'. (Nullable)\r
249      */\r
250     public void setElementid(java.lang.Integer elementid) {\r
251         _modifiedProperties.addPropertyName("elementid");\r
252         this._elementid = elementid;\r
253     }\r
254 \r
255     /** The column annotation for S2Dao. {VARCHAR(255)} */\r
256     public static final String property_COLUMN = "Property";\r
257 \r
258     /**\r
259      * Get the value of the column 'Property'. <br />\r
260      * {VARCHAR(255)}\r
261      * @return The value of the column 'Property'. (Nullable)\r
262      */\r
263     public String getProperty() {\r
264         return _property;\r
265     }\r
266 \r
267     /**\r
268      * Set the value of the column 'Property'. <br />\r
269      * {VARCHAR(255)}\r
270      * @param property The value of the column 'Property'. (Nullable)\r
271      */\r
272     public void setProperty(String property) {\r
273         _modifiedProperties.addPropertyName("property");\r
274         this._property = property;\r
275     }\r
276 \r
277     /** The column annotation for S2Dao. {VARCHAR(255)} */\r
278     public static final String value_COLUMN = "VALUE";\r
279 \r
280     /**\r
281      * Get the value of the column 'VALUE'. <br />\r
282      * {VARCHAR(255)}\r
283      * @return The value of the column 'VALUE'. (Nullable)\r
284      */\r
285     public String getValue() {\r
286         return _value;\r
287     }\r
288 \r
289     /**\r
290      * Set the value of the column 'VALUE'. <br />\r
291      * {VARCHAR(255)}\r
292      * @param value The value of the column 'VALUE'. (Nullable)\r
293      */\r
294     public void setValue(String value) {\r
295         _modifiedProperties.addPropertyName("value");\r
296         this._value = value;\r
297     }\r
298 \r
299     /** The column annotation for S2Dao. {LONGCHAR(2147483647)} */\r
300     public static final String notes_COLUMN = "NOTES";\r
301 \r
302     /**\r
303      * Get the value of the column 'NOTES'. <br />\r
304      * {LONGCHAR(2147483647)}\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      * Set the value of the column 'NOTES'. <br />\r
313      * {LONGCHAR(2147483647)}\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     /** The column annotation for S2Dao. {VARCHAR(40)} */\r
322     public static final String eaGuid_COLUMN = "ea_guid";\r
323 \r
324     /**\r
325      * Get the value of the column 'ea_guid'. <br />\r
326      * {VARCHAR(40)}\r
327      * @return The value of the column 'ea_guid'. (Nullable)\r
328      */\r
329     public String getEaGuid() {\r
330         return _eaGuid;\r
331     }\r
332 \r
333     /**\r
334      * Set the value of the column 'ea_guid'. <br />\r
335      * {VARCHAR(40)}\r
336      * @param eaGuid The value of the column 'ea_guid'. (Nullable)\r
337      */\r
338     public void setEaGuid(String eaGuid) {\r
339         _modifiedProperties.addPropertyName("eaGuid");\r
340         this._eaGuid = eaGuid;\r
341     }\r
342 \r
343 }\r