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_objecteffort(TABLE).
\r
16 * Object_ID, Effort, EffortType, EValue, Notes
\r
33 * [foreign-property]
\r
36 * [referrer-property]
\r
39 * @author DBFlute(AutoGenerator)
\r
41 @SuppressWarnings("unchecked")
\r
42 public abstract class BsTObjecteffort 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_objecteffort. */
\r
51 public static final String TABLE = "t_objecteffort";
\r
54 // ===================================================================================
\r
57 // -----------------------------------------------------
\r
60 /** The attribute of the column 'Object_ID'. {UQ : INTEGER} */
\r
61 protected java.lang.Integer _objectId;
\r
63 /** The attribute of the column 'Effort'. {UQ : VARCHAR(255)} */
\r
64 protected String _effort;
\r
66 /** The attribute of the column 'EffortType'. {VARCHAR(12)} */
\r
67 protected String _efforttype;
\r
69 /** The attribute of the column 'EValue'. {DOUBLE} */
\r
70 protected java.math.BigDecimal _evalue;
\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 BsTObjecteffort() {
\r
87 // ===================================================================================
\r
90 public String getTableDbName() {
\r
91 return "t_objecteffort";
\r
94 public String getTablePropertyName() {// as JavaBeansRule
\r
95 return "TObjecteffort";
\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 BsTObjecteffort)) { return false; }
\r
157 final BsTObjecteffort otherEntity = (BsTObjecteffort)other;
\r
158 if (!helpComparingValue(getObjectId(), otherEntity.getObjectId())) { return false; }
\r
159 if (!helpComparingValue(getEffort(), otherEntity.getEffort())) { return false; }
\r
160 if (!helpComparingValue(getEfforttype(), otherEntity.getEfforttype())) { return false; }
\r
161 if (!helpComparingValue(getEvalue(), otherEntity.getEvalue())) { 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.getObjectId() != null) { result = result + this.getObjectId().hashCode(); }
\r
178 if (this.getEffort() != null) { result = result + this.getEffort().hashCode(); }
\r
179 if (this.getEfforttype() != null) { result = result + this.getEfforttype().hashCode(); }
\r
180 if (this.getEvalue() != null) { result = result + this.getEvalue().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(getObjectId());
\r
192 sb.append(delimiter).append(getEffort());
\r
193 sb.append(delimiter).append(getEfforttype());
\r
194 sb.append(delimiter).append(getEvalue());
\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 objectId_COLUMN = "Object_ID";
\r
209 * Get the value of the column 'Object_ID'. <br />
\r
211 * @return The value of the column 'Object_ID'. (Nullable)
\r
213 public java.lang.Integer getObjectId() {
\r
218 * Set the value of the column 'Object_ID'. <br />
\r
220 * @param objectId The value of the column 'Object_ID'. (Nullable)
\r
222 public void setObjectId(java.lang.Integer objectId) {
\r
223 _modifiedProperties.addPropertyName("objectId");
\r
224 this._objectId = objectId;
\r
227 /** The column annotation for S2Dao. {UQ : VARCHAR(255)} */
\r
228 public static final String effort_COLUMN = "Effort";
\r
231 * Get the value of the column 'Effort'. <br />
\r
232 * {UQ : VARCHAR(255)}
\r
233 * @return The value of the column 'Effort'. (Nullable)
\r
235 public String getEffort() {
\r
240 * Set the value of the column 'Effort'. <br />
\r
241 * {UQ : VARCHAR(255)}
\r
242 * @param effort The value of the column 'Effort'. (Nullable)
\r
244 public void setEffort(String effort) {
\r
245 _modifiedProperties.addPropertyName("effort");
\r
246 this._effort = effort;
\r
249 /** The column annotation for S2Dao. {VARCHAR(12)} */
\r
250 public static final String efforttype_COLUMN = "EffortType";
\r
253 * Get the value of the column 'EffortType'. <br />
\r
255 * @return The value of the column 'EffortType'. (Nullable)
\r
257 public String getEfforttype() {
\r
258 return _efforttype;
\r
262 * Set the value of the column 'EffortType'. <br />
\r
264 * @param efforttype The value of the column 'EffortType'. (Nullable)
\r
266 public void setEfforttype(String efforttype) {
\r
267 _modifiedProperties.addPropertyName("efforttype");
\r
268 this._efforttype = efforttype;
\r
271 /** The column annotation for S2Dao. {DOUBLE} */
\r
272 public static final String evalue_COLUMN = "EValue";
\r
275 * Get the value of the column 'EValue'. <br />
\r
277 * @return The value of the column 'EValue'. (Nullable)
\r
279 public java.math.BigDecimal getEvalue() {
\r
284 * Set the value of the column 'EValue'. <br />
\r
286 * @param evalue The value of the column 'EValue'. (Nullable)
\r
288 public void setEvalue(java.math.BigDecimal evalue) {
\r
289 _modifiedProperties.addPropertyName("evalue");
\r
290 this._evalue = evalue;
\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