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_operationtag(TABLE).
\r
16 * PropertyID, ElementID, Property, VALUE, NOTES, ea_guid
\r
33 * [foreign-property]
\r
36 * [referrer-property]
\r
39 * @author DBFlute(AutoGenerator)
\r
41 @SuppressWarnings("unchecked")
\r
42 public abstract class BsTOperationtag 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_operationtag. */
\r
51 public static final String TABLE = "t_operationtag";
\r
54 // ===================================================================================
\r
57 // -----------------------------------------------------
\r
60 /** The attribute of the column 'PropertyID'. {UQ : COUNTER : NotNull} */
\r
61 protected java.lang.Integer _propertyid;
\r
63 /** The attribute of the column 'ElementID'. {INTEGER} */
\r
64 protected java.lang.Integer _elementid;
\r
66 /** The attribute of the column 'Property'. {VARCHAR(255)} */
\r
67 protected String _property;
\r
69 /** The attribute of the column 'VALUE'. {VARCHAR(255)} */
\r
70 protected String _value;
\r
72 /** The attribute of the column 'NOTES'. {LONGCHAR(2147483647)} */
\r
73 protected String _notes;
\r
75 /** The attribute of the column 'ea_guid'. {VARCHAR(40)} */
\r
76 protected String _eaGuid;
\r
78 // -----------------------------------------------------
\r
81 /** The attribute of entity modified properties. (for S2Dao) */
\r
82 protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties();
\r
84 // ===================================================================================
\r
87 public BsTOperationtag() {
\r
90 // ===================================================================================
\r
93 public String getTableDbName() {
\r
94 return "t_operationtag";
\r
97 public String getTablePropertyName() {// as JavaBeansRule
\r
98 return "TOperationtag";
\r
101 // ===================================================================================
\r
104 public DBMeta getDBMeta() {
\r
105 return DBMetaInstanceHandler.findDBMeta(getTableDbName());
\r
108 // ===================================================================================
\r
109 // Classification Classifying
\r
110 // ==========================
\r
111 // ===================================================================================
\r
112 // Classification Determination
\r
113 // ============================
\r
114 // ===================================================================================
\r
115 // Classification Name/Alias
\r
116 // =========================
\r
117 // ===================================================================================
\r
118 // Foreign Property
\r
119 // ================
\r
120 // ===================================================================================
\r
121 // Referrer Property
\r
122 // =================
\r
124 // ===================================================================================
\r
127 public boolean hasPrimaryKeyValue() {
\r
131 // ===================================================================================
\r
132 // Modified Properties
\r
133 // ===================
\r
134 public Set<String> getModifiedPropertyNames() {
\r
135 return _modifiedProperties.getPropertyNames();
\r
138 protected EntityModifiedProperties newEntityModifiedProperties() {
\r
139 return new EntityModifiedProperties();
\r
142 public void clearModifiedPropertyNames() {
\r
143 _modifiedProperties.clear();
\r
146 public boolean hasModification() {
\r
147 return !_modifiedProperties.isEmpty();
\r
150 // ===================================================================================
\r
154 * If the all-column value of the other is same as this one, returns true.
\r
155 * @param other Other entity. (Nullable)
\r
156 * @return Comparing result. If other is null, returns false.
\r
158 public boolean equals(Object other) {
\r
159 if (other == null || !(other instanceof BsTOperationtag)) { return false; }
\r
160 final BsTOperationtag otherEntity = (BsTOperationtag)other;
\r
161 if (!helpComparingValue(getPropertyid(), otherEntity.getPropertyid())) { return false; }
\r
162 if (!helpComparingValue(getElementid(), otherEntity.getElementid())) { return false; }
\r
163 if (!helpComparingValue(getProperty(), otherEntity.getProperty())) { return false; }
\r
164 if (!helpComparingValue(getValue(), otherEntity.getValue())) { return false; }
\r
165 if (!helpComparingValue(getNotes(), otherEntity.getNotes())) { return false; }
\r
166 if (!helpComparingValue(getEaGuid(), otherEntity.getEaGuid())) { return false; }
\r
170 protected boolean helpComparingValue(Object value1, Object value2) {
\r
171 if (value1 == null && value2 == null) { return true; }
\r
172 return value1 != null && value2 != null && value1.equals(value2);
\r
176 * Calculates hash-code from all columns.
\r
177 * @return Hash-code from all-columns.
\r
179 public int hashCode() {
\r
181 if (this.getPropertyid() != null) { result = result + this.getPropertyid().hashCode(); }
\r
182 if (this.getElementid() != null) { result = result + this.getElementid().hashCode(); }
\r
183 if (this.getProperty() != null) { result = result + this.getProperty().hashCode(); }
\r
184 if (this.getValue() != null) { result = result + this.getValue().hashCode(); }
\r
185 if (this.getNotes() != null) { result = result + this.getNotes().hashCode(); }
\r
186 if (this.getEaGuid() != null) { result = result + this.getEaGuid().hashCode(); }
\r
191 * @return The view string of columns. (NotNull)
\r
193 public String toString() {
\r
194 String delimiter = ",";
\r
195 StringBuilder sb = new StringBuilder();
\r
196 sb.append(delimiter).append(getPropertyid());
\r
197 sb.append(delimiter).append(getElementid());
\r
198 sb.append(delimiter).append(getProperty());
\r
199 sb.append(delimiter).append(getValue());
\r
200 sb.append(delimiter).append(getNotes());
\r
201 sb.append(delimiter).append(getEaGuid());
\r
202 if (sb.length() > 0) { sb.delete(0, delimiter.length()); }
\r
203 sb.insert(0, "{").append("}");
\r
204 return sb.toString();
\r
207 // ===================================================================================
\r
211 /** The column annotation for S2Dao. {UQ : COUNTER : NotNull} */
\r
212 public static final String propertyid_COLUMN = "PropertyID";
\r
215 * Get the value of the column 'PropertyID'. <br />
\r
216 * {UQ : COUNTER : NotNull}
\r
217 * @return The value of the column 'PropertyID'. (Nullable)
\r
219 public java.lang.Integer getPropertyid() {
\r
220 return _propertyid;
\r
224 * Set the value of the column 'PropertyID'. <br />
\r
225 * {UQ : COUNTER : NotNull}
\r
226 * @param propertyid The value of the column 'PropertyID'. (Nullable)
\r
228 public void setPropertyid(java.lang.Integer propertyid) {
\r
229 _modifiedProperties.addPropertyName("propertyid");
\r
230 this._propertyid = propertyid;
\r
233 /** The column annotation for S2Dao. {INTEGER} */
\r
234 public static final String elementid_COLUMN = "ElementID";
\r
237 * Get the value of the column 'ElementID'. <br />
\r
239 * @return The value of the column 'ElementID'. (Nullable)
\r
241 public java.lang.Integer getElementid() {
\r
246 * Set the value of the column 'ElementID'. <br />
\r
248 * @param elementid The value of the column 'ElementID'. (Nullable)
\r
250 public void setElementid(java.lang.Integer elementid) {
\r
251 _modifiedProperties.addPropertyName("elementid");
\r
252 this._elementid = elementid;
\r
255 /** The column annotation for S2Dao. {VARCHAR(255)} */
\r
256 public static final String property_COLUMN = "Property";
\r
259 * Get the value of the column 'Property'. <br />
\r
261 * @return The value of the column 'Property'. (Nullable)
\r
263 public String getProperty() {
\r
268 * Set the value of the column 'Property'. <br />
\r
270 * @param property The value of the column 'Property'. (Nullable)
\r
272 public void setProperty(String property) {
\r
273 _modifiedProperties.addPropertyName("property");
\r
274 this._property = property;
\r
277 /** The column annotation for S2Dao. {VARCHAR(255)} */
\r
278 public static final String value_COLUMN = "VALUE";
\r
281 * Get the value of the column 'VALUE'. <br />
\r
283 * @return The value of the column 'VALUE'. (Nullable)
\r
285 public String getValue() {
\r
290 * Set the value of the column 'VALUE'. <br />
\r
292 * @param value The value of the column 'VALUE'. (Nullable)
\r
294 public void setValue(String value) {
\r
295 _modifiedProperties.addPropertyName("value");
\r
296 this._value = value;
\r
299 /** The column annotation for S2Dao. {LONGCHAR(2147483647)} */
\r
300 public static final String notes_COLUMN = "NOTES";
\r
303 * Get the value of the column 'NOTES'. <br />
\r
304 * {LONGCHAR(2147483647)}
\r
305 * @return The value of the column 'NOTES'. (Nullable)
\r
307 public String getNotes() {
\r
312 * Set the value of the column 'NOTES'. <br />
\r
313 * {LONGCHAR(2147483647)}
\r
314 * @param notes The value of the column 'NOTES'. (Nullable)
\r
316 public void setNotes(String notes) {
\r
317 _modifiedProperties.addPropertyName("notes");
\r
318 this._notes = notes;
\r
321 /** The column annotation for S2Dao. {VARCHAR(40)} */
\r
322 public static final String eaGuid_COLUMN = "ea_guid";
\r
325 * Get the value of the column 'ea_guid'. <br />
\r
327 * @return The value of the column 'ea_guid'. (Nullable)
\r
329 public String getEaGuid() {
\r
334 * Set the value of the column 'ea_guid'. <br />
\r
336 * @param eaGuid The value of the column 'ea_guid'. (Nullable)
\r
338 public void setEaGuid(String eaGuid) {
\r
339 _modifiedProperties.addPropertyName("eaGuid");
\r
340 this._eaGuid = eaGuid;
\r