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_objecttests that the type is TABLE. <br />
\r
17 * Object_ID, Test, TestClass, TestType, Notes, InputData, AcceptanceCriteria, Status, DateRun, Results, RunBy, CheckBy
\r
34 * [foreign-property]
\r
37 * [referrer-property]
\r
40 * @author DBFlute(AutoGenerator)
\r
42 public abstract class BsTObjecttests 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 /** Object_ID: {UQ : INTEGER} */
\r
57 protected java.lang.Integer _objectId;
\r
59 /** Test: {UQ : VARCHAR(255)} */
\r
60 protected String _test;
\r
62 /** TestClass: {UQ : INTEGER} */
\r
63 protected java.lang.Integer _testclass;
\r
65 /** TestType: {VARCHAR(50)} */
\r
66 protected String _testtype;
\r
68 /** Notes: {LONGCHAR(2147483647)} */
\r
69 protected String _notes;
\r
71 /** InputData: {LONGCHAR(2147483647)} */
\r
72 protected String _inputdata;
\r
74 /** AcceptanceCriteria: {LONGCHAR(2147483647)} */
\r
75 protected String _acceptancecriteria;
\r
77 /** Status: {VARCHAR(32)} */
\r
78 protected String _status;
\r
80 /** DateRun: {DATETIME} */
\r
81 protected java.sql.Timestamp _daterun;
\r
83 /** Results: {LONGCHAR(2147483647)} */
\r
84 protected String _results;
\r
86 /** RunBy: {VARCHAR(255)} */
\r
87 protected String _runby;
\r
89 /** CheckBy: {VARCHAR(255)} */
\r
90 protected String _checkby;
\r
92 // -----------------------------------------------------
\r
95 /** The attribute of entity modified properties. (for S2Dao) */
\r
96 protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties();
\r
98 // ===================================================================================
\r
101 public String getTableDbName() {
\r
102 return "t_objecttests";
\r
105 public String getTablePropertyName() { // as JavaBeansRule
\r
106 return "TObjecttests";
\r
109 // ===================================================================================
\r
112 public DBMeta getDBMeta() {
\r
113 return DBMetaInstanceHandler.findDBMeta(getTableDbName());
\r
116 // ===================================================================================
\r
117 // Classification Classifying
\r
118 // ==========================
\r
119 // ===================================================================================
\r
120 // Classification Determination
\r
121 // ============================
\r
122 // ===================================================================================
\r
123 // Classification Name/Alias
\r
124 // =========================
\r
125 // ===================================================================================
\r
126 // Foreign Property
\r
127 // ================
\r
128 // ===================================================================================
\r
129 // Referrer Property
\r
130 // =================
\r
131 // ===================================================================================
\r
134 public boolean hasPrimaryKeyValue() {
\r
138 // ===================================================================================
\r
139 // Modified Properties
\r
140 // ===================
\r
141 public Set<String> getModifiedPropertyNames() {
\r
142 return _modifiedProperties.getPropertyNames();
\r
145 protected EntityModifiedProperties newEntityModifiedProperties() {
\r
146 return new EntityModifiedProperties();
\r
149 public void clearModifiedPropertyNames() {
\r
150 _modifiedProperties.clear();
\r
153 public boolean hasModification() {
\r
154 return !_modifiedProperties.isEmpty();
\r
157 // ===================================================================================
\r
161 * If the all-column value of the other is same as this one, returns true.
\r
162 * @param other Other entity. (Nullable)
\r
163 * @return Comparing result. If other is null, returns false.
\r
165 public boolean equals(Object other) {
\r
166 if (other == null || !(other instanceof BsTObjecttests)) { return false; }
\r
167 final BsTObjecttests otherEntity = (BsTObjecttests)other;
\r
168 if (!helpComparingValue(getObjectId(), otherEntity.getObjectId())) { return false; }
\r
169 if (!helpComparingValue(getTest(), otherEntity.getTest())) { return false; }
\r
170 if (!helpComparingValue(getTestclass(), otherEntity.getTestclass())) { return false; }
\r
171 if (!helpComparingValue(getTesttype(), otherEntity.getTesttype())) { return false; }
\r
172 if (!helpComparingValue(getNotes(), otherEntity.getNotes())) { return false; }
\r
173 if (!helpComparingValue(getInputdata(), otherEntity.getInputdata())) { return false; }
\r
174 if (!helpComparingValue(getAcceptancecriteria(), otherEntity.getAcceptancecriteria())) { return false; }
\r
175 if (!helpComparingValue(getStatus(), otherEntity.getStatus())) { return false; }
\r
176 if (!helpComparingValue(getDaterun(), otherEntity.getDaterun())) { return false; }
\r
177 if (!helpComparingValue(getResults(), otherEntity.getResults())) { return false; }
\r
178 if (!helpComparingValue(getRunby(), otherEntity.getRunby())) { return false; }
\r
179 if (!helpComparingValue(getCheckby(), otherEntity.getCheckby())) { return false; }
\r
183 protected boolean helpComparingValue(Object value1, Object value2) {
\r
184 if (value1 == null && value2 == null) { return true; }
\r
185 return value1 != null && value2 != null && value1.equals(value2);
\r
189 * Calculates hash-code from all columns.
\r
190 * @return Hash-code from all-columns.
\r
192 public int hashCode() {
\r
194 if (this.getObjectId() != null) { result = result + this.getObjectId().hashCode(); }
\r
195 if (this.getTest() != null) { result = result + this.getTest().hashCode(); }
\r
196 if (this.getTestclass() != null) { result = result + this.getTestclass().hashCode(); }
\r
197 if (this.getTesttype() != null) { result = result + this.getTesttype().hashCode(); }
\r
198 if (this.getNotes() != null) { result = result + this.getNotes().hashCode(); }
\r
199 if (this.getInputdata() != null) { result = result + this.getInputdata().hashCode(); }
\r
200 if (this.getAcceptancecriteria() != null) { result = result + this.getAcceptancecriteria().hashCode(); }
\r
201 if (this.getStatus() != null) { result = result + this.getStatus().hashCode(); }
\r
202 if (this.getDaterun() != null) { result = result + this.getDaterun().hashCode(); }
\r
203 if (this.getResults() != null) { result = result + this.getResults().hashCode(); }
\r
204 if (this.getRunby() != null) { result = result + this.getRunby().hashCode(); }
\r
205 if (this.getCheckby() != null) { result = result + this.getCheckby().hashCode(); }
\r
210 * @return The view string of columns. (NotNull)
\r
212 public String toString() {
\r
213 String delimiter = ",";
\r
214 StringBuilder sb = new StringBuilder();
\r
215 sb.append(delimiter).append(getObjectId());
\r
216 sb.append(delimiter).append(getTest());
\r
217 sb.append(delimiter).append(getTestclass());
\r
218 sb.append(delimiter).append(getTesttype());
\r
219 sb.append(delimiter).append(getNotes());
\r
220 sb.append(delimiter).append(getInputdata());
\r
221 sb.append(delimiter).append(getAcceptancecriteria());
\r
222 sb.append(delimiter).append(getStatus());
\r
223 sb.append(delimiter).append(getDaterun());
\r
224 sb.append(delimiter).append(getResults());
\r
225 sb.append(delimiter).append(getRunby());
\r
226 sb.append(delimiter).append(getCheckby());
\r
227 if (sb.length() > 0) { sb.delete(0, delimiter.length()); }
\r
228 sb.insert(0, "{").append("}");
\r
229 return sb.toString();
\r
232 // ===================================================================================
\r
236 * Object_ID: {UQ : INTEGER} <br />
\r
237 * @return The value of the column 'Object_ID'. (Nullable)
\r
239 public java.lang.Integer getObjectId() {
\r
244 * Object_ID: {UQ : INTEGER} <br />
\r
245 * @param objectId The value of the column 'Object_ID'. (Nullable)
\r
247 public void setObjectId(java.lang.Integer objectId) {
\r
248 _modifiedProperties.addPropertyName("objectId");
\r
249 this._objectId = objectId;
\r
253 * Test: {UQ : VARCHAR(255)} <br />
\r
254 * @return The value of the column 'Test'. (Nullable)
\r
256 public String getTest() {
\r
261 * Test: {UQ : VARCHAR(255)} <br />
\r
262 * @param test The value of the column 'Test'. (Nullable)
\r
264 public void setTest(String test) {
\r
265 _modifiedProperties.addPropertyName("test");
\r
270 * TestClass: {UQ : INTEGER} <br />
\r
271 * @return The value of the column 'TestClass'. (Nullable)
\r
273 public java.lang.Integer getTestclass() {
\r
278 * TestClass: {UQ : INTEGER} <br />
\r
279 * @param testclass The value of the column 'TestClass'. (Nullable)
\r
281 public void setTestclass(java.lang.Integer testclass) {
\r
282 _modifiedProperties.addPropertyName("testclass");
\r
283 this._testclass = testclass;
\r
287 * TestType: {VARCHAR(50)} <br />
\r
288 * @return The value of the column 'TestType'. (Nullable)
\r
290 public String getTesttype() {
\r
295 * TestType: {VARCHAR(50)} <br />
\r
296 * @param testtype The value of the column 'TestType'. (Nullable)
\r
298 public void setTesttype(String testtype) {
\r
299 _modifiedProperties.addPropertyName("testtype");
\r
300 this._testtype = testtype;
\r
304 * Notes: {LONGCHAR(2147483647)} <br />
\r
305 * @return The value of the column 'Notes'. (Nullable)
\r
307 public String getNotes() {
\r
312 * Notes: {LONGCHAR(2147483647)} <br />
\r
313 * @param notes The value of the column 'Notes'. (Nullable)
\r
315 public void setNotes(String notes) {
\r
316 _modifiedProperties.addPropertyName("notes");
\r
317 this._notes = notes;
\r
321 * InputData: {LONGCHAR(2147483647)} <br />
\r
322 * @return The value of the column 'InputData'. (Nullable)
\r
324 public String getInputdata() {
\r
329 * InputData: {LONGCHAR(2147483647)} <br />
\r
330 * @param inputdata The value of the column 'InputData'. (Nullable)
\r
332 public void setInputdata(String inputdata) {
\r
333 _modifiedProperties.addPropertyName("inputdata");
\r
334 this._inputdata = inputdata;
\r
338 * AcceptanceCriteria: {LONGCHAR(2147483647)} <br />
\r
339 * @return The value of the column 'AcceptanceCriteria'. (Nullable)
\r
341 public String getAcceptancecriteria() {
\r
342 return _acceptancecriteria;
\r
346 * AcceptanceCriteria: {LONGCHAR(2147483647)} <br />
\r
347 * @param acceptancecriteria The value of the column 'AcceptanceCriteria'. (Nullable)
\r
349 public void setAcceptancecriteria(String acceptancecriteria) {
\r
350 _modifiedProperties.addPropertyName("acceptancecriteria");
\r
351 this._acceptancecriteria = acceptancecriteria;
\r
355 * Status: {VARCHAR(32)} <br />
\r
356 * @return The value of the column 'Status'. (Nullable)
\r
358 public String getStatus() {
\r
363 * Status: {VARCHAR(32)} <br />
\r
364 * @param status The value of the column 'Status'. (Nullable)
\r
366 public void setStatus(String status) {
\r
367 _modifiedProperties.addPropertyName("status");
\r
368 this._status = status;
\r
372 * DateRun: {DATETIME} <br />
\r
373 * @return The value of the column 'DateRun'. (Nullable)
\r
375 public java.sql.Timestamp getDaterun() {
\r
380 * DateRun: {DATETIME} <br />
\r
381 * @param daterun The value of the column 'DateRun'. (Nullable)
\r
383 public void setDaterun(java.sql.Timestamp daterun) {
\r
384 _modifiedProperties.addPropertyName("daterun");
\r
385 this._daterun = daterun;
\r
389 * Results: {LONGCHAR(2147483647)} <br />
\r
390 * @return The value of the column 'Results'. (Nullable)
\r
392 public String getResults() {
\r
397 * Results: {LONGCHAR(2147483647)} <br />
\r
398 * @param results The value of the column 'Results'. (Nullable)
\r
400 public void setResults(String results) {
\r
401 _modifiedProperties.addPropertyName("results");
\r
402 this._results = results;
\r
406 * RunBy: {VARCHAR(255)} <br />
\r
407 * @return The value of the column 'RunBy'. (Nullable)
\r
409 public String getRunby() {
\r
414 * RunBy: {VARCHAR(255)} <br />
\r
415 * @param runby The value of the column 'RunBy'. (Nullable)
\r
417 public void setRunby(String runby) {
\r
418 _modifiedProperties.addPropertyName("runby");
\r
419 this._runby = runby;
\r
423 * CheckBy: {VARCHAR(255)} <br />
\r
424 * @return The value of the column 'CheckBy'. (Nullable)
\r
426 public String getCheckby() {
\r
431 * CheckBy: {VARCHAR(255)} <br />
\r
432 * @param checkby The value of the column 'CheckBy'. (Nullable)
\r
434 public void setCheckby(String checkby) {
\r
435 _modifiedProperties.addPropertyName("checkby");
\r
436 this._checkby = checkby;
\r