OSDN Git Service

"https://svn.sourceforge.jp/svnroot/ea2ddl" にプロジェクト "ea2ddl-dao" を共用
[ea2ddl/ea2ddl.git] / ea2ddl-dao / src / main / java / jp / sourceforge / ea2ddl / dao / bsentity / BsTComplexitytypes.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_complexitytypes(TABLE).\r
11  * <pre>\r
12  * [primary-key]\r
13  *     \r
14  * \r
15  * [column]\r
16  *     Complexity, NumericWeight\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 BsTComplexitytypes 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_complexitytypes. */\r
51     public static final String TABLE = "t_complexitytypes";\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 'Complexity'. {UQ : VARCHAR(50)} */\r
61     protected String _complexity;\r
62 \r
63     /** The attribute of the column 'NumericWeight'. {INTEGER} */\r
64     protected java.lang.Integer _numericweight;\r
65 \r
66     // -----------------------------------------------------\r
67     //                                              Internal\r
68     //                                              --------\r
69     /** The attribute of entity modified properties. (for S2Dao) */\r
70     protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties();\r
71     \r
72     // ===================================================================================\r
73     //                                                                         Constructor\r
74     //                                                                         ===========\r
75     public BsTComplexitytypes() {\r
76     }\r
77 \r
78     // ===================================================================================\r
79     //                                                                          Table Name\r
80     //                                                                          ==========\r
81     public String getTableDbName() {\r
82         return "t_complexitytypes";\r
83     }\r
84 \r
85     public String getTablePropertyName() {// as JavaBeansRule\r
86         return "TComplexitytypes";\r
87     }\r
88 \r
89     // ===================================================================================\r
90     //                                                                              DBMeta\r
91     //                                                                              ======\r
92     public DBMeta getDBMeta() {\r
93         return DBMetaInstanceHandler.findDBMeta(getTableDbName());\r
94     }\r
95 \r
96     // ===================================================================================\r
97     //                                                          Classification Classifying\r
98     //                                                          ==========================\r
99     // ===================================================================================\r
100     //                                                        Classification Determination\r
101     //                                                        ============================\r
102     // ===================================================================================\r
103     //                                                           Classification Name/Alias\r
104     //                                                           =========================\r
105     // ===================================================================================\r
106     //                                                                    Foreign Property\r
107     //                                                                    ================\r
108     // ===================================================================================\r
109     //                                                                   Referrer Property\r
110     //                                                                   =================\r
111 \r
112     // ===================================================================================\r
113     //                                                                       Determination\r
114     //                                                                       =============\r
115     public boolean hasPrimaryKeyValue() {\r
116         return false;\r
117     }\r
118 \r
119     // ===================================================================================\r
120     //                                                                 Modified Properties\r
121     //                                                                 ===================\r
122     public Set<String> getModifiedPropertyNames() {\r
123         return _modifiedProperties.getPropertyNames();\r
124     }\r
125 \r
126     protected EntityModifiedProperties newEntityModifiedProperties() {\r
127         return new EntityModifiedProperties();\r
128     }\r
129 \r
130     public void clearModifiedPropertyNames() {\r
131         _modifiedProperties.clear();\r
132     }\r
133 \r
134     public boolean hasModification() {\r
135         return !_modifiedProperties.isEmpty();\r
136     }\r
137 \r
138     // ===================================================================================\r
139     //                                                                      Basic Override\r
140     //                                                                      ==============\r
141     /**\r
142      * If the all-column value of the other is same as this one, returns true.\r
143      * @param other Other entity. (Nullable)\r
144      * @return Comparing result. If other is null, returns false.\r
145      */\r
146     public boolean equals(Object other) {\r
147         if (other == null || !(other instanceof BsTComplexitytypes)) { return false; }\r
148         final BsTComplexitytypes otherEntity = (BsTComplexitytypes)other;\r
149         if (!helpComparingValue(getComplexity(), otherEntity.getComplexity())) { return false; }\r
150         if (!helpComparingValue(getNumericweight(), otherEntity.getNumericweight())) { return false; }\r
151         return true;\r
152     }\r
153 \r
154     protected boolean helpComparingValue(Object value1, Object value2) {\r
155         if (value1 == null && value2 == null) { return true; }\r
156         return value1 != null && value2 != null && value1.equals(value2);\r
157     }\r
158 \r
159     /**\r
160      * Calculates hash-code from all columns.\r
161      * @return Hash-code from all-columns.\r
162      */\r
163     public int hashCode() {\r
164         int result = 17;\r
165         if (this.getComplexity() != null) { result = result + this.getComplexity().hashCode(); }\r
166         if (this.getNumericweight() != null) { result = result + this.getNumericweight().hashCode(); }\r
167         return result;\r
168     }\r
169 \r
170     /**\r
171      * @return The view string of columns. (NotNull)\r
172      */\r
173     public String toString() {\r
174         String delimiter = ",";\r
175         StringBuilder sb = new StringBuilder();\r
176         sb.append(delimiter).append(getComplexity());\r
177         sb.append(delimiter).append(getNumericweight());\r
178         if (sb.length() > 0) { sb.delete(0, delimiter.length()); }\r
179         sb.insert(0, "{").append("}");\r
180         return sb.toString();\r
181     }\r
182 \r
183     // ===================================================================================\r
184     //                                                                            Accessor\r
185     //                                                                            ========\r
186 \r
187     /** The column annotation for S2Dao. {UQ : VARCHAR(50)} */\r
188     public static final String complexity_COLUMN = "Complexity";\r
189 \r
190     /**\r
191      * Get the value of the column 'Complexity'. <br />\r
192      * {UQ : VARCHAR(50)}\r
193      * @return The value of the column 'Complexity'. (Nullable)\r
194      */\r
195     public String getComplexity() {\r
196         return _complexity;\r
197     }\r
198 \r
199     /**\r
200      * Set the value of the column 'Complexity'. <br />\r
201      * {UQ : VARCHAR(50)}\r
202      * @param complexity The value of the column 'Complexity'. (Nullable)\r
203      */\r
204     public void setComplexity(String complexity) {\r
205         _modifiedProperties.addPropertyName("complexity");\r
206         this._complexity = complexity;\r
207     }\r
208 \r
209     /** The column annotation for S2Dao. {INTEGER} */\r
210     public static final String numericweight_COLUMN = "NumericWeight";\r
211 \r
212     /**\r
213      * Get the value of the column 'NumericWeight'. <br />\r
214      * {INTEGER}\r
215      * @return The value of the column 'NumericWeight'. (Nullable)\r
216      */\r
217     public java.lang.Integer getNumericweight() {\r
218         return _numericweight;\r
219     }\r
220 \r
221     /**\r
222      * Set the value of the column 'NumericWeight'. <br />\r
223      * {INTEGER}\r
224      * @param numericweight The value of the column 'NumericWeight'. (Nullable)\r
225      */\r
226     public void setNumericweight(java.lang.Integer numericweight) {\r
227         _modifiedProperties.addPropertyName("numericweight");\r
228         this._numericweight = numericweight;\r
229     }\r
230 \r
231 }\r