1 package jp.sourceforge.ea2ddl.dao.bsentity;
\r
3 import java.io.Serializable;
\r
6 import org.seasar.dbflute.Entity;
\r
7 import org.seasar.dbflute.dbmeta.DBMeta;
\r
8 import jp.sourceforge.ea2ddl.dao.allcommon.DBMetaInstanceHandler;
\r
11 * The entity of t_operationtag that the type is TABLE. <br />
\r
17 * PropertyID, ElementID, Property, VALUE, NOTES, ea_guid
\r
34 * [foreign-property]
\r
37 * [referrer-property]
\r
40 * @author DBFlute(AutoGenerator)
\r
42 public abstract class BsTOperationtag implements Entity, Serializable {
\r
44 // ===================================================================================
\r
47 /** Serial version UID. (Default) */
\r
48 private static final long serialVersionUID = 1L;
\r
50 // ===================================================================================
\r
53 // -----------------------------------------------------
\r
56 /** PropertyID: {UQ : NotNull : COUNTER} */
\r
57 protected java.lang.Integer _propertyid;
\r
59 /** ElementID: {INTEGER} */
\r
60 protected java.lang.Integer _elementid;
\r
62 /** Property: {VARCHAR(255)} */
\r
63 protected String _property;
\r
65 /** VALUE: {VARCHAR(255)} */
\r
66 protected String _value;
\r
68 /** NOTES: {LONGCHAR(2147483647)} */
\r
69 protected String _notes;
\r
71 /** ea_guid: {VARCHAR(40)} */
\r
72 protected String _eaGuid;
\r
74 // -----------------------------------------------------
\r
77 /** The attribute of entity modified properties. (for S2Dao) */
\r
78 protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties();
\r
80 // ===================================================================================
\r
83 public String getTableDbName() {
\r
84 return "t_operationtag";
\r
87 public String getTablePropertyName() { // as JavaBeansRule
\r
88 return "TOperationtag";
\r
91 // ===================================================================================
\r
94 public DBMeta getDBMeta() {
\r
95 return DBMetaInstanceHandler.findDBMeta(getTableDbName());
\r
98 // ===================================================================================
\r
99 // Classification Classifying
\r
100 // ==========================
\r
101 // ===================================================================================
\r
102 // Classification Determination
\r
103 // ============================
\r
104 // ===================================================================================
\r
105 // Classification Name/Alias
\r
106 // =========================
\r
107 // ===================================================================================
\r
108 // Foreign Property
\r
109 // ================
\r
110 // ===================================================================================
\r
111 // Referrer Property
\r
112 // =================
\r
113 // ===================================================================================
\r
116 public boolean hasPrimaryKeyValue() {
\r
120 // ===================================================================================
\r
121 // Modified Properties
\r
122 // ===================
\r
123 public Set<String> getModifiedPropertyNames() {
\r
124 return _modifiedProperties.getPropertyNames();
\r
127 protected EntityModifiedProperties newEntityModifiedProperties() {
\r
128 return new EntityModifiedProperties();
\r
131 public void clearModifiedPropertyNames() {
\r
132 _modifiedProperties.clear();
\r
135 public boolean hasModification() {
\r
136 return !_modifiedProperties.isEmpty();
\r
139 // ===================================================================================
\r
143 * If the all-column value of the other is same as this one, returns true.
\r
144 * @param other Other entity. (Nullable)
\r
145 * @return Comparing result. If other is null, returns false.
\r
147 public boolean equals(Object other) {
\r
148 if (other == null || !(other instanceof BsTOperationtag)) { return false; }
\r
149 final BsTOperationtag otherEntity = (BsTOperationtag)other;
\r
150 if (!helpComparingValue(getPropertyid(), otherEntity.getPropertyid())) { return false; }
\r
151 if (!helpComparingValue(getElementid(), otherEntity.getElementid())) { return false; }
\r
152 if (!helpComparingValue(getProperty(), otherEntity.getProperty())) { return false; }
\r
153 if (!helpComparingValue(getValue(), otherEntity.getValue())) { return false; }
\r
154 if (!helpComparingValue(getNotes(), otherEntity.getNotes())) { return false; }
\r
155 if (!helpComparingValue(getEaGuid(), otherEntity.getEaGuid())) { return false; }
\r
159 protected boolean helpComparingValue(Object value1, Object value2) {
\r
160 if (value1 == null && value2 == null) { return true; }
\r
161 return value1 != null && value2 != null && value1.equals(value2);
\r
165 * Calculates hash-code from all columns.
\r
166 * @return Hash-code from all-columns.
\r
168 public int hashCode() {
\r
170 if (this.getPropertyid() != null) { result = result + this.getPropertyid().hashCode(); }
\r
171 if (this.getElementid() != null) { result = result + this.getElementid().hashCode(); }
\r
172 if (this.getProperty() != null) { result = result + this.getProperty().hashCode(); }
\r
173 if (this.getValue() != null) { result = result + this.getValue().hashCode(); }
\r
174 if (this.getNotes() != null) { result = result + this.getNotes().hashCode(); }
\r
175 if (this.getEaGuid() != null) { result = result + this.getEaGuid().hashCode(); }
\r
180 * @return The view string of columns. (NotNull)
\r
182 public String toString() {
\r
183 String delimiter = ",";
\r
184 StringBuilder sb = new StringBuilder();
\r
185 sb.append(delimiter).append(getPropertyid());
\r
186 sb.append(delimiter).append(getElementid());
\r
187 sb.append(delimiter).append(getProperty());
\r
188 sb.append(delimiter).append(getValue());
\r
189 sb.append(delimiter).append(getNotes());
\r
190 sb.append(delimiter).append(getEaGuid());
\r
191 if (sb.length() > 0) { sb.delete(0, delimiter.length()); }
\r
192 sb.insert(0, "{").append("}");
\r
193 return sb.toString();
\r
196 // ===================================================================================
\r
200 * PropertyID: {UQ : NotNull : COUNTER} <br />
\r
201 * @return The value of the column 'PropertyID'. (Nullable)
\r
203 public java.lang.Integer getPropertyid() {
\r
204 return _propertyid;
\r
208 * PropertyID: {UQ : NotNull : COUNTER} <br />
\r
209 * @param propertyid The value of the column 'PropertyID'. (Nullable)
\r
211 public void setPropertyid(java.lang.Integer propertyid) {
\r
212 _modifiedProperties.addPropertyName("propertyid");
\r
213 this._propertyid = propertyid;
\r
217 * ElementID: {INTEGER} <br />
\r
218 * @return The value of the column 'ElementID'. (Nullable)
\r
220 public java.lang.Integer getElementid() {
\r
225 * ElementID: {INTEGER} <br />
\r
226 * @param elementid The value of the column 'ElementID'. (Nullable)
\r
228 public void setElementid(java.lang.Integer elementid) {
\r
229 _modifiedProperties.addPropertyName("elementid");
\r
230 this._elementid = elementid;
\r
234 * Property: {VARCHAR(255)} <br />
\r
235 * @return The value of the column 'Property'. (Nullable)
\r
237 public String getProperty() {
\r
242 * Property: {VARCHAR(255)} <br />
\r
243 * @param property The value of the column 'Property'. (Nullable)
\r
245 public void setProperty(String property) {
\r
246 _modifiedProperties.addPropertyName("property");
\r
247 this._property = property;
\r
251 * VALUE: {VARCHAR(255)} <br />
\r
252 * @return The value of the column 'VALUE'. (Nullable)
\r
254 public String getValue() {
\r
259 * VALUE: {VARCHAR(255)} <br />
\r
260 * @param value The value of the column 'VALUE'. (Nullable)
\r
262 public void setValue(String value) {
\r
263 _modifiedProperties.addPropertyName("value");
\r
264 this._value = value;
\r
268 * NOTES: {LONGCHAR(2147483647)} <br />
\r
269 * @return The value of the column 'NOTES'. (Nullable)
\r
271 public String getNotes() {
\r
276 * NOTES: {LONGCHAR(2147483647)} <br />
\r
277 * @param notes The value of the column 'NOTES'. (Nullable)
\r
279 public void setNotes(String notes) {
\r
280 _modifiedProperties.addPropertyName("notes");
\r
281 this._notes = notes;
\r
285 * ea_guid: {VARCHAR(40)} <br />
\r
286 * @return The value of the column 'ea_guid'. (Nullable)
\r
288 public String getEaGuid() {
\r
293 * ea_guid: {VARCHAR(40)} <br />
\r
294 * @param eaGuid The value of the column 'ea_guid'. (Nullable)
\r
296 public void setEaGuid(String eaGuid) {
\r
297 _modifiedProperties.addPropertyName("eaGuid");
\r
298 this._eaGuid = eaGuid;
\r