OSDN Git Service

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