1 package jp.sourceforge.ea2ddl.dao.bsentity;
\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
10 * The entity of t_roleconstraint(TABLE).
\r
16 * ConnectorID, Constraint, ConnectorEnd, ConstraintType, Notes
\r
33 * [foreign-property]
\r
36 * [referrer-property]
\r
39 * @author DBFlute(AutoGenerator)
\r
41 @SuppressWarnings("unchecked")
\r
42 public abstract class BsTRoleconstraint implements Entity, java.io.Serializable {
\r
44 // ===================================================================================
\r
47 /** Serial version UID. (Default) */
\r
48 private static final long serialVersionUID = 1L;
\r
50 /** TABLE-Annotation for S2Dao. The value is t_roleconstraint. */
\r
51 public static final String TABLE = "t_roleconstraint";
\r
54 // ===================================================================================
\r
57 // -----------------------------------------------------
\r
60 /** The attribute of the column 'ConnectorID'. {UQ : INTEGER} */
\r
61 protected java.lang.Integer _connectorid;
\r
63 /** The attribute of the column 'Constraint'. {UQ : VARCHAR(255)} */
\r
64 protected String _constraint;
\r
66 /** The attribute of the column 'ConnectorEnd'. {UQ : VARCHAR(50)} */
\r
67 protected String _connectorend;
\r
69 /** The attribute of the column 'ConstraintType'. {UQ : VARCHAR(12)} */
\r
70 protected String _constrainttype;
\r
72 /** The attribute of the column 'Notes'. {LONGCHAR(2147483647)} */
\r
73 protected String _notes;
\r
75 // -----------------------------------------------------
\r
78 /** The attribute of entity modified properties. (for S2Dao) */
\r
79 protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties();
\r
81 // ===================================================================================
\r
84 public BsTRoleconstraint() {
\r
87 // ===================================================================================
\r
90 public String getTableDbName() {
\r
91 return "t_roleconstraint";
\r
94 public String getTablePropertyName() {// as JavaBeansRule
\r
95 return "TRoleconstraint";
\r
98 // ===================================================================================
\r
101 public DBMeta getDBMeta() {
\r
102 return DBMetaInstanceHandler.findDBMeta(getTableDbName());
\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
121 // ===================================================================================
\r
124 public boolean hasPrimaryKeyValue() {
\r
128 // ===================================================================================
\r
129 // Modified Properties
\r
130 // ===================
\r
131 public Set<String> getModifiedPropertyNames() {
\r
132 return _modifiedProperties.getPropertyNames();
\r
135 protected EntityModifiedProperties newEntityModifiedProperties() {
\r
136 return new EntityModifiedProperties();
\r
139 public void clearModifiedPropertyNames() {
\r
140 _modifiedProperties.clear();
\r
143 public boolean hasModification() {
\r
144 return !_modifiedProperties.isEmpty();
\r
147 // ===================================================================================
\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
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
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
172 * Calculates hash-code from all columns.
\r
173 * @return Hash-code from all-columns.
\r
175 public int hashCode() {
\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
186 * @return The view string of columns. (NotNull)
\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
201 // ===================================================================================
\r
205 /** The column annotation for S2Dao. {UQ : INTEGER} */
\r
206 public static final String connectorid_COLUMN = "ConnectorID";
\r
209 * Get the value of the column 'ConnectorID'. <br />
\r
211 * @return The value of the column 'ConnectorID'. (Nullable)
\r
213 public java.lang.Integer getConnectorid() {
\r
214 return _connectorid;
\r
218 * Set the value of the column 'ConnectorID'. <br />
\r
220 * @param connectorid The value of the column 'ConnectorID'. (Nullable)
\r
222 public void setConnectorid(java.lang.Integer connectorid) {
\r
223 _modifiedProperties.addPropertyName("connectorid");
\r
224 this._connectorid = connectorid;
\r
227 /** The column annotation for S2Dao. {UQ : VARCHAR(255)} */
\r
228 public static final String constraint_COLUMN = "Constraint";
\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
235 public String getConstraint() {
\r
236 return _constraint;
\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
244 public void setConstraint(String constraint) {
\r
245 _modifiedProperties.addPropertyName("constraint");
\r
246 this._constraint = constraint;
\r
249 /** The column annotation for S2Dao. {UQ : VARCHAR(50)} */
\r
250 public static final String connectorend_COLUMN = "ConnectorEnd";
\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
257 public String getConnectorend() {
\r
258 return _connectorend;
\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
266 public void setConnectorend(String connectorend) {
\r
267 _modifiedProperties.addPropertyName("connectorend");
\r
268 this._connectorend = connectorend;
\r
271 /** The column annotation for S2Dao. {UQ : VARCHAR(12)} */
\r
272 public static final String constrainttype_COLUMN = "ConstraintType";
\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
279 public String getConstrainttype() {
\r
280 return _constrainttype;
\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
288 public void setConstrainttype(String constrainttype) {
\r
289 _modifiedProperties.addPropertyName("constrainttype");
\r
290 this._constrainttype = constrainttype;
\r
293 /** The column annotation for S2Dao. {LONGCHAR(2147483647)} */
\r
294 public static final String notes_COLUMN = "Notes";
\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
301 public String getNotes() {
\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
310 public void setNotes(String notes) {
\r
311 _modifiedProperties.addPropertyName("notes");
\r
312 this._notes = notes;
\r