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_complexitytypes(TABLE).
\r
16 * Complexity, NumericWeight
\r
33 * [foreign-property]
\r
36 * [referrer-property]
\r
39 * @author DBFlute(AutoGenerator)
\r
41 @SuppressWarnings("unchecked")
\r
42 public abstract class BsTComplexitytypes 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_complexitytypes. */
\r
51 public static final String TABLE = "t_complexitytypes";
\r
54 // ===================================================================================
\r
57 // -----------------------------------------------------
\r
60 /** The attribute of the column 'Complexity'. {UQ : VARCHAR(50)} */
\r
61 protected String _complexity;
\r
63 /** The attribute of the column 'NumericWeight'. {INTEGER} */
\r
64 protected java.lang.Integer _numericweight;
\r
66 // -----------------------------------------------------
\r
69 /** The attribute of entity modified properties. (for S2Dao) */
\r
70 protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties();
\r
72 // ===================================================================================
\r
75 public BsTComplexitytypes() {
\r
78 // ===================================================================================
\r
81 public String getTableDbName() {
\r
82 return "t_complexitytypes";
\r
85 public String getTablePropertyName() {// as JavaBeansRule
\r
86 return "TComplexitytypes";
\r
89 // ===================================================================================
\r
92 public DBMeta getDBMeta() {
\r
93 return DBMetaInstanceHandler.findDBMeta(getTableDbName());
\r
96 // ===================================================================================
\r
97 // Classification Classifying
\r
98 // ==========================
\r
99 // ===================================================================================
\r
100 // Classification Determination
\r
101 // ============================
\r
102 // ===================================================================================
\r
103 // Classification Name/Alias
\r
104 // =========================
\r
105 // ===================================================================================
\r
106 // Foreign Property
\r
107 // ================
\r
108 // ===================================================================================
\r
109 // Referrer Property
\r
110 // =================
\r
112 // ===================================================================================
\r
115 public boolean hasPrimaryKeyValue() {
\r
119 // ===================================================================================
\r
120 // Modified Properties
\r
121 // ===================
\r
122 public Set<String> getModifiedPropertyNames() {
\r
123 return _modifiedProperties.getPropertyNames();
\r
126 protected EntityModifiedProperties newEntityModifiedProperties() {
\r
127 return new EntityModifiedProperties();
\r
130 public void clearModifiedPropertyNames() {
\r
131 _modifiedProperties.clear();
\r
134 public boolean hasModification() {
\r
135 return !_modifiedProperties.isEmpty();
\r
138 // ===================================================================================
\r
142 * If the all-column value of the other is same as this one, returns true.
\r
143 * @param other Other entity. (Nullable)
\r
144 * @return Comparing result. If other is null, returns false.
\r
146 public boolean equals(Object other) {
\r
147 if (other == null || !(other instanceof BsTComplexitytypes)) { return false; }
\r
148 final BsTComplexitytypes otherEntity = (BsTComplexitytypes)other;
\r
149 if (!helpComparingValue(getComplexity(), otherEntity.getComplexity())) { return false; }
\r
150 if (!helpComparingValue(getNumericweight(), otherEntity.getNumericweight())) { return false; }
\r
154 protected boolean helpComparingValue(Object value1, Object value2) {
\r
155 if (value1 == null && value2 == null) { return true; }
\r
156 return value1 != null && value2 != null && value1.equals(value2);
\r
160 * Calculates hash-code from all columns.
\r
161 * @return Hash-code from all-columns.
\r
163 public int hashCode() {
\r
165 if (this.getComplexity() != null) { result = result + this.getComplexity().hashCode(); }
\r
166 if (this.getNumericweight() != null) { result = result + this.getNumericweight().hashCode(); }
\r
171 * @return The view string of columns. (NotNull)
\r
173 public String toString() {
\r
174 String delimiter = ",";
\r
175 StringBuilder sb = new StringBuilder();
\r
176 sb.append(delimiter).append(getComplexity());
\r
177 sb.append(delimiter).append(getNumericweight());
\r
178 if (sb.length() > 0) { sb.delete(0, delimiter.length()); }
\r
179 sb.insert(0, "{").append("}");
\r
180 return sb.toString();
\r
183 // ===================================================================================
\r
187 /** The column annotation for S2Dao. {UQ : VARCHAR(50)} */
\r
188 public static final String complexity_COLUMN = "Complexity";
\r
191 * Get the value of the column 'Complexity'. <br />
\r
192 * {UQ : VARCHAR(50)}
\r
193 * @return The value of the column 'Complexity'. (Nullable)
\r
195 public String getComplexity() {
\r
196 return _complexity;
\r
200 * Set the value of the column 'Complexity'. <br />
\r
201 * {UQ : VARCHAR(50)}
\r
202 * @param complexity The value of the column 'Complexity'. (Nullable)
\r
204 public void setComplexity(String complexity) {
\r
205 _modifiedProperties.addPropertyName("complexity");
\r
206 this._complexity = complexity;
\r
209 /** The column annotation for S2Dao. {INTEGER} */
\r
210 public static final String numericweight_COLUMN = "NumericWeight";
\r
213 * Get the value of the column 'NumericWeight'. <br />
\r
215 * @return The value of the column 'NumericWeight'. (Nullable)
\r
217 public java.lang.Integer getNumericweight() {
\r
218 return _numericweight;
\r
222 * Set the value of the column 'NumericWeight'. <br />
\r
224 * @param numericweight The value of the column 'NumericWeight'. (Nullable)
\r
226 public void setNumericweight(java.lang.Integer numericweight) {
\r
227 _modifiedProperties.addPropertyName("numericweight");
\r
228 this._numericweight = numericweight;
\r