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_operationparams(TABLE).
\r
16 * OperationID, Name, Type, Notes, Pos, Style, Kind, Classifier, ea_guid, StyleEx
\r
33 * [foreign-property]
\r
36 * [referrer-property]
\r
39 * @author DBFlute(AutoGenerator)
\r
41 @SuppressWarnings("unchecked")
\r
42 public abstract class BsTOperationparams 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_operationparams. */
\r
51 public static final String TABLE = "t_operationparams";
\r
54 // ===================================================================================
\r
57 // -----------------------------------------------------
\r
60 /** The attribute of the column 'OperationID'. {UQ : INTEGER} */
\r
61 protected java.lang.Integer _operationid;
\r
63 /** The attribute of the column 'Name'. {UQ : VARCHAR(255)} */
\r
64 protected String _name;
\r
66 /** The attribute of the column 'Type'. {VARCHAR(255)} */
\r
67 protected String _type;
\r
69 /** The attribute of the column 'Notes'. {LONGCHAR(2147483647)} */
\r
70 protected String _notes;
\r
72 /** The attribute of the column 'Pos'. {INTEGER} */
\r
73 protected java.lang.Integer _pos;
\r
75 /** The attribute of the column 'Style'. {VARCHAR(255)} */
\r
76 protected String _style;
\r
78 /** The attribute of the column 'Kind'. {VARCHAR(12)} */
\r
79 protected String _kind;
\r
81 /** The attribute of the column 'Classifier'. {VARCHAR(50)} */
\r
82 protected String _classifier;
\r
84 /** The attribute of the column 'ea_guid'. {VARCHAR(50)} */
\r
85 protected String _eaGuid;
\r
87 /** The attribute of the column 'StyleEx'. {LONGCHAR(2147483647)} */
\r
88 protected String _styleex;
\r
90 // -----------------------------------------------------
\r
93 /** The attribute of entity modified properties. (for S2Dao) */
\r
94 protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties();
\r
96 // ===================================================================================
\r
99 public BsTOperationparams() {
\r
102 // ===================================================================================
\r
105 public String getTableDbName() {
\r
106 return "t_operationparams";
\r
109 public String getTablePropertyName() {// as JavaBeansRule
\r
110 return "TOperationparams";
\r
113 // ===================================================================================
\r
116 public DBMeta getDBMeta() {
\r
117 return DBMetaInstanceHandler.findDBMeta(getTableDbName());
\r
120 // ===================================================================================
\r
121 // Classification Classifying
\r
122 // ==========================
\r
123 // ===================================================================================
\r
124 // Classification Determination
\r
125 // ============================
\r
126 // ===================================================================================
\r
127 // Classification Name/Alias
\r
128 // =========================
\r
129 // ===================================================================================
\r
130 // Foreign Property
\r
131 // ================
\r
132 // ===================================================================================
\r
133 // Referrer Property
\r
134 // =================
\r
136 // ===================================================================================
\r
139 public boolean hasPrimaryKeyValue() {
\r
143 // ===================================================================================
\r
144 // Modified Properties
\r
145 // ===================
\r
146 public Set<String> getModifiedPropertyNames() {
\r
147 return _modifiedProperties.getPropertyNames();
\r
150 protected EntityModifiedProperties newEntityModifiedProperties() {
\r
151 return new EntityModifiedProperties();
\r
154 public void clearModifiedPropertyNames() {
\r
155 _modifiedProperties.clear();
\r
158 public boolean hasModification() {
\r
159 return !_modifiedProperties.isEmpty();
\r
162 // ===================================================================================
\r
166 * If the all-column value of the other is same as this one, returns true.
\r
167 * @param other Other entity. (Nullable)
\r
168 * @return Comparing result. If other is null, returns false.
\r
170 public boolean equals(Object other) {
\r
171 if (other == null || !(other instanceof BsTOperationparams)) { return false; }
\r
172 final BsTOperationparams otherEntity = (BsTOperationparams)other;
\r
173 if (!helpComparingValue(getOperationid(), otherEntity.getOperationid())) { return false; }
\r
174 if (!helpComparingValue(getName(), otherEntity.getName())) { return false; }
\r
175 if (!helpComparingValue(getType(), otherEntity.getType())) { return false; }
\r
176 if (!helpComparingValue(getNotes(), otherEntity.getNotes())) { return false; }
\r
177 if (!helpComparingValue(getPos(), otherEntity.getPos())) { return false; }
\r
178 if (!helpComparingValue(getStyle(), otherEntity.getStyle())) { return false; }
\r
179 if (!helpComparingValue(getKind(), otherEntity.getKind())) { return false; }
\r
180 if (!helpComparingValue(getClassifier(), otherEntity.getClassifier())) { return false; }
\r
181 if (!helpComparingValue(getEaGuid(), otherEntity.getEaGuid())) { return false; }
\r
182 if (!helpComparingValue(getStyleex(), otherEntity.getStyleex())) { return false; }
\r
186 protected boolean helpComparingValue(Object value1, Object value2) {
\r
187 if (value1 == null && value2 == null) { return true; }
\r
188 return value1 != null && value2 != null && value1.equals(value2);
\r
192 * Calculates hash-code from all columns.
\r
193 * @return Hash-code from all-columns.
\r
195 public int hashCode() {
\r
197 if (this.getOperationid() != null) { result = result + this.getOperationid().hashCode(); }
\r
198 if (this.getName() != null) { result = result + this.getName().hashCode(); }
\r
199 if (this.getType() != null) { result = result + this.getType().hashCode(); }
\r
200 if (this.getNotes() != null) { result = result + this.getNotes().hashCode(); }
\r
201 if (this.getPos() != null) { result = result + this.getPos().hashCode(); }
\r
202 if (this.getStyle() != null) { result = result + this.getStyle().hashCode(); }
\r
203 if (this.getKind() != null) { result = result + this.getKind().hashCode(); }
\r
204 if (this.getClassifier() != null) { result = result + this.getClassifier().hashCode(); }
\r
205 if (this.getEaGuid() != null) { result = result + this.getEaGuid().hashCode(); }
\r
206 if (this.getStyleex() != null) { result = result + this.getStyleex().hashCode(); }
\r
211 * @return The view string of columns. (NotNull)
\r
213 public String toString() {
\r
214 String delimiter = ",";
\r
215 StringBuilder sb = new StringBuilder();
\r
216 sb.append(delimiter).append(getOperationid());
\r
217 sb.append(delimiter).append(getName());
\r
218 sb.append(delimiter).append(getType());
\r
219 sb.append(delimiter).append(getNotes());
\r
220 sb.append(delimiter).append(getPos());
\r
221 sb.append(delimiter).append(getStyle());
\r
222 sb.append(delimiter).append(getKind());
\r
223 sb.append(delimiter).append(getClassifier());
\r
224 sb.append(delimiter).append(getEaGuid());
\r
225 sb.append(delimiter).append(getStyleex());
\r
226 if (sb.length() > 0) { sb.delete(0, delimiter.length()); }
\r
227 sb.insert(0, "{").append("}");
\r
228 return sb.toString();
\r
231 // ===================================================================================
\r
235 /** The column annotation for S2Dao. {UQ : INTEGER} */
\r
236 public static final String operationid_COLUMN = "OperationID";
\r
239 * Get the value of the column 'OperationID'. <br />
\r
241 * @return The value of the column 'OperationID'. (Nullable)
\r
243 public java.lang.Integer getOperationid() {
\r
244 return _operationid;
\r
248 * Set the value of the column 'OperationID'. <br />
\r
250 * @param operationid The value of the column 'OperationID'. (Nullable)
\r
252 public void setOperationid(java.lang.Integer operationid) {
\r
253 _modifiedProperties.addPropertyName("operationid");
\r
254 this._operationid = operationid;
\r
257 /** The column annotation for S2Dao. {UQ : VARCHAR(255)} */
\r
258 public static final String name_COLUMN = "Name";
\r
261 * Get the value of the column 'Name'. <br />
\r
262 * {UQ : VARCHAR(255)}
\r
263 * @return The value of the column 'Name'. (Nullable)
\r
265 public String getName() {
\r
270 * Set the value of the column 'Name'. <br />
\r
271 * {UQ : VARCHAR(255)}
\r
272 * @param name The value of the column 'Name'. (Nullable)
\r
274 public void setName(String name) {
\r
275 _modifiedProperties.addPropertyName("name");
\r
279 /** The column annotation for S2Dao. {VARCHAR(255)} */
\r
280 public static final String type_COLUMN = "Type";
\r
283 * Get the value of the column 'Type'. <br />
\r
285 * @return The value of the column 'Type'. (Nullable)
\r
287 public String getType() {
\r
292 * Set the value of the column 'Type'. <br />
\r
294 * @param type The value of the column 'Type'. (Nullable)
\r
296 public void setType(String type) {
\r
297 _modifiedProperties.addPropertyName("type");
\r
301 /** The column annotation for S2Dao. {LONGCHAR(2147483647)} */
\r
302 public static final String notes_COLUMN = "Notes";
\r
305 * Get the value of the column 'Notes'. <br />
\r
306 * {LONGCHAR(2147483647)}
\r
307 * @return The value of the column 'Notes'. (Nullable)
\r
309 public String getNotes() {
\r
314 * Set the value of the column 'Notes'. <br />
\r
315 * {LONGCHAR(2147483647)}
\r
316 * @param notes The value of the column 'Notes'. (Nullable)
\r
318 public void setNotes(String notes) {
\r
319 _modifiedProperties.addPropertyName("notes");
\r
320 this._notes = notes;
\r
323 /** The column annotation for S2Dao. {INTEGER} */
\r
324 public static final String pos_COLUMN = "Pos";
\r
327 * Get the value of the column 'Pos'. <br />
\r
329 * @return The value of the column 'Pos'. (Nullable)
\r
331 public java.lang.Integer getPos() {
\r
336 * Set the value of the column 'Pos'. <br />
\r
338 * @param pos The value of the column 'Pos'. (Nullable)
\r
340 public void setPos(java.lang.Integer pos) {
\r
341 _modifiedProperties.addPropertyName("pos");
\r
345 /** The column annotation for S2Dao. {VARCHAR(255)} */
\r
346 public static final String style_COLUMN = "Style";
\r
349 * Get the value of the column 'Style'. <br />
\r
351 * @return The value of the column 'Style'. (Nullable)
\r
353 public String getStyle() {
\r
358 * Set the value of the column 'Style'. <br />
\r
360 * @param style The value of the column 'Style'. (Nullable)
\r
362 public void setStyle(String style) {
\r
363 _modifiedProperties.addPropertyName("style");
\r
364 this._style = style;
\r
367 /** The column annotation for S2Dao. {VARCHAR(12)} */
\r
368 public static final String kind_COLUMN = "Kind";
\r
371 * Get the value of the column 'Kind'. <br />
\r
373 * @return The value of the column 'Kind'. (Nullable)
\r
375 public String getKind() {
\r
380 * Set the value of the column 'Kind'. <br />
\r
382 * @param kind The value of the column 'Kind'. (Nullable)
\r
384 public void setKind(String kind) {
\r
385 _modifiedProperties.addPropertyName("kind");
\r
389 /** The column annotation for S2Dao. {VARCHAR(50)} */
\r
390 public static final String classifier_COLUMN = "Classifier";
\r
393 * Get the value of the column 'Classifier'. <br />
\r
395 * @return The value of the column 'Classifier'. (Nullable)
\r
397 public String getClassifier() {
\r
398 return _classifier;
\r
402 * Set the value of the column 'Classifier'. <br />
\r
404 * @param classifier The value of the column 'Classifier'. (Nullable)
\r
406 public void setClassifier(String classifier) {
\r
407 _modifiedProperties.addPropertyName("classifier");
\r
408 this._classifier = classifier;
\r
411 /** The column annotation for S2Dao. {VARCHAR(50)} */
\r
412 public static final String eaGuid_COLUMN = "ea_guid";
\r
415 * Get the value of the column 'ea_guid'. <br />
\r
417 * @return The value of the column 'ea_guid'. (Nullable)
\r
419 public String getEaGuid() {
\r
424 * Set the value of the column 'ea_guid'. <br />
\r
426 * @param eaGuid The value of the column 'ea_guid'. (Nullable)
\r
428 public void setEaGuid(String eaGuid) {
\r
429 _modifiedProperties.addPropertyName("eaGuid");
\r
430 this._eaGuid = eaGuid;
\r
433 /** The column annotation for S2Dao. {LONGCHAR(2147483647)} */
\r
434 public static final String styleex_COLUMN = "StyleEx";
\r
437 * Get the value of the column 'StyleEx'. <br />
\r
438 * {LONGCHAR(2147483647)}
\r
439 * @return The value of the column 'StyleEx'. (Nullable)
\r
441 public String getStyleex() {
\r
446 * Set the value of the column 'StyleEx'. <br />
\r
447 * {LONGCHAR(2147483647)}
\r
448 * @param styleex The value of the column 'StyleEx'. (Nullable)
\r
450 public void setStyleex(String styleex) {
\r
451 _modifiedProperties.addPropertyName("styleex");
\r
452 this._styleex = styleex;
\r