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_objecttests(TABLE).
\r
16 * Object_ID, Test, TestClass, TestType, Notes, InputData, AcceptanceCriteria, Status, DateRun, Results, RunBy, CheckBy
\r
33 * [foreign-property]
\r
36 * [referrer-property]
\r
39 * @author DBFlute(AutoGenerator)
\r
41 @SuppressWarnings("unchecked")
\r
42 public abstract class BsTObjecttests 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_objecttests. */
\r
51 public static final String TABLE = "t_objecttests";
\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 'Test'. {UQ : VARCHAR(255)} */
\r
64 protected String _test;
\r
66 /** The attribute of the column 'TestClass'. {UQ : INTEGER} */
\r
67 protected java.lang.Integer _testclass;
\r
69 /** The attribute of the column 'TestType'. {VARCHAR(50)} */
\r
70 protected String _testtype;
\r
72 /** The attribute of the column 'Notes'. {LONGCHAR(2147483647)} */
\r
73 protected String _notes;
\r
75 /** The attribute of the column 'InputData'. {LONGCHAR(2147483647)} */
\r
76 protected String _inputdata;
\r
78 /** The attribute of the column 'AcceptanceCriteria'. {LONGCHAR(2147483647)} */
\r
79 protected String _acceptancecriteria;
\r
81 /** The attribute of the column 'Status'. {VARCHAR(32)} */
\r
82 protected String _status;
\r
84 /** The attribute of the column 'DateRun'. {DATETIME} */
\r
85 protected java.sql.Timestamp _daterun;
\r
87 /** The attribute of the column 'Results'. {LONGCHAR(2147483647)} */
\r
88 protected String _results;
\r
90 /** The attribute of the column 'RunBy'. {VARCHAR(255)} */
\r
91 protected String _runby;
\r
93 /** The attribute of the column 'CheckBy'. {VARCHAR(255)} */
\r
94 protected String _checkby;
\r
96 // -----------------------------------------------------
\r
99 /** The attribute of entity modified properties. (for S2Dao) */
\r
100 protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties();
\r
102 // ===================================================================================
\r
105 public BsTObjecttests() {
\r
108 // ===================================================================================
\r
111 public String getTableDbName() {
\r
112 return "t_objecttests";
\r
115 public String getTablePropertyName() {// as JavaBeansRule
\r
116 return "TObjecttests";
\r
119 // ===================================================================================
\r
122 public DBMeta getDBMeta() {
\r
123 return DBMetaInstanceHandler.findDBMeta(getTableDbName());
\r
126 // ===================================================================================
\r
127 // Classification Classifying
\r
128 // ==========================
\r
129 // ===================================================================================
\r
130 // Classification Determination
\r
131 // ============================
\r
132 // ===================================================================================
\r
133 // Classification Name/Alias
\r
134 // =========================
\r
135 // ===================================================================================
\r
136 // Foreign Property
\r
137 // ================
\r
138 // ===================================================================================
\r
139 // Referrer Property
\r
140 // =================
\r
142 // ===================================================================================
\r
145 public boolean hasPrimaryKeyValue() {
\r
149 // ===================================================================================
\r
150 // Modified Properties
\r
151 // ===================
\r
152 public Set<String> getModifiedPropertyNames() {
\r
153 return _modifiedProperties.getPropertyNames();
\r
156 protected EntityModifiedProperties newEntityModifiedProperties() {
\r
157 return new EntityModifiedProperties();
\r
160 public void clearModifiedPropertyNames() {
\r
161 _modifiedProperties.clear();
\r
164 public boolean hasModification() {
\r
165 return !_modifiedProperties.isEmpty();
\r
168 // ===================================================================================
\r
172 * If the all-column value of the other is same as this one, returns true.
\r
173 * @param other Other entity. (Nullable)
\r
174 * @return Comparing result. If other is null, returns false.
\r
176 public boolean equals(Object other) {
\r
177 if (other == null || !(other instanceof BsTObjecttests)) { return false; }
\r
178 final BsTObjecttests otherEntity = (BsTObjecttests)other;
\r
179 if (!helpComparingValue(getObjectId(), otherEntity.getObjectId())) { return false; }
\r
180 if (!helpComparingValue(getTest(), otherEntity.getTest())) { return false; }
\r
181 if (!helpComparingValue(getTestclass(), otherEntity.getTestclass())) { return false; }
\r
182 if (!helpComparingValue(getTesttype(), otherEntity.getTesttype())) { return false; }
\r
183 if (!helpComparingValue(getNotes(), otherEntity.getNotes())) { return false; }
\r
184 if (!helpComparingValue(getInputdata(), otherEntity.getInputdata())) { return false; }
\r
185 if (!helpComparingValue(getAcceptancecriteria(), otherEntity.getAcceptancecriteria())) { return false; }
\r
186 if (!helpComparingValue(getStatus(), otherEntity.getStatus())) { return false; }
\r
187 if (!helpComparingValue(getDaterun(), otherEntity.getDaterun())) { return false; }
\r
188 if (!helpComparingValue(getResults(), otherEntity.getResults())) { return false; }
\r
189 if (!helpComparingValue(getRunby(), otherEntity.getRunby())) { return false; }
\r
190 if (!helpComparingValue(getCheckby(), otherEntity.getCheckby())) { return false; }
\r
194 protected boolean helpComparingValue(Object value1, Object value2) {
\r
195 if (value1 == null && value2 == null) { return true; }
\r
196 return value1 != null && value2 != null && value1.equals(value2);
\r
200 * Calculates hash-code from all columns.
\r
201 * @return Hash-code from all-columns.
\r
203 public int hashCode() {
\r
205 if (this.getObjectId() != null) { result = result + this.getObjectId().hashCode(); }
\r
206 if (this.getTest() != null) { result = result + this.getTest().hashCode(); }
\r
207 if (this.getTestclass() != null) { result = result + this.getTestclass().hashCode(); }
\r
208 if (this.getTesttype() != null) { result = result + this.getTesttype().hashCode(); }
\r
209 if (this.getNotes() != null) { result = result + this.getNotes().hashCode(); }
\r
210 if (this.getInputdata() != null) { result = result + this.getInputdata().hashCode(); }
\r
211 if (this.getAcceptancecriteria() != null) { result = result + this.getAcceptancecriteria().hashCode(); }
\r
212 if (this.getStatus() != null) { result = result + this.getStatus().hashCode(); }
\r
213 if (this.getDaterun() != null) { result = result + this.getDaterun().hashCode(); }
\r
214 if (this.getResults() != null) { result = result + this.getResults().hashCode(); }
\r
215 if (this.getRunby() != null) { result = result + this.getRunby().hashCode(); }
\r
216 if (this.getCheckby() != null) { result = result + this.getCheckby().hashCode(); }
\r
221 * @return The view string of columns. (NotNull)
\r
223 public String toString() {
\r
224 String delimiter = ",";
\r
225 StringBuilder sb = new StringBuilder();
\r
226 sb.append(delimiter).append(getObjectId());
\r
227 sb.append(delimiter).append(getTest());
\r
228 sb.append(delimiter).append(getTestclass());
\r
229 sb.append(delimiter).append(getTesttype());
\r
230 sb.append(delimiter).append(getNotes());
\r
231 sb.append(delimiter).append(getInputdata());
\r
232 sb.append(delimiter).append(getAcceptancecriteria());
\r
233 sb.append(delimiter).append(getStatus());
\r
234 sb.append(delimiter).append(getDaterun());
\r
235 sb.append(delimiter).append(getResults());
\r
236 sb.append(delimiter).append(getRunby());
\r
237 sb.append(delimiter).append(getCheckby());
\r
238 if (sb.length() > 0) { sb.delete(0, delimiter.length()); }
\r
239 sb.insert(0, "{").append("}");
\r
240 return sb.toString();
\r
243 // ===================================================================================
\r
247 /** The column annotation for S2Dao. {UQ : INTEGER} */
\r
248 public static final String objectId_COLUMN = "Object_ID";
\r
251 * Get the value of the column 'Object_ID'. <br />
\r
253 * @return The value of the column 'Object_ID'. (Nullable)
\r
255 public java.lang.Integer getObjectId() {
\r
260 * Set the value of the column 'Object_ID'. <br />
\r
262 * @param objectId The value of the column 'Object_ID'. (Nullable)
\r
264 public void setObjectId(java.lang.Integer objectId) {
\r
265 _modifiedProperties.addPropertyName("objectId");
\r
266 this._objectId = objectId;
\r
269 /** The column annotation for S2Dao. {UQ : VARCHAR(255)} */
\r
270 public static final String test_COLUMN = "Test";
\r
273 * Get the value of the column 'Test'. <br />
\r
274 * {UQ : VARCHAR(255)}
\r
275 * @return The value of the column 'Test'. (Nullable)
\r
277 public String getTest() {
\r
282 * Set the value of the column 'Test'. <br />
\r
283 * {UQ : VARCHAR(255)}
\r
284 * @param test The value of the column 'Test'. (Nullable)
\r
286 public void setTest(String test) {
\r
287 _modifiedProperties.addPropertyName("test");
\r
291 /** The column annotation for S2Dao. {UQ : INTEGER} */
\r
292 public static final String testclass_COLUMN = "TestClass";
\r
295 * Get the value of the column 'TestClass'. <br />
\r
297 * @return The value of the column 'TestClass'. (Nullable)
\r
299 public java.lang.Integer getTestclass() {
\r
304 * Set the value of the column 'TestClass'. <br />
\r
306 * @param testclass The value of the column 'TestClass'. (Nullable)
\r
308 public void setTestclass(java.lang.Integer testclass) {
\r
309 _modifiedProperties.addPropertyName("testclass");
\r
310 this._testclass = testclass;
\r
313 /** The column annotation for S2Dao. {VARCHAR(50)} */
\r
314 public static final String testtype_COLUMN = "TestType";
\r
317 * Get the value of the column 'TestType'. <br />
\r
319 * @return The value of the column 'TestType'. (Nullable)
\r
321 public String getTesttype() {
\r
326 * Set the value of the column 'TestType'. <br />
\r
328 * @param testtype The value of the column 'TestType'. (Nullable)
\r
330 public void setTesttype(String testtype) {
\r
331 _modifiedProperties.addPropertyName("testtype");
\r
332 this._testtype = testtype;
\r
335 /** The column annotation for S2Dao. {LONGCHAR(2147483647)} */
\r
336 public static final String notes_COLUMN = "Notes";
\r
339 * Get the value of the column 'Notes'. <br />
\r
340 * {LONGCHAR(2147483647)}
\r
341 * @return The value of the column 'Notes'. (Nullable)
\r
343 public String getNotes() {
\r
348 * Set the value of the column 'Notes'. <br />
\r
349 * {LONGCHAR(2147483647)}
\r
350 * @param notes The value of the column 'Notes'. (Nullable)
\r
352 public void setNotes(String notes) {
\r
353 _modifiedProperties.addPropertyName("notes");
\r
354 this._notes = notes;
\r
357 /** The column annotation for S2Dao. {LONGCHAR(2147483647)} */
\r
358 public static final String inputdata_COLUMN = "InputData";
\r
361 * Get the value of the column 'InputData'. <br />
\r
362 * {LONGCHAR(2147483647)}
\r
363 * @return The value of the column 'InputData'. (Nullable)
\r
365 public String getInputdata() {
\r
370 * Set the value of the column 'InputData'. <br />
\r
371 * {LONGCHAR(2147483647)}
\r
372 * @param inputdata The value of the column 'InputData'. (Nullable)
\r
374 public void setInputdata(String inputdata) {
\r
375 _modifiedProperties.addPropertyName("inputdata");
\r
376 this._inputdata = inputdata;
\r
379 /** The column annotation for S2Dao. {LONGCHAR(2147483647)} */
\r
380 public static final String acceptancecriteria_COLUMN = "AcceptanceCriteria";
\r
383 * Get the value of the column 'AcceptanceCriteria'. <br />
\r
384 * {LONGCHAR(2147483647)}
\r
385 * @return The value of the column 'AcceptanceCriteria'. (Nullable)
\r
387 public String getAcceptancecriteria() {
\r
388 return _acceptancecriteria;
\r
392 * Set the value of the column 'AcceptanceCriteria'. <br />
\r
393 * {LONGCHAR(2147483647)}
\r
394 * @param acceptancecriteria The value of the column 'AcceptanceCriteria'. (Nullable)
\r
396 public void setAcceptancecriteria(String acceptancecriteria) {
\r
397 _modifiedProperties.addPropertyName("acceptancecriteria");
\r
398 this._acceptancecriteria = acceptancecriteria;
\r
401 /** The column annotation for S2Dao. {VARCHAR(32)} */
\r
402 public static final String status_COLUMN = "Status";
\r
405 * Get the value of the column 'Status'. <br />
\r
407 * @return The value of the column 'Status'. (Nullable)
\r
409 public String getStatus() {
\r
414 * Set the value of the column 'Status'. <br />
\r
416 * @param status The value of the column 'Status'. (Nullable)
\r
418 public void setStatus(String status) {
\r
419 _modifiedProperties.addPropertyName("status");
\r
420 this._status = status;
\r
423 /** The column annotation for S2Dao. {DATETIME} */
\r
424 public static final String daterun_COLUMN = "DateRun";
\r
427 * Get the value of the column 'DateRun'. <br />
\r
429 * @return The value of the column 'DateRun'. (Nullable)
\r
431 public java.sql.Timestamp getDaterun() {
\r
436 * Set the value of the column 'DateRun'. <br />
\r
438 * @param daterun The value of the column 'DateRun'. (Nullable)
\r
440 public void setDaterun(java.sql.Timestamp daterun) {
\r
441 _modifiedProperties.addPropertyName("daterun");
\r
442 this._daterun = daterun;
\r
445 /** The column annotation for S2Dao. {LONGCHAR(2147483647)} */
\r
446 public static final String results_COLUMN = "Results";
\r
449 * Get the value of the column 'Results'. <br />
\r
450 * {LONGCHAR(2147483647)}
\r
451 * @return The value of the column 'Results'. (Nullable)
\r
453 public String getResults() {
\r
458 * Set the value of the column 'Results'. <br />
\r
459 * {LONGCHAR(2147483647)}
\r
460 * @param results The value of the column 'Results'. (Nullable)
\r
462 public void setResults(String results) {
\r
463 _modifiedProperties.addPropertyName("results");
\r
464 this._results = results;
\r
467 /** The column annotation for S2Dao. {VARCHAR(255)} */
\r
468 public static final String runby_COLUMN = "RunBy";
\r
471 * Get the value of the column 'RunBy'. <br />
\r
473 * @return The value of the column 'RunBy'. (Nullable)
\r
475 public String getRunby() {
\r
480 * Set the value of the column 'RunBy'. <br />
\r
482 * @param runby The value of the column 'RunBy'. (Nullable)
\r
484 public void setRunby(String runby) {
\r
485 _modifiedProperties.addPropertyName("runby");
\r
486 this._runby = runby;
\r
489 /** The column annotation for S2Dao. {VARCHAR(255)} */
\r
490 public static final String checkby_COLUMN = "CheckBy";
\r
493 * Get the value of the column 'CheckBy'. <br />
\r
495 * @return The value of the column 'CheckBy'. (Nullable)
\r
497 public String getCheckby() {
\r
502 * Set the value of the column 'CheckBy'. <br />
\r
504 * @param checkby The value of the column 'CheckBy'. (Nullable)
\r
506 public void setCheckby(String checkby) {
\r
507 _modifiedProperties.addPropertyName("checkby");
\r
508 this._checkby = checkby;
\r