OSDN Git Service

"https://svn.sourceforge.jp/svnroot/ea2ddl" にプロジェクト "ea2ddl-dao" を共用
[ea2ddl/ea2ddl.git] / ea2ddl-dao / src / main / java / jp / sourceforge / ea2ddl / dao / bsentity / BsTRoleconstraint.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_roleconstraint(TABLE).\r
11  * <pre>\r
12  * [primary-key]\r
13  *     \r
14  * \r
15  * [column]\r
16  *     ConnectorID, Constraint, ConnectorEnd, ConstraintType, Notes\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 BsTRoleconstraint 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_roleconstraint. */\r
51     public static final String TABLE = "t_roleconstraint";\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 'ConnectorID'. {UQ : INTEGER} */\r
61     protected java.lang.Integer _connectorid;\r
62 \r
63     /** The attribute of the column 'Constraint'. {UQ : VARCHAR(255)} */\r
64     protected String _constraint;\r
65 \r
66     /** The attribute of the column 'ConnectorEnd'. {UQ : VARCHAR(50)} */\r
67     protected String _connectorend;\r
68 \r
69     /** The attribute of the column 'ConstraintType'. {UQ : VARCHAR(12)} */\r
70     protected String _constrainttype;\r
71 \r
72     /** The attribute of the column 'Notes'. {LONGCHAR(2147483647)} */\r
73     protected String _notes;\r
74 \r
75     // -----------------------------------------------------\r
76     //                                              Internal\r
77     //                                              --------\r
78     /** The attribute of entity modified properties. (for S2Dao) */\r
79     protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties();\r
80     \r
81     // ===================================================================================\r
82     //                                                                         Constructor\r
83     //                                                                         ===========\r
84     public BsTRoleconstraint() {\r
85     }\r
86 \r
87     // ===================================================================================\r
88     //                                                                          Table Name\r
89     //                                                                          ==========\r
90     public String getTableDbName() {\r
91         return "t_roleconstraint";\r
92     }\r
93 \r
94     public String getTablePropertyName() {// as JavaBeansRule\r
95         return "TRoleconstraint";\r
96     }\r
97 \r
98     // ===================================================================================\r
99     //                                                                              DBMeta\r
100     //                                                                              ======\r
101     public DBMeta getDBMeta() {\r
102         return DBMetaInstanceHandler.findDBMeta(getTableDbName());\r
103     }\r
104 \r
105     // ===================================================================================\r
106     //                                                          Classification Classifying\r
107     //                                                          ==========================\r
108     // ===================================================================================\r
109     //                                                        Classification Determination\r
110     //                                                        ============================\r
111     // ===================================================================================\r
112     //                                                           Classification Name/Alias\r
113     //                                                           =========================\r
114     // ===================================================================================\r
115     //                                                                    Foreign Property\r
116     //                                                                    ================\r
117     // ===================================================================================\r
118     //                                                                   Referrer Property\r
119     //                                                                   =================\r
120 \r
121     // ===================================================================================\r
122     //                                                                       Determination\r
123     //                                                                       =============\r
124     public boolean hasPrimaryKeyValue() {\r
125         return false;\r
126     }\r
127 \r
128     // ===================================================================================\r
129     //                                                                 Modified Properties\r
130     //                                                                 ===================\r
131     public Set<String> getModifiedPropertyNames() {\r
132         return _modifiedProperties.getPropertyNames();\r
133     }\r
134 \r
135     protected EntityModifiedProperties newEntityModifiedProperties() {\r
136         return new EntityModifiedProperties();\r
137     }\r
138 \r
139     public void clearModifiedPropertyNames() {\r
140         _modifiedProperties.clear();\r
141     }\r
142 \r
143     public boolean hasModification() {\r
144         return !_modifiedProperties.isEmpty();\r
145     }\r
146 \r
147     // ===================================================================================\r
148     //                                                                      Basic Override\r
149     //                                                                      ==============\r
150     /**\r
151      * If the all-column value of the other is same as this one, returns true.\r
152      * @param other Other entity. (Nullable)\r
153      * @return Comparing result. If other is null, returns false.\r
154      */\r
155     public boolean equals(Object other) {\r
156         if (other == null || !(other instanceof BsTRoleconstraint)) { return false; }\r
157         final BsTRoleconstraint otherEntity = (BsTRoleconstraint)other;\r
158         if (!helpComparingValue(getConnectorid(), otherEntity.getConnectorid())) { return false; }\r
159         if (!helpComparingValue(getConstraint(), otherEntity.getConstraint())) { return false; }\r
160         if (!helpComparingValue(getConnectorend(), otherEntity.getConnectorend())) { return false; }\r
161         if (!helpComparingValue(getConstrainttype(), otherEntity.getConstrainttype())) { return false; }\r
162         if (!helpComparingValue(getNotes(), otherEntity.getNotes())) { return false; }\r
163         return true;\r
164     }\r
165 \r
166     protected boolean helpComparingValue(Object value1, Object value2) {\r
167         if (value1 == null && value2 == null) { return true; }\r
168         return value1 != null && value2 != null && value1.equals(value2);\r
169     }\r
170 \r
171     /**\r
172      * Calculates hash-code from all columns.\r
173      * @return Hash-code from all-columns.\r
174      */\r
175     public int hashCode() {\r
176         int result = 17;\r
177         if (this.getConnectorid() != null) { result = result + this.getConnectorid().hashCode(); }\r
178         if (this.getConstraint() != null) { result = result + this.getConstraint().hashCode(); }\r
179         if (this.getConnectorend() != null) { result = result + this.getConnectorend().hashCode(); }\r
180         if (this.getConstrainttype() != null) { result = result + this.getConstrainttype().hashCode(); }\r
181         if (this.getNotes() != null) { result = result + this.getNotes().hashCode(); }\r
182         return result;\r
183     }\r
184 \r
185     /**\r
186      * @return The view string of columns. (NotNull)\r
187      */\r
188     public String toString() {\r
189         String delimiter = ",";\r
190         StringBuilder sb = new StringBuilder();\r
191         sb.append(delimiter).append(getConnectorid());\r
192         sb.append(delimiter).append(getConstraint());\r
193         sb.append(delimiter).append(getConnectorend());\r
194         sb.append(delimiter).append(getConstrainttype());\r
195         sb.append(delimiter).append(getNotes());\r
196         if (sb.length() > 0) { sb.delete(0, delimiter.length()); }\r
197         sb.insert(0, "{").append("}");\r
198         return sb.toString();\r
199     }\r
200 \r
201     // ===================================================================================\r
202     //                                                                            Accessor\r
203     //                                                                            ========\r
204 \r
205     /** The column annotation for S2Dao. {UQ : INTEGER} */\r
206     public static final String connectorid_COLUMN = "ConnectorID";\r
207 \r
208     /**\r
209      * Get the value of the column 'ConnectorID'. <br />\r
210      * {UQ : INTEGER}\r
211      * @return The value of the column 'ConnectorID'. (Nullable)\r
212      */\r
213     public java.lang.Integer getConnectorid() {\r
214         return _connectorid;\r
215     }\r
216 \r
217     /**\r
218      * Set the value of the column 'ConnectorID'. <br />\r
219      * {UQ : INTEGER}\r
220      * @param connectorid The value of the column 'ConnectorID'. (Nullable)\r
221      */\r
222     public void setConnectorid(java.lang.Integer connectorid) {\r
223         _modifiedProperties.addPropertyName("connectorid");\r
224         this._connectorid = connectorid;\r
225     }\r
226 \r
227     /** The column annotation for S2Dao. {UQ : VARCHAR(255)} */\r
228     public static final String constraint_COLUMN = "Constraint";\r
229 \r
230     /**\r
231      * Get the value of the column 'Constraint'. <br />\r
232      * {UQ : VARCHAR(255)}\r
233      * @return The value of the column 'Constraint'. (Nullable)\r
234      */\r
235     public String getConstraint() {\r
236         return _constraint;\r
237     }\r
238 \r
239     /**\r
240      * Set the value of the column 'Constraint'. <br />\r
241      * {UQ : VARCHAR(255)}\r
242      * @param constraint The value of the column 'Constraint'. (Nullable)\r
243      */\r
244     public void setConstraint(String constraint) {\r
245         _modifiedProperties.addPropertyName("constraint");\r
246         this._constraint = constraint;\r
247     }\r
248 \r
249     /** The column annotation for S2Dao. {UQ : VARCHAR(50)} */\r
250     public static final String connectorend_COLUMN = "ConnectorEnd";\r
251 \r
252     /**\r
253      * Get the value of the column 'ConnectorEnd'. <br />\r
254      * {UQ : VARCHAR(50)}\r
255      * @return The value of the column 'ConnectorEnd'. (Nullable)\r
256      */\r
257     public String getConnectorend() {\r
258         return _connectorend;\r
259     }\r
260 \r
261     /**\r
262      * Set the value of the column 'ConnectorEnd'. <br />\r
263      * {UQ : VARCHAR(50)}\r
264      * @param connectorend The value of the column 'ConnectorEnd'. (Nullable)\r
265      */\r
266     public void setConnectorend(String connectorend) {\r
267         _modifiedProperties.addPropertyName("connectorend");\r
268         this._connectorend = connectorend;\r
269     }\r
270 \r
271     /** The column annotation for S2Dao. {UQ : VARCHAR(12)} */\r
272     public static final String constrainttype_COLUMN = "ConstraintType";\r
273 \r
274     /**\r
275      * Get the value of the column 'ConstraintType'. <br />\r
276      * {UQ : VARCHAR(12)}\r
277      * @return The value of the column 'ConstraintType'. (Nullable)\r
278      */\r
279     public String getConstrainttype() {\r
280         return _constrainttype;\r
281     }\r
282 \r
283     /**\r
284      * Set the value of the column 'ConstraintType'. <br />\r
285      * {UQ : VARCHAR(12)}\r
286      * @param constrainttype The value of the column 'ConstraintType'. (Nullable)\r
287      */\r
288     public void setConstrainttype(String constrainttype) {\r
289         _modifiedProperties.addPropertyName("constrainttype");\r
290         this._constrainttype = constrainttype;\r
291     }\r
292 \r
293     /** The column annotation for S2Dao. {LONGCHAR(2147483647)} */\r
294     public static final String notes_COLUMN = "Notes";\r
295 \r
296     /**\r
297      * Get the value of the column 'Notes'. <br />\r
298      * {LONGCHAR(2147483647)}\r
299      * @return The value of the column 'Notes'. (Nullable)\r
300      */\r
301     public String getNotes() {\r
302         return _notes;\r
303     }\r
304 \r
305     /**\r
306      * Set the value of the column 'Notes'. <br />\r
307      * {LONGCHAR(2147483647)}\r
308      * @param notes The value of the column 'Notes'. (Nullable)\r
309      */\r
310     public void setNotes(String notes) {\r
311         _modifiedProperties.addPropertyName("notes");\r
312         this._notes = notes;\r
313     }\r
314 \r
315 }\r