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
9 import jp.sourceforge.ea2ddl.dao.exentity.*;
\r
12 * The entity of t_operation that the type is TABLE. <br />
\r
18 * OperationID, Object_ID, Name, Scope, Type, ReturnArray, Stereotype, IsStatic, Concurrency, Notes, Behaviour, GenOption, Pos, Style, Pure, Classifier, Code, IsRoot, IsLeaf, IsQuery, StateFlags, ea_guid, StyleEx
\r
35 * [foreign-property]
\r
38 * [referrer-property]
\r
39 * tOperationparamsList
\r
41 * @author DBFlute(AutoGenerator)
\r
43 public abstract class BsTOperation implements Entity, Serializable {
\r
45 // ===================================================================================
\r
48 /** Serial version UID. (Default) */
\r
49 private static final long serialVersionUID = 1L;
\r
51 // ===================================================================================
\r
54 // -----------------------------------------------------
\r
57 /** OperationID: {PK : UQ : NotNull : COUNTER} */
\r
58 protected java.lang.Integer _operationid;
\r
60 /** Object_ID: {INTEGER} */
\r
61 protected java.lang.Integer _objectId;
\r
63 /** Name: {VARCHAR(255)} */
\r
64 protected String _name;
\r
66 /** Scope: {VARCHAR(50)} */
\r
67 protected String _scope;
\r
69 /** Type: {VARCHAR(255)} */
\r
70 protected String _type;
\r
72 /** ReturnArray: {VARCHAR(1)} */
\r
73 protected String _returnarray;
\r
75 /** Stereotype: {VARCHAR(50)} */
\r
76 protected String _stereotype;
\r
78 /** IsStatic: {VARCHAR(1)} */
\r
79 protected String _isstatic;
\r
81 /** Concurrency: {VARCHAR(50)} */
\r
82 protected String _concurrency;
\r
84 /** Notes: {LONGCHAR(2147483647)} */
\r
85 protected String _notes;
\r
87 /** Behaviour: {LONGCHAR(2147483647)} */
\r
88 protected String _behaviour;
\r
90 /** GenOption: {LONGCHAR(2147483647)} */
\r
91 protected String _genoption;
\r
93 /** Pos: {INTEGER} */
\r
94 protected java.lang.Integer _pos;
\r
96 /** Style: {VARCHAR(255)} */
\r
97 protected String _style;
\r
99 /** Pure: {NotNull : BIT} */
\r
100 protected Boolean _pure;
\r
102 /** Classifier: {VARCHAR(50)} */
\r
103 protected String _classifier;
\r
105 /** Code: {LONGCHAR(2147483647)} */
\r
106 protected String _code;
\r
108 /** IsRoot: {NotNull : BIT} */
\r
109 protected Boolean _isroot;
\r
111 /** IsLeaf: {NotNull : BIT} */
\r
112 protected Boolean _isleaf;
\r
114 /** IsQuery: {NotNull : BIT} */
\r
115 protected Boolean _isquery;
\r
117 /** StateFlags: {VARCHAR(255)} */
\r
118 protected String _stateflags;
\r
120 /** ea_guid: {VARCHAR(50)} */
\r
121 protected String _eaGuid;
\r
123 /** StyleEx: {LONGCHAR(2147483647)} */
\r
124 protected String _styleex;
\r
126 // -----------------------------------------------------
\r
129 /** The attribute of entity modified properties. (for S2Dao) */
\r
130 protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties();
\r
132 // ===================================================================================
\r
135 public String getTableDbName() {
\r
136 return "t_operation";
\r
139 public String getTablePropertyName() { // as JavaBeansRule
\r
140 return "TOperation";
\r
143 // ===================================================================================
\r
146 public DBMeta getDBMeta() {
\r
147 return DBMetaInstanceHandler.findDBMeta(getTableDbName());
\r
150 // ===================================================================================
\r
151 // Classification Classifying
\r
152 // ==========================
\r
153 // ===================================================================================
\r
154 // Classification Determination
\r
155 // ============================
\r
156 // ===================================================================================
\r
157 // Classification Name/Alias
\r
158 // =========================
\r
159 // ===================================================================================
\r
160 // Foreign Property
\r
161 // ================
\r
162 /** t_object as 'TObject'. */
\r
163 protected TObject _parentTObject;
\r
166 * t_object as 'TObject'. {without lazy-load}
\r
167 * @return The entity of foreign property 'TObject'. (Nullable: If the foreign key does not have 'NotNull' constraint, please check null.)
\r
169 public TObject getTObject() {
\r
170 return _parentTObject;
\r
174 * t_object as 'TObject'.
\r
175 * @param tObject The entity of foreign property 'TObject'. (Nullable)
\r
177 public void setTObject(TObject tObject) {
\r
178 _parentTObject = tObject;
\r
181 // ===================================================================================
\r
182 // Referrer Property
\r
183 // =================
\r
184 /** t_operationparams as 'TOperationparamsList'. */
\r
185 protected List<TOperationparams> _childrenTOperationparamsList;
\r
188 * t_operationparams as 'TOperationparamsList'. {without lazy-load} <br />
\r
189 * @return The entity list of referrer property 'TOperationparamsList'. (NotNull: If it's not loaded yet, initializes the list instance of referrer as empty and returns it.)
\r
191 public List<TOperationparams> getTOperationparamsList() {
\r
192 if (_childrenTOperationparamsList == null) { _childrenTOperationparamsList = new ArrayList<TOperationparams>(); }
\r
193 return _childrenTOperationparamsList;
\r
197 * t_operationparams as 'TOperationparamsList'.
\r
198 * @param tOperationparamsList The entity list of referrer property 'TOperationparamsList'. (Nullable)
\r
200 public void setTOperationparamsList(List<TOperationparams> tOperationparamsList) {
\r
201 _childrenTOperationparamsList = tOperationparamsList;
\r
204 // ===================================================================================
\r
207 public boolean hasPrimaryKeyValue() {
\r
208 if (_operationid == null) { return false; }
\r
212 // ===================================================================================
\r
213 // Modified Properties
\r
214 // ===================
\r
215 public Set<String> getModifiedPropertyNames() {
\r
216 return _modifiedProperties.getPropertyNames();
\r
219 protected EntityModifiedProperties newEntityModifiedProperties() {
\r
220 return new EntityModifiedProperties();
\r
223 public void clearModifiedPropertyNames() {
\r
224 _modifiedProperties.clear();
\r
227 public boolean hasModification() {
\r
228 return !_modifiedProperties.isEmpty();
\r
231 // ===================================================================================
\r
235 * If the primary-key of the other is same as this one, returns true.
\r
236 * @param other Other entity.
\r
237 * @return Comparing result.
\r
239 public boolean equals(Object other) {
\r
240 if (other == null || !(other instanceof BsTOperation)) { return false; }
\r
241 BsTOperation otherEntity = (BsTOperation)other;
\r
242 if (!helpComparingValue(getOperationid(), otherEntity.getOperationid())) { return false; }
\r
246 protected boolean helpComparingValue(Object value1, Object value2) {
\r
247 if (value1 == null && value2 == null) { return true; }
\r
248 return value1 != null && value2 != null && value1.equals(value2);
\r
252 * Calculates hash-code from primary-key.
\r
253 * @return Hash-code from primary-keys.
\r
255 public int hashCode() {
\r
257 if (this.getOperationid() != null) { result = result + getOperationid().hashCode(); }
\r
262 * @return The view string of columns. (NotNull)
\r
264 public String toString() {
\r
265 String delimiter = ",";
\r
266 StringBuilder sb = new StringBuilder();
\r
267 sb.append(delimiter).append(getOperationid());
\r
268 sb.append(delimiter).append(getObjectId());
\r
269 sb.append(delimiter).append(getName());
\r
270 sb.append(delimiter).append(getScope());
\r
271 sb.append(delimiter).append(getType());
\r
272 sb.append(delimiter).append(getReturnarray());
\r
273 sb.append(delimiter).append(getStereotype());
\r
274 sb.append(delimiter).append(getIsstatic());
\r
275 sb.append(delimiter).append(getConcurrency());
\r
276 sb.append(delimiter).append(getNotes());
\r
277 sb.append(delimiter).append(getBehaviour());
\r
278 sb.append(delimiter).append(getGenoption());
\r
279 sb.append(delimiter).append(getPos());
\r
280 sb.append(delimiter).append(getStyle());
\r
281 sb.append(delimiter).append(getPure());
\r
282 sb.append(delimiter).append(getClassifier());
\r
283 sb.append(delimiter).append(getCode());
\r
284 sb.append(delimiter).append(getIsroot());
\r
285 sb.append(delimiter).append(getIsleaf());
\r
286 sb.append(delimiter).append(getIsquery());
\r
287 sb.append(delimiter).append(getStateflags());
\r
288 sb.append(delimiter).append(getEaGuid());
\r
289 sb.append(delimiter).append(getStyleex());
\r
290 if (sb.length() > 0) { sb.delete(0, delimiter.length()); }
\r
291 sb.insert(0, "{").append("}");
\r
292 return sb.toString();
\r
295 // ===================================================================================
\r
299 * OperationID: {PK : UQ : NotNull : COUNTER} <br />
\r
300 * @return The value of the column 'OperationID'. (Nullable)
\r
302 public java.lang.Integer getOperationid() {
\r
303 return _operationid;
\r
307 * OperationID: {PK : UQ : NotNull : COUNTER} <br />
\r
308 * @param operationid The value of the column 'OperationID'. (Nullable)
\r
310 public void setOperationid(java.lang.Integer operationid) {
\r
311 _modifiedProperties.addPropertyName("operationid");
\r
312 this._operationid = operationid;
\r
316 * Object_ID: {INTEGER} <br />
\r
317 * @return The value of the column 'Object_ID'. (Nullable)
\r
319 public java.lang.Integer getObjectId() {
\r
324 * Object_ID: {INTEGER} <br />
\r
325 * @param objectId The value of the column 'Object_ID'. (Nullable)
\r
327 public void setObjectId(java.lang.Integer objectId) {
\r
328 _modifiedProperties.addPropertyName("objectId");
\r
329 this._objectId = objectId;
\r
333 * Name: {VARCHAR(255)} <br />
\r
334 * @return The value of the column 'Name'. (Nullable)
\r
336 public String getName() {
\r
341 * Name: {VARCHAR(255)} <br />
\r
342 * @param name The value of the column 'Name'. (Nullable)
\r
344 public void setName(String name) {
\r
345 _modifiedProperties.addPropertyName("name");
\r
350 * Scope: {VARCHAR(50)} <br />
\r
351 * @return The value of the column 'Scope'. (Nullable)
\r
353 public String getScope() {
\r
358 * Scope: {VARCHAR(50)} <br />
\r
359 * @param scope The value of the column 'Scope'. (Nullable)
\r
361 public void setScope(String scope) {
\r
362 _modifiedProperties.addPropertyName("scope");
\r
363 this._scope = scope;
\r
367 * Type: {VARCHAR(255)} <br />
\r
368 * @return The value of the column 'Type'. (Nullable)
\r
370 public String getType() {
\r
375 * Type: {VARCHAR(255)} <br />
\r
376 * @param type The value of the column 'Type'. (Nullable)
\r
378 public void setType(String type) {
\r
379 _modifiedProperties.addPropertyName("type");
\r
384 * ReturnArray: {VARCHAR(1)} <br />
\r
385 * @return The value of the column 'ReturnArray'. (Nullable)
\r
387 public String getReturnarray() {
\r
388 return _returnarray;
\r
392 * ReturnArray: {VARCHAR(1)} <br />
\r
393 * @param returnarray The value of the column 'ReturnArray'. (Nullable)
\r
395 public void setReturnarray(String returnarray) {
\r
396 _modifiedProperties.addPropertyName("returnarray");
\r
397 this._returnarray = returnarray;
\r
401 * Stereotype: {VARCHAR(50)} <br />
\r
402 * @return The value of the column 'Stereotype'. (Nullable)
\r
404 public String getStereotype() {
\r
405 return _stereotype;
\r
409 * Stereotype: {VARCHAR(50)} <br />
\r
410 * @param stereotype The value of the column 'Stereotype'. (Nullable)
\r
412 public void setStereotype(String stereotype) {
\r
413 _modifiedProperties.addPropertyName("stereotype");
\r
414 this._stereotype = stereotype;
\r
418 * IsStatic: {VARCHAR(1)} <br />
\r
419 * @return The value of the column 'IsStatic'. (Nullable)
\r
421 public String getIsstatic() {
\r
426 * IsStatic: {VARCHAR(1)} <br />
\r
427 * @param isstatic The value of the column 'IsStatic'. (Nullable)
\r
429 public void setIsstatic(String isstatic) {
\r
430 _modifiedProperties.addPropertyName("isstatic");
\r
431 this._isstatic = isstatic;
\r
435 * Concurrency: {VARCHAR(50)} <br />
\r
436 * @return The value of the column 'Concurrency'. (Nullable)
\r
438 public String getConcurrency() {
\r
439 return _concurrency;
\r
443 * Concurrency: {VARCHAR(50)} <br />
\r
444 * @param concurrency The value of the column 'Concurrency'. (Nullable)
\r
446 public void setConcurrency(String concurrency) {
\r
447 _modifiedProperties.addPropertyName("concurrency");
\r
448 this._concurrency = concurrency;
\r
452 * Notes: {LONGCHAR(2147483647)} <br />
\r
453 * @return The value of the column 'Notes'. (Nullable)
\r
455 public String getNotes() {
\r
460 * Notes: {LONGCHAR(2147483647)} <br />
\r
461 * @param notes The value of the column 'Notes'. (Nullable)
\r
463 public void setNotes(String notes) {
\r
464 _modifiedProperties.addPropertyName("notes");
\r
465 this._notes = notes;
\r
469 * Behaviour: {LONGCHAR(2147483647)} <br />
\r
470 * @return The value of the column 'Behaviour'. (Nullable)
\r
472 public String getBehaviour() {
\r
477 * Behaviour: {LONGCHAR(2147483647)} <br />
\r
478 * @param behaviour The value of the column 'Behaviour'. (Nullable)
\r
480 public void setBehaviour(String behaviour) {
\r
481 _modifiedProperties.addPropertyName("behaviour");
\r
482 this._behaviour = behaviour;
\r
486 * GenOption: {LONGCHAR(2147483647)} <br />
\r
487 * @return The value of the column 'GenOption'. (Nullable)
\r
489 public String getGenoption() {
\r
494 * GenOption: {LONGCHAR(2147483647)} <br />
\r
495 * @param genoption The value of the column 'GenOption'. (Nullable)
\r
497 public void setGenoption(String genoption) {
\r
498 _modifiedProperties.addPropertyName("genoption");
\r
499 this._genoption = genoption;
\r
503 * Pos: {INTEGER} <br />
\r
504 * @return The value of the column 'Pos'. (Nullable)
\r
506 public java.lang.Integer getPos() {
\r
511 * Pos: {INTEGER} <br />
\r
512 * @param pos The value of the column 'Pos'. (Nullable)
\r
514 public void setPos(java.lang.Integer pos) {
\r
515 _modifiedProperties.addPropertyName("pos");
\r
520 * Style: {VARCHAR(255)} <br />
\r
521 * @return The value of the column 'Style'. (Nullable)
\r
523 public String getStyle() {
\r
528 * Style: {VARCHAR(255)} <br />
\r
529 * @param style The value of the column 'Style'. (Nullable)
\r
531 public void setStyle(String style) {
\r
532 _modifiedProperties.addPropertyName("style");
\r
533 this._style = style;
\r
537 * Pure: {NotNull : BIT} <br />
\r
538 * @return The value of the column 'Pure'. (Nullable)
\r
540 public Boolean getPure() {
\r
545 * Pure: {NotNull : BIT} <br />
\r
546 * @param pure The value of the column 'Pure'. (Nullable)
\r
548 public void setPure(Boolean pure) {
\r
549 _modifiedProperties.addPropertyName("pure");
\r
554 * Classifier: {VARCHAR(50)} <br />
\r
555 * @return The value of the column 'Classifier'. (Nullable)
\r
557 public String getClassifier() {
\r
558 return _classifier;
\r
562 * Classifier: {VARCHAR(50)} <br />
\r
563 * @param classifier The value of the column 'Classifier'. (Nullable)
\r
565 public void setClassifier(String classifier) {
\r
566 _modifiedProperties.addPropertyName("classifier");
\r
567 this._classifier = classifier;
\r
571 * Code: {LONGCHAR(2147483647)} <br />
\r
572 * @return The value of the column 'Code'. (Nullable)
\r
574 public String getCode() {
\r
579 * Code: {LONGCHAR(2147483647)} <br />
\r
580 * @param code The value of the column 'Code'. (Nullable)
\r
582 public void setCode(String code) {
\r
583 _modifiedProperties.addPropertyName("code");
\r
588 * IsRoot: {NotNull : BIT} <br />
\r
589 * @return The value of the column 'IsRoot'. (Nullable)
\r
591 public Boolean getIsroot() {
\r
596 * IsRoot: {NotNull : BIT} <br />
\r
597 * @param isroot The value of the column 'IsRoot'. (Nullable)
\r
599 public void setIsroot(Boolean isroot) {
\r
600 _modifiedProperties.addPropertyName("isroot");
\r
601 this._isroot = isroot;
\r
605 * IsLeaf: {NotNull : BIT} <br />
\r
606 * @return The value of the column 'IsLeaf'. (Nullable)
\r
608 public Boolean getIsleaf() {
\r
613 * IsLeaf: {NotNull : BIT} <br />
\r
614 * @param isleaf The value of the column 'IsLeaf'. (Nullable)
\r
616 public void setIsleaf(Boolean isleaf) {
\r
617 _modifiedProperties.addPropertyName("isleaf");
\r
618 this._isleaf = isleaf;
\r
622 * IsQuery: {NotNull : BIT} <br />
\r
623 * @return The value of the column 'IsQuery'. (Nullable)
\r
625 public Boolean getIsquery() {
\r
630 * IsQuery: {NotNull : BIT} <br />
\r
631 * @param isquery The value of the column 'IsQuery'. (Nullable)
\r
633 public void setIsquery(Boolean isquery) {
\r
634 _modifiedProperties.addPropertyName("isquery");
\r
635 this._isquery = isquery;
\r
639 * StateFlags: {VARCHAR(255)} <br />
\r
640 * @return The value of the column 'StateFlags'. (Nullable)
\r
642 public String getStateflags() {
\r
643 return _stateflags;
\r
647 * StateFlags: {VARCHAR(255)} <br />
\r
648 * @param stateflags The value of the column 'StateFlags'. (Nullable)
\r
650 public void setStateflags(String stateflags) {
\r
651 _modifiedProperties.addPropertyName("stateflags");
\r
652 this._stateflags = stateflags;
\r
656 * ea_guid: {VARCHAR(50)} <br />
\r
657 * @return The value of the column 'ea_guid'. (Nullable)
\r
659 public String getEaGuid() {
\r
664 * ea_guid: {VARCHAR(50)} <br />
\r
665 * @param eaGuid The value of the column 'ea_guid'. (Nullable)
\r
667 public void setEaGuid(String eaGuid) {
\r
668 _modifiedProperties.addPropertyName("eaGuid");
\r
669 this._eaGuid = eaGuid;
\r
673 * StyleEx: {LONGCHAR(2147483647)} <br />
\r
674 * @return The value of the column 'StyleEx'. (Nullable)
\r
676 public String getStyleex() {
\r
681 * StyleEx: {LONGCHAR(2147483647)} <br />
\r
682 * @param styleex The value of the column 'StyleEx'. (Nullable)
\r
684 public void setStyleex(String styleex) {
\r
685 _modifiedProperties.addPropertyName("styleex");
\r
686 this._styleex = styleex;
\r