1 package jp.sourceforge.ea2ddl.dao.cbean.cq.bs;
\r
3 import java.util.Map;
\r
5 import org.seasar.dbflute.cbean.*;
\r
6 import org.seasar.dbflute.cbean.cvalue.ConditionValue;
\r
7 import org.seasar.dbflute.cbean.sqlclause.SqlClause;
\r
8 import jp.sourceforge.ea2ddl.dao.cbean.cq.ciq.*;
\r
9 import jp.sourceforge.ea2ddl.dao.cbean.*;
\r
10 import jp.sourceforge.ea2ddl.dao.cbean.cq.*;
\r
13 * The base condition-query of t_objectconstraint.
\r
14 * @author DBFlute(AutoGenerator)
\r
16 public class BsTObjectconstraintCQ extends AbstractBsTObjectconstraintCQ {
\r
18 // ===================================================================================
\r
21 protected TObjectconstraintCIQ _inlineQuery;
\r
23 // ===================================================================================
\r
26 public BsTObjectconstraintCQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel) {
\r
27 super(childQuery, sqlClause, aliasName, nestLevel);
\r
30 // ===================================================================================
\r
34 * Prepare inline query. <br />
\r
35 * {select ... from ... left outer join (select * from t_objectconstraint) where abc = [abc] ...}
\r
36 * @return Inline query. (NotNull)
\r
38 public TObjectconstraintCIQ inline() {
\r
39 if (_inlineQuery == null) {
\r
40 _inlineQuery = new TObjectconstraintCIQ(getChildQuery(), getSqlClause(), getAliasName(), getNestLevel(), this);
\r
42 _inlineQuery.xsetOnClauseInline(false); return _inlineQuery;
\r
46 * Prepare on-clause query. <br />
\r
47 * {select ... from ... left outer join t_objectconstraint on ... and abc = [abc] ...}
\r
48 * @return On-clause query. (NotNull)
\r
50 public TObjectconstraintCIQ on() {
\r
51 if (isBaseQuery(this)) { throw new UnsupportedOperationException("Unsupported on-clause for local table!"); }
\r
52 TObjectconstraintCIQ inlineQuery = inline(); inlineQuery.xsetOnClauseInline(true); return inlineQuery;
\r
55 // ===================================================================================
\r
59 protected ConditionValue _objectId;
\r
60 public ConditionValue getObjectId() {
\r
61 if (_objectId == null) { _objectId = new ConditionValue(); }
\r
64 protected ConditionValue getCValueObjectId() { return getObjectId(); }
\r
66 public BsTObjectconstraintCQ addOrderBy_ObjectId_Asc() { regOBA("Object_ID"); return this; }
\r
67 public BsTObjectconstraintCQ addOrderBy_ObjectId_Desc() { regOBD("Object_ID"); return this; }
\r
69 protected ConditionValue _constraint;
\r
70 public ConditionValue getConstraint() {
\r
71 if (_constraint == null) { _constraint = new ConditionValue(); }
\r
74 protected ConditionValue getCValueConstraint() { return getConstraint(); }
\r
76 public BsTObjectconstraintCQ addOrderBy_Constraint_Asc() { regOBA("Constraint"); return this; }
\r
77 public BsTObjectconstraintCQ addOrderBy_Constraint_Desc() { regOBD("Constraint"); return this; }
\r
79 protected ConditionValue _constrainttype;
\r
80 public ConditionValue getConstrainttype() {
\r
81 if (_constrainttype == null) { _constrainttype = new ConditionValue(); }
\r
82 return _constrainttype;
\r
84 protected ConditionValue getCValueConstrainttype() { return getConstrainttype(); }
\r
86 public BsTObjectconstraintCQ addOrderBy_Constrainttype_Asc() { regOBA("ConstraintType"); return this; }
\r
87 public BsTObjectconstraintCQ addOrderBy_Constrainttype_Desc() { regOBD("ConstraintType"); return this; }
\r
89 protected ConditionValue _weight;
\r
90 public ConditionValue getWeight() {
\r
91 if (_weight == null) { _weight = new ConditionValue(); }
\r
94 protected ConditionValue getCValueWeight() { return getWeight(); }
\r
96 public BsTObjectconstraintCQ addOrderBy_Weight_Asc() { regOBA("Weight"); return this; }
\r
97 public BsTObjectconstraintCQ addOrderBy_Weight_Desc() { regOBD("Weight"); return this; }
\r
99 protected ConditionValue _notes;
\r
100 public ConditionValue getNotes() {
\r
101 if (_notes == null) { _notes = new ConditionValue(); }
\r
104 protected ConditionValue getCValueNotes() { return getNotes(); }
\r
106 public BsTObjectconstraintCQ addOrderBy_Notes_Asc() { regOBA("Notes"); return this; }
\r
107 public BsTObjectconstraintCQ addOrderBy_Notes_Desc() { regOBD("Notes"); return this; }
\r
109 protected ConditionValue _status;
\r
110 public ConditionValue getStatus() {
\r
111 if (_status == null) { _status = new ConditionValue(); }
\r
114 protected ConditionValue getCValueStatus() { return getStatus(); }
\r
116 public BsTObjectconstraintCQ addOrderBy_Status_Asc() { regOBA("Status"); return this; }
\r
117 public BsTObjectconstraintCQ addOrderBy_Status_Desc() { regOBD("Status"); return this; }
\r
119 // ===================================================================================
\r
120 // Specified Derived OrderBy
\r
121 // =========================
\r
122 public BsTObjectconstraintCQ addSpecifiedDerivedOrderBy_Asc(String aliasName) { registerSpecifiedDerivedOrderBy_Asc(aliasName); return this; }
\r
123 public BsTObjectconstraintCQ addSpecifiedDerivedOrderBy_Desc(String aliasName) { registerSpecifiedDerivedOrderBy_Desc(aliasName); return this; }
\r
125 // ===================================================================================
\r
128 protected void reflectRelationOnUnionQuery(ConditionQuery baseQueryAsSuper, ConditionQuery unionQueryAsSuper) {
\r
131 // ===================================================================================
\r
134 // ===================================================================================
\r
137 // Very Internal (for Suppressing Warn about 'Not Use Import')
\r
138 String xCB() { return TObjectconstraintCB.class.getName(); }
\r
139 String xCQ() { return TObjectconstraintCQ.class.getName(); }
\r
140 String xMap() { return Map.class.getName(); }
\r