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_taggedvalue(TABLE).
\r
16 * PropertyID, ElementID, BaseClass, TagValue, Notes
\r
33 * [foreign-property]
\r
36 * [referrer-property]
\r
39 * @author DBFlute(AutoGenerator)
\r
41 @SuppressWarnings("unchecked")
\r
42 public abstract class BsTTaggedvalue 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_taggedvalue. */
\r
51 public static final String TABLE = "t_taggedvalue";
\r
54 // ===================================================================================
\r
57 // -----------------------------------------------------
\r
60 /** The attribute of the column 'PropertyID'. {UQ : VARCHAR(40)} */
\r
61 protected String _propertyid;
\r
63 /** The attribute of the column 'ElementID'. {VARCHAR(40)} */
\r
64 protected String _elementid;
\r
66 /** The attribute of the column 'BaseClass'. {VARCHAR(100)} */
\r
67 protected String _baseclass;
\r
69 /** The attribute of the column 'TagValue'. {LONGCHAR(2147483647)} */
\r
70 protected String _tagvalue;
\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 BsTTaggedvalue() {
\r
87 // ===================================================================================
\r
90 public String getTableDbName() {
\r
91 return "t_taggedvalue";
\r
94 public String getTablePropertyName() {// as JavaBeansRule
\r
95 return "TTaggedvalue";
\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 BsTTaggedvalue)) { return false; }
\r
157 final BsTTaggedvalue otherEntity = (BsTTaggedvalue)other;
\r
158 if (!helpComparingValue(getPropertyid(), otherEntity.getPropertyid())) { return false; }
\r
159 if (!helpComparingValue(getElementid(), otherEntity.getElementid())) { return false; }
\r
160 if (!helpComparingValue(getBaseclass(), otherEntity.getBaseclass())) { return false; }
\r
161 if (!helpComparingValue(getTagvalue(), otherEntity.getTagvalue())) { 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.getPropertyid() != null) { result = result + this.getPropertyid().hashCode(); }
\r
178 if (this.getElementid() != null) { result = result + this.getElementid().hashCode(); }
\r
179 if (this.getBaseclass() != null) { result = result + this.getBaseclass().hashCode(); }
\r
180 if (this.getTagvalue() != null) { result = result + this.getTagvalue().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(getPropertyid());
\r
192 sb.append(delimiter).append(getElementid());
\r
193 sb.append(delimiter).append(getBaseclass());
\r
194 sb.append(delimiter).append(getTagvalue());
\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 : VARCHAR(40)} */
\r
206 public static final String propertyid_COLUMN = "PropertyID";
\r
209 * Get the value of the column 'PropertyID'. <br />
\r
210 * {UQ : VARCHAR(40)}
\r
211 * @return The value of the column 'PropertyID'. (Nullable)
\r
213 public String getPropertyid() {
\r
214 return _propertyid;
\r
218 * Set the value of the column 'PropertyID'. <br />
\r
219 * {UQ : VARCHAR(40)}
\r
220 * @param propertyid The value of the column 'PropertyID'. (Nullable)
\r
222 public void setPropertyid(String propertyid) {
\r
223 _modifiedProperties.addPropertyName("propertyid");
\r
224 this._propertyid = propertyid;
\r
227 /** The column annotation for S2Dao. {VARCHAR(40)} */
\r
228 public static final String elementid_COLUMN = "ElementID";
\r
231 * Get the value of the column 'ElementID'. <br />
\r
233 * @return The value of the column 'ElementID'. (Nullable)
\r
235 public String getElementid() {
\r
240 * Set the value of the column 'ElementID'. <br />
\r
242 * @param elementid The value of the column 'ElementID'. (Nullable)
\r
244 public void setElementid(String elementid) {
\r
245 _modifiedProperties.addPropertyName("elementid");
\r
246 this._elementid = elementid;
\r
249 /** The column annotation for S2Dao. {VARCHAR(100)} */
\r
250 public static final String baseclass_COLUMN = "BaseClass";
\r
253 * Get the value of the column 'BaseClass'. <br />
\r
255 * @return The value of the column 'BaseClass'. (Nullable)
\r
257 public String getBaseclass() {
\r
262 * Set the value of the column 'BaseClass'. <br />
\r
264 * @param baseclass The value of the column 'BaseClass'. (Nullable)
\r
266 public void setBaseclass(String baseclass) {
\r
267 _modifiedProperties.addPropertyName("baseclass");
\r
268 this._baseclass = baseclass;
\r
271 /** The column annotation for S2Dao. {LONGCHAR(2147483647)} */
\r
272 public static final String tagvalue_COLUMN = "TagValue";
\r
275 * Get the value of the column 'TagValue'. <br />
\r
276 * {LONGCHAR(2147483647)}
\r
277 * @return The value of the column 'TagValue'. (Nullable)
\r
279 public String getTagvalue() {
\r
284 * Set the value of the column 'TagValue'. <br />
\r
285 * {LONGCHAR(2147483647)}
\r
286 * @param tagvalue The value of the column 'TagValue'. (Nullable)
\r
288 public void setTagvalue(String tagvalue) {
\r
289 _modifiedProperties.addPropertyName("tagvalue");
\r
290 this._tagvalue = tagvalue;
\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