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_operation.
\r
14 * @author DBFlute(AutoGenerator)
\r
16 public class BsTOperationCQ extends AbstractBsTOperationCQ {
\r
18 // ===================================================================================
\r
21 protected TOperationCIQ _inlineQuery;
\r
23 // ===================================================================================
\r
26 public BsTOperationCQ(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_operation) where abc = [abc] ...}
\r
36 * @return Inline query. (NotNull)
\r
38 public TOperationCIQ inline() {
\r
39 if (_inlineQuery == null) {
\r
40 _inlineQuery = new TOperationCIQ(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_operation on ... and abc = [abc] ...}
\r
48 * @return On-clause query. (NotNull)
\r
50 public TOperationCIQ on() {
\r
51 if (isBaseQuery(this)) { throw new UnsupportedOperationException("Unsupported on-clause for local table!"); }
\r
52 TOperationCIQ inlineQuery = inline(); inlineQuery.xsetOnClauseInline(true); return inlineQuery;
\r
55 // ===================================================================================
\r
59 protected ConditionValue _operationid;
\r
60 public ConditionValue getOperationid() {
\r
61 if (_operationid == null) { _operationid = new ConditionValue(); }
\r
62 return _operationid;
\r
64 protected ConditionValue getCValueOperationid() { return getOperationid(); }
\r
66 protected Map<String, TOperationparamsCQ> _operationid_InScopeSubQuery_TOperationparamsListMap;
\r
67 public Map<String, TOperationparamsCQ> getOperationid_InScopeSubQuery_TOperationparamsList() { return _operationid_InScopeSubQuery_TOperationparamsListMap; }
\r
68 public String keepOperationid_InScopeSubQuery_TOperationparamsList(TOperationparamsCQ subQuery) {
\r
69 if (_operationid_InScopeSubQuery_TOperationparamsListMap == null) { _operationid_InScopeSubQuery_TOperationparamsListMap = newLinkedHashMap(); }
\r
70 String key = "subQueryMapKey" + (_operationid_InScopeSubQuery_TOperationparamsListMap.size() + 1);
\r
71 _operationid_InScopeSubQuery_TOperationparamsListMap.put(key, subQuery); return "operationid_InScopeSubQuery_TOperationparamsList." + key;
\r
74 protected Map<String, TOperationparamsCQ> _operationid_NotInScopeSubQuery_TOperationparamsListMap;
\r
75 public Map<String, TOperationparamsCQ> getOperationid_NotInScopeSubQuery_TOperationparamsList() { return _operationid_NotInScopeSubQuery_TOperationparamsListMap; }
\r
76 public String keepOperationid_NotInScopeSubQuery_TOperationparamsList(TOperationparamsCQ subQuery) {
\r
77 if (_operationid_NotInScopeSubQuery_TOperationparamsListMap == null) { _operationid_NotInScopeSubQuery_TOperationparamsListMap = newLinkedHashMap(); }
\r
78 String key = "subQueryMapKey" + (_operationid_NotInScopeSubQuery_TOperationparamsListMap.size() + 1);
\r
79 _operationid_NotInScopeSubQuery_TOperationparamsListMap.put(key, subQuery); return "operationid_NotInScopeSubQuery_TOperationparamsList." + key;
\r
82 protected Map<String, TOperationparamsCQ> _operationid_ExistsSubQuery_TOperationparamsListMap;
\r
83 public Map<String, TOperationparamsCQ> getOperationid_ExistsSubQuery_TOperationparamsList() { return _operationid_ExistsSubQuery_TOperationparamsListMap; }
\r
84 public String keepOperationid_ExistsSubQuery_TOperationparamsList(TOperationparamsCQ subQuery) {
\r
85 if (_operationid_ExistsSubQuery_TOperationparamsListMap == null) { _operationid_ExistsSubQuery_TOperationparamsListMap = newLinkedHashMap(); }
\r
86 String key = "subQueryMapKey" + (_operationid_ExistsSubQuery_TOperationparamsListMap.size() + 1);
\r
87 _operationid_ExistsSubQuery_TOperationparamsListMap.put(key, subQuery); return "operationid_ExistsSubQuery_TOperationparamsList." + key;
\r
90 protected Map<String, TOperationparamsCQ> _operationid_NotExistsSubQuery_TOperationparamsListMap;
\r
91 public Map<String, TOperationparamsCQ> getOperationid_NotExistsSubQuery_TOperationparamsList() { return _operationid_NotExistsSubQuery_TOperationparamsListMap; }
\r
92 public String keepOperationid_NotExistsSubQuery_TOperationparamsList(TOperationparamsCQ subQuery) {
\r
93 if (_operationid_NotExistsSubQuery_TOperationparamsListMap == null) { _operationid_NotExistsSubQuery_TOperationparamsListMap = newLinkedHashMap(); }
\r
94 String key = "subQueryMapKey" + (_operationid_NotExistsSubQuery_TOperationparamsListMap.size() + 1);
\r
95 _operationid_NotExistsSubQuery_TOperationparamsListMap.put(key, subQuery); return "operationid_NotExistsSubQuery_TOperationparamsList." + key;
\r
98 protected Map<String, TOperationparamsCQ> _operationid_SpecifyDerivedReferrer_TOperationparamsListMap;
\r
99 public Map<String, TOperationparamsCQ> getOperationid_SpecifyDerivedReferrer_TOperationparamsList() { return _operationid_SpecifyDerivedReferrer_TOperationparamsListMap; }
\r
100 public String keepOperationid_SpecifyDerivedReferrer_TOperationparamsList(TOperationparamsCQ subQuery) {
\r
101 if (_operationid_SpecifyDerivedReferrer_TOperationparamsListMap == null) { _operationid_SpecifyDerivedReferrer_TOperationparamsListMap = newLinkedHashMap(); }
\r
102 String key = "subQueryMapKey" + (_operationid_SpecifyDerivedReferrer_TOperationparamsListMap.size() + 1);
\r
103 _operationid_SpecifyDerivedReferrer_TOperationparamsListMap.put(key, subQuery); return "operationid_SpecifyDerivedReferrer_TOperationparamsList." + key;
\r
106 protected Map<String, TOperationparamsCQ> _operationid_QueryDerivedReferrer_TOperationparamsListMap;
\r
107 public Map<String, TOperationparamsCQ> getOperationid_QueryDerivedReferrer_TOperationparamsList() { return _operationid_QueryDerivedReferrer_TOperationparamsListMap; }
\r
108 public String keepOperationid_QueryDerivedReferrer_TOperationparamsList(TOperationparamsCQ subQuery) {
\r
109 if (_operationid_QueryDerivedReferrer_TOperationparamsListMap == null) { _operationid_QueryDerivedReferrer_TOperationparamsListMap = newLinkedHashMap(); }
\r
110 String key = "subQueryMapKey" + (_operationid_QueryDerivedReferrer_TOperationparamsListMap.size() + 1);
\r
111 _operationid_QueryDerivedReferrer_TOperationparamsListMap.put(key, subQuery); return "operationid_QueryDerivedReferrer_TOperationparamsList." + key;
\r
113 protected Map<String, Object> _operationid_QueryDerivedReferrer_TOperationparamsListParameterMap;
\r
114 public Map<String, Object> getOperationid_QueryDerivedReferrer_TOperationparamsListParameter() { return _operationid_QueryDerivedReferrer_TOperationparamsListParameterMap; }
\r
115 public String keepOperationid_QueryDerivedReferrer_TOperationparamsListParameter(Object parameterValue) {
\r
116 if (_operationid_QueryDerivedReferrer_TOperationparamsListParameterMap == null) { _operationid_QueryDerivedReferrer_TOperationparamsListParameterMap = newLinkedHashMap(); }
\r
117 String key = "subQueryParameterKey" + (_operationid_QueryDerivedReferrer_TOperationparamsListParameterMap.size() + 1);
\r
118 _operationid_QueryDerivedReferrer_TOperationparamsListParameterMap.put(key, parameterValue); return "operationid_QueryDerivedReferrer_TOperationparamsListParameter." + key;
\r
121 public BsTOperationCQ addOrderBy_Operationid_Asc() { regOBA("OperationID"); return this; }
\r
122 public BsTOperationCQ addOrderBy_Operationid_Desc() { regOBD("OperationID"); return this; }
\r
124 protected ConditionValue _objectId;
\r
125 public ConditionValue getObjectId() {
\r
126 if (_objectId == null) { _objectId = new ConditionValue(); }
\r
129 protected ConditionValue getCValueObjectId() { return getObjectId(); }
\r
131 public BsTOperationCQ addOrderBy_ObjectId_Asc() { regOBA("Object_ID"); return this; }
\r
132 public BsTOperationCQ addOrderBy_ObjectId_Desc() { regOBD("Object_ID"); return this; }
\r
134 protected ConditionValue _name;
\r
135 public ConditionValue getName() {
\r
136 if (_name == null) { _name = new ConditionValue(); }
\r
139 protected ConditionValue getCValueName() { return getName(); }
\r
141 protected Map<String, TConnectorCQ> _name_InScopeSubQuery_TConnectorBySourceroleListMap;
\r
142 public Map<String, TConnectorCQ> getName_InScopeSubQuery_TConnectorBySourceroleList() { return _name_InScopeSubQuery_TConnectorBySourceroleListMap; }
\r
143 public String keepName_InScopeSubQuery_TConnectorBySourceroleList(TConnectorCQ subQuery) {
\r
144 if (_name_InScopeSubQuery_TConnectorBySourceroleListMap == null) { _name_InScopeSubQuery_TConnectorBySourceroleListMap = newLinkedHashMap(); }
\r
145 String key = "subQueryMapKey" + (_name_InScopeSubQuery_TConnectorBySourceroleListMap.size() + 1);
\r
146 _name_InScopeSubQuery_TConnectorBySourceroleListMap.put(key, subQuery); return "name_InScopeSubQuery_TConnectorBySourceroleList." + key;
\r
149 protected Map<String, TConnectorCQ> _name_InScopeSubQuery_TConnectorByDestroleListMap;
\r
150 public Map<String, TConnectorCQ> getName_InScopeSubQuery_TConnectorByDestroleList() { return _name_InScopeSubQuery_TConnectorByDestroleListMap; }
\r
151 public String keepName_InScopeSubQuery_TConnectorByDestroleList(TConnectorCQ subQuery) {
\r
152 if (_name_InScopeSubQuery_TConnectorByDestroleListMap == null) { _name_InScopeSubQuery_TConnectorByDestroleListMap = newLinkedHashMap(); }
\r
153 String key = "subQueryMapKey" + (_name_InScopeSubQuery_TConnectorByDestroleListMap.size() + 1);
\r
154 _name_InScopeSubQuery_TConnectorByDestroleListMap.put(key, subQuery); return "name_InScopeSubQuery_TConnectorByDestroleList." + key;
\r
157 protected Map<String, TConnectorCQ> _name_NotInScopeSubQuery_TConnectorBySourceroleListMap;
\r
158 public Map<String, TConnectorCQ> getName_NotInScopeSubQuery_TConnectorBySourceroleList() { return _name_NotInScopeSubQuery_TConnectorBySourceroleListMap; }
\r
159 public String keepName_NotInScopeSubQuery_TConnectorBySourceroleList(TConnectorCQ subQuery) {
\r
160 if (_name_NotInScopeSubQuery_TConnectorBySourceroleListMap == null) { _name_NotInScopeSubQuery_TConnectorBySourceroleListMap = newLinkedHashMap(); }
\r
161 String key = "subQueryMapKey" + (_name_NotInScopeSubQuery_TConnectorBySourceroleListMap.size() + 1);
\r
162 _name_NotInScopeSubQuery_TConnectorBySourceroleListMap.put(key, subQuery); return "name_NotInScopeSubQuery_TConnectorBySourceroleList." + key;
\r
165 protected Map<String, TConnectorCQ> _name_NotInScopeSubQuery_TConnectorByDestroleListMap;
\r
166 public Map<String, TConnectorCQ> getName_NotInScopeSubQuery_TConnectorByDestroleList() { return _name_NotInScopeSubQuery_TConnectorByDestroleListMap; }
\r
167 public String keepName_NotInScopeSubQuery_TConnectorByDestroleList(TConnectorCQ subQuery) {
\r
168 if (_name_NotInScopeSubQuery_TConnectorByDestroleListMap == null) { _name_NotInScopeSubQuery_TConnectorByDestroleListMap = newLinkedHashMap(); }
\r
169 String key = "subQueryMapKey" + (_name_NotInScopeSubQuery_TConnectorByDestroleListMap.size() + 1);
\r
170 _name_NotInScopeSubQuery_TConnectorByDestroleListMap.put(key, subQuery); return "name_NotInScopeSubQuery_TConnectorByDestroleList." + key;
\r
173 protected Map<String, TConnectorCQ> _name_ExistsSubQuery_TConnectorBySourceroleListMap;
\r
174 public Map<String, TConnectorCQ> getName_ExistsSubQuery_TConnectorBySourceroleList() { return _name_ExistsSubQuery_TConnectorBySourceroleListMap; }
\r
175 public String keepName_ExistsSubQuery_TConnectorBySourceroleList(TConnectorCQ subQuery) {
\r
176 if (_name_ExistsSubQuery_TConnectorBySourceroleListMap == null) { _name_ExistsSubQuery_TConnectorBySourceroleListMap = newLinkedHashMap(); }
\r
177 String key = "subQueryMapKey" + (_name_ExistsSubQuery_TConnectorBySourceroleListMap.size() + 1);
\r
178 _name_ExistsSubQuery_TConnectorBySourceroleListMap.put(key, subQuery); return "name_ExistsSubQuery_TConnectorBySourceroleList." + key;
\r
181 protected Map<String, TConnectorCQ> _name_ExistsSubQuery_TConnectorByDestroleListMap;
\r
182 public Map<String, TConnectorCQ> getName_ExistsSubQuery_TConnectorByDestroleList() { return _name_ExistsSubQuery_TConnectorByDestroleListMap; }
\r
183 public String keepName_ExistsSubQuery_TConnectorByDestroleList(TConnectorCQ subQuery) {
\r
184 if (_name_ExistsSubQuery_TConnectorByDestroleListMap == null) { _name_ExistsSubQuery_TConnectorByDestroleListMap = newLinkedHashMap(); }
\r
185 String key = "subQueryMapKey" + (_name_ExistsSubQuery_TConnectorByDestroleListMap.size() + 1);
\r
186 _name_ExistsSubQuery_TConnectorByDestroleListMap.put(key, subQuery); return "name_ExistsSubQuery_TConnectorByDestroleList." + key;
\r
189 protected Map<String, TConnectorCQ> _name_NotExistsSubQuery_TConnectorBySourceroleListMap;
\r
190 public Map<String, TConnectorCQ> getName_NotExistsSubQuery_TConnectorBySourceroleList() { return _name_NotExistsSubQuery_TConnectorBySourceroleListMap; }
\r
191 public String keepName_NotExistsSubQuery_TConnectorBySourceroleList(TConnectorCQ subQuery) {
\r
192 if (_name_NotExistsSubQuery_TConnectorBySourceroleListMap == null) { _name_NotExistsSubQuery_TConnectorBySourceroleListMap = newLinkedHashMap(); }
\r
193 String key = "subQueryMapKey" + (_name_NotExistsSubQuery_TConnectorBySourceroleListMap.size() + 1);
\r
194 _name_NotExistsSubQuery_TConnectorBySourceroleListMap.put(key, subQuery); return "name_NotExistsSubQuery_TConnectorBySourceroleList." + key;
\r
197 protected Map<String, TConnectorCQ> _name_NotExistsSubQuery_TConnectorByDestroleListMap;
\r
198 public Map<String, TConnectorCQ> getName_NotExistsSubQuery_TConnectorByDestroleList() { return _name_NotExistsSubQuery_TConnectorByDestroleListMap; }
\r
199 public String keepName_NotExistsSubQuery_TConnectorByDestroleList(TConnectorCQ subQuery) {
\r
200 if (_name_NotExistsSubQuery_TConnectorByDestroleListMap == null) { _name_NotExistsSubQuery_TConnectorByDestroleListMap = newLinkedHashMap(); }
\r
201 String key = "subQueryMapKey" + (_name_NotExistsSubQuery_TConnectorByDestroleListMap.size() + 1);
\r
202 _name_NotExistsSubQuery_TConnectorByDestroleListMap.put(key, subQuery); return "name_NotExistsSubQuery_TConnectorByDestroleList." + key;
\r
205 protected Map<String, TConnectorCQ> _name_SpecifyDerivedReferrer_TConnectorBySourceroleListMap;
\r
206 public Map<String, TConnectorCQ> getName_SpecifyDerivedReferrer_TConnectorBySourceroleList() { return _name_SpecifyDerivedReferrer_TConnectorBySourceroleListMap; }
\r
207 public String keepName_SpecifyDerivedReferrer_TConnectorBySourceroleList(TConnectorCQ subQuery) {
\r
208 if (_name_SpecifyDerivedReferrer_TConnectorBySourceroleListMap == null) { _name_SpecifyDerivedReferrer_TConnectorBySourceroleListMap = newLinkedHashMap(); }
\r
209 String key = "subQueryMapKey" + (_name_SpecifyDerivedReferrer_TConnectorBySourceroleListMap.size() + 1);
\r
210 _name_SpecifyDerivedReferrer_TConnectorBySourceroleListMap.put(key, subQuery); return "name_SpecifyDerivedReferrer_TConnectorBySourceroleList." + key;
\r
213 protected Map<String, TConnectorCQ> _name_SpecifyDerivedReferrer_TConnectorByDestroleListMap;
\r
214 public Map<String, TConnectorCQ> getName_SpecifyDerivedReferrer_TConnectorByDestroleList() { return _name_SpecifyDerivedReferrer_TConnectorByDestroleListMap; }
\r
215 public String keepName_SpecifyDerivedReferrer_TConnectorByDestroleList(TConnectorCQ subQuery) {
\r
216 if (_name_SpecifyDerivedReferrer_TConnectorByDestroleListMap == null) { _name_SpecifyDerivedReferrer_TConnectorByDestroleListMap = newLinkedHashMap(); }
\r
217 String key = "subQueryMapKey" + (_name_SpecifyDerivedReferrer_TConnectorByDestroleListMap.size() + 1);
\r
218 _name_SpecifyDerivedReferrer_TConnectorByDestroleListMap.put(key, subQuery); return "name_SpecifyDerivedReferrer_TConnectorByDestroleList." + key;
\r
221 protected Map<String, TConnectorCQ> _name_QueryDerivedReferrer_TConnectorBySourceroleListMap;
\r
222 public Map<String, TConnectorCQ> getName_QueryDerivedReferrer_TConnectorBySourceroleList() { return _name_QueryDerivedReferrer_TConnectorBySourceroleListMap; }
\r
223 public String keepName_QueryDerivedReferrer_TConnectorBySourceroleList(TConnectorCQ subQuery) {
\r
224 if (_name_QueryDerivedReferrer_TConnectorBySourceroleListMap == null) { _name_QueryDerivedReferrer_TConnectorBySourceroleListMap = newLinkedHashMap(); }
\r
225 String key = "subQueryMapKey" + (_name_QueryDerivedReferrer_TConnectorBySourceroleListMap.size() + 1);
\r
226 _name_QueryDerivedReferrer_TConnectorBySourceroleListMap.put(key, subQuery); return "name_QueryDerivedReferrer_TConnectorBySourceroleList." + key;
\r
228 protected Map<String, Object> _name_QueryDerivedReferrer_TConnectorBySourceroleListParameterMap;
\r
229 public Map<String, Object> getName_QueryDerivedReferrer_TConnectorBySourceroleListParameter() { return _name_QueryDerivedReferrer_TConnectorBySourceroleListParameterMap; }
\r
230 public String keepName_QueryDerivedReferrer_TConnectorBySourceroleListParameter(Object parameterValue) {
\r
231 if (_name_QueryDerivedReferrer_TConnectorBySourceroleListParameterMap == null) { _name_QueryDerivedReferrer_TConnectorBySourceroleListParameterMap = newLinkedHashMap(); }
\r
232 String key = "subQueryParameterKey" + (_name_QueryDerivedReferrer_TConnectorBySourceroleListParameterMap.size() + 1);
\r
233 _name_QueryDerivedReferrer_TConnectorBySourceroleListParameterMap.put(key, parameterValue); return "name_QueryDerivedReferrer_TConnectorBySourceroleListParameter." + key;
\r
236 protected Map<String, TConnectorCQ> _name_QueryDerivedReferrer_TConnectorByDestroleListMap;
\r
237 public Map<String, TConnectorCQ> getName_QueryDerivedReferrer_TConnectorByDestroleList() { return _name_QueryDerivedReferrer_TConnectorByDestroleListMap; }
\r
238 public String keepName_QueryDerivedReferrer_TConnectorByDestroleList(TConnectorCQ subQuery) {
\r
239 if (_name_QueryDerivedReferrer_TConnectorByDestroleListMap == null) { _name_QueryDerivedReferrer_TConnectorByDestroleListMap = newLinkedHashMap(); }
\r
240 String key = "subQueryMapKey" + (_name_QueryDerivedReferrer_TConnectorByDestroleListMap.size() + 1);
\r
241 _name_QueryDerivedReferrer_TConnectorByDestroleListMap.put(key, subQuery); return "name_QueryDerivedReferrer_TConnectorByDestroleList." + key;
\r
243 protected Map<String, Object> _name_QueryDerivedReferrer_TConnectorByDestroleListParameterMap;
\r
244 public Map<String, Object> getName_QueryDerivedReferrer_TConnectorByDestroleListParameter() { return _name_QueryDerivedReferrer_TConnectorByDestroleListParameterMap; }
\r
245 public String keepName_QueryDerivedReferrer_TConnectorByDestroleListParameter(Object parameterValue) {
\r
246 if (_name_QueryDerivedReferrer_TConnectorByDestroleListParameterMap == null) { _name_QueryDerivedReferrer_TConnectorByDestroleListParameterMap = newLinkedHashMap(); }
\r
247 String key = "subQueryParameterKey" + (_name_QueryDerivedReferrer_TConnectorByDestroleListParameterMap.size() + 1);
\r
248 _name_QueryDerivedReferrer_TConnectorByDestroleListParameterMap.put(key, parameterValue); return "name_QueryDerivedReferrer_TConnectorByDestroleListParameter." + key;
\r
251 public BsTOperationCQ addOrderBy_Name_Asc() { regOBA("Name"); return this; }
\r
252 public BsTOperationCQ addOrderBy_Name_Desc() { regOBD("Name"); return this; }
\r
254 protected ConditionValue _scope;
\r
255 public ConditionValue getScope() {
\r
256 if (_scope == null) { _scope = new ConditionValue(); }
\r
259 protected ConditionValue getCValueScope() { return getScope(); }
\r
261 public BsTOperationCQ addOrderBy_Scope_Asc() { regOBA("Scope"); return this; }
\r
262 public BsTOperationCQ addOrderBy_Scope_Desc() { regOBD("Scope"); return this; }
\r
264 protected ConditionValue _type;
\r
265 public ConditionValue getType() {
\r
266 if (_type == null) { _type = new ConditionValue(); }
\r
269 protected ConditionValue getCValueType() { return getType(); }
\r
271 public BsTOperationCQ addOrderBy_Type_Asc() { regOBA("Type"); return this; }
\r
272 public BsTOperationCQ addOrderBy_Type_Desc() { regOBD("Type"); return this; }
\r
274 protected ConditionValue _returnarray;
\r
275 public ConditionValue getReturnarray() {
\r
276 if (_returnarray == null) { _returnarray = new ConditionValue(); }
\r
277 return _returnarray;
\r
279 protected ConditionValue getCValueReturnarray() { return getReturnarray(); }
\r
281 public BsTOperationCQ addOrderBy_Returnarray_Asc() { regOBA("ReturnArray"); return this; }
\r
282 public BsTOperationCQ addOrderBy_Returnarray_Desc() { regOBD("ReturnArray"); return this; }
\r
284 protected ConditionValue _stereotype;
\r
285 public ConditionValue getStereotype() {
\r
286 if (_stereotype == null) { _stereotype = new ConditionValue(); }
\r
287 return _stereotype;
\r
289 protected ConditionValue getCValueStereotype() { return getStereotype(); }
\r
291 public BsTOperationCQ addOrderBy_Stereotype_Asc() { regOBA("Stereotype"); return this; }
\r
292 public BsTOperationCQ addOrderBy_Stereotype_Desc() { regOBD("Stereotype"); return this; }
\r
294 protected ConditionValue _isstatic;
\r
295 public ConditionValue getIsstatic() {
\r
296 if (_isstatic == null) { _isstatic = new ConditionValue(); }
\r
299 protected ConditionValue getCValueIsstatic() { return getIsstatic(); }
\r
301 public BsTOperationCQ addOrderBy_Isstatic_Asc() { regOBA("IsStatic"); return this; }
\r
302 public BsTOperationCQ addOrderBy_Isstatic_Desc() { regOBD("IsStatic"); return this; }
\r
304 protected ConditionValue _concurrency;
\r
305 public ConditionValue getConcurrency() {
\r
306 if (_concurrency == null) { _concurrency = new ConditionValue(); }
\r
307 return _concurrency;
\r
309 protected ConditionValue getCValueConcurrency() { return getConcurrency(); }
\r
311 public BsTOperationCQ addOrderBy_Concurrency_Asc() { regOBA("Concurrency"); return this; }
\r
312 public BsTOperationCQ addOrderBy_Concurrency_Desc() { regOBD("Concurrency"); return this; }
\r
314 protected ConditionValue _notes;
\r
315 public ConditionValue getNotes() {
\r
316 if (_notes == null) { _notes = new ConditionValue(); }
\r
319 protected ConditionValue getCValueNotes() { return getNotes(); }
\r
321 public BsTOperationCQ addOrderBy_Notes_Asc() { regOBA("Notes"); return this; }
\r
322 public BsTOperationCQ addOrderBy_Notes_Desc() { regOBD("Notes"); return this; }
\r
324 protected ConditionValue _behaviour;
\r
325 public ConditionValue getBehaviour() {
\r
326 if (_behaviour == null) { _behaviour = new ConditionValue(); }
\r
329 protected ConditionValue getCValueBehaviour() { return getBehaviour(); }
\r
331 public BsTOperationCQ addOrderBy_Behaviour_Asc() { regOBA("Behaviour"); return this; }
\r
332 public BsTOperationCQ addOrderBy_Behaviour_Desc() { regOBD("Behaviour"); return this; }
\r
334 protected ConditionValue _genoption;
\r
335 public ConditionValue getGenoption() {
\r
336 if (_genoption == null) { _genoption = new ConditionValue(); }
\r
339 protected ConditionValue getCValueGenoption() { return getGenoption(); }
\r
341 public BsTOperationCQ addOrderBy_Genoption_Asc() { regOBA("GenOption"); return this; }
\r
342 public BsTOperationCQ addOrderBy_Genoption_Desc() { regOBD("GenOption"); return this; }
\r
344 protected ConditionValue _pos;
\r
345 public ConditionValue getPos() {
\r
346 if (_pos == null) { _pos = new ConditionValue(); }
\r
349 protected ConditionValue getCValuePos() { return getPos(); }
\r
351 public BsTOperationCQ addOrderBy_Pos_Asc() { regOBA("Pos"); return this; }
\r
352 public BsTOperationCQ addOrderBy_Pos_Desc() { regOBD("Pos"); return this; }
\r
354 protected ConditionValue _style;
\r
355 public ConditionValue getStyle() {
\r
356 if (_style == null) { _style = new ConditionValue(); }
\r
359 protected ConditionValue getCValueStyle() { return getStyle(); }
\r
361 public BsTOperationCQ addOrderBy_Style_Asc() { regOBA("Style"); return this; }
\r
362 public BsTOperationCQ addOrderBy_Style_Desc() { regOBD("Style"); return this; }
\r
364 protected ConditionValue _pure;
\r
365 public ConditionValue getPure() {
\r
366 if (_pure == null) { _pure = new ConditionValue(); }
\r
369 protected ConditionValue getCValuePure() { return getPure(); }
\r
371 public BsTOperationCQ addOrderBy_Pure_Asc() { regOBA("Pure"); return this; }
\r
372 public BsTOperationCQ addOrderBy_Pure_Desc() { regOBD("Pure"); return this; }
\r
374 protected ConditionValue _classifier;
\r
375 public ConditionValue getClassifier() {
\r
376 if (_classifier == null) { _classifier = new ConditionValue(); }
\r
377 return _classifier;
\r
379 protected ConditionValue getCValueClassifier() { return getClassifier(); }
\r
381 public BsTOperationCQ addOrderBy_Classifier_Asc() { regOBA("Classifier"); return this; }
\r
382 public BsTOperationCQ addOrderBy_Classifier_Desc() { regOBD("Classifier"); return this; }
\r
384 protected ConditionValue _code;
\r
385 public ConditionValue getCode() {
\r
386 if (_code == null) { _code = new ConditionValue(); }
\r
389 protected ConditionValue getCValueCode() { return getCode(); }
\r
391 public BsTOperationCQ addOrderBy_Code_Asc() { regOBA("Code"); return this; }
\r
392 public BsTOperationCQ addOrderBy_Code_Desc() { regOBD("Code"); return this; }
\r
394 protected ConditionValue _isroot;
\r
395 public ConditionValue getIsroot() {
\r
396 if (_isroot == null) { _isroot = new ConditionValue(); }
\r
399 protected ConditionValue getCValueIsroot() { return getIsroot(); }
\r
401 public BsTOperationCQ addOrderBy_Isroot_Asc() { regOBA("IsRoot"); return this; }
\r
402 public BsTOperationCQ addOrderBy_Isroot_Desc() { regOBD("IsRoot"); return this; }
\r
404 protected ConditionValue _isleaf;
\r
405 public ConditionValue getIsleaf() {
\r
406 if (_isleaf == null) { _isleaf = new ConditionValue(); }
\r
409 protected ConditionValue getCValueIsleaf() { return getIsleaf(); }
\r
411 public BsTOperationCQ addOrderBy_Isleaf_Asc() { regOBA("IsLeaf"); return this; }
\r
412 public BsTOperationCQ addOrderBy_Isleaf_Desc() { regOBD("IsLeaf"); return this; }
\r
414 protected ConditionValue _isquery;
\r
415 public ConditionValue getIsquery() {
\r
416 if (_isquery == null) { _isquery = new ConditionValue(); }
\r
419 protected ConditionValue getCValueIsquery() { return getIsquery(); }
\r
421 public BsTOperationCQ addOrderBy_Isquery_Asc() { regOBA("IsQuery"); return this; }
\r
422 public BsTOperationCQ addOrderBy_Isquery_Desc() { regOBD("IsQuery"); return this; }
\r
424 protected ConditionValue _stateflags;
\r
425 public ConditionValue getStateflags() {
\r
426 if (_stateflags == null) { _stateflags = new ConditionValue(); }
\r
427 return _stateflags;
\r
429 protected ConditionValue getCValueStateflags() { return getStateflags(); }
\r
431 public BsTOperationCQ addOrderBy_Stateflags_Asc() { regOBA("StateFlags"); return this; }
\r
432 public BsTOperationCQ addOrderBy_Stateflags_Desc() { regOBD("StateFlags"); return this; }
\r
434 protected ConditionValue _eaGuid;
\r
435 public ConditionValue getEaGuid() {
\r
436 if (_eaGuid == null) { _eaGuid = new ConditionValue(); }
\r
439 protected ConditionValue getCValueEaGuid() { return getEaGuid(); }
\r
441 public BsTOperationCQ addOrderBy_EaGuid_Asc() { regOBA("ea_guid"); return this; }
\r
442 public BsTOperationCQ addOrderBy_EaGuid_Desc() { regOBD("ea_guid"); return this; }
\r
444 protected ConditionValue _styleex;
\r
445 public ConditionValue getStyleex() {
\r
446 if (_styleex == null) { _styleex = new ConditionValue(); }
\r
449 protected ConditionValue getCValueStyleex() { return getStyleex(); }
\r
451 public BsTOperationCQ addOrderBy_Styleex_Asc() { regOBA("StyleEx"); return this; }
\r
452 public BsTOperationCQ addOrderBy_Styleex_Desc() { regOBD("StyleEx"); return this; }
\r
454 // ===================================================================================
\r
455 // Specified Derived OrderBy
\r
456 // =========================
\r
457 public BsTOperationCQ addSpecifiedDerivedOrderBy_Asc(String aliasName) { registerSpecifiedDerivedOrderBy_Asc(aliasName); return this; }
\r
458 public BsTOperationCQ addSpecifiedDerivedOrderBy_Desc(String aliasName) { registerSpecifiedDerivedOrderBy_Desc(aliasName); return this; }
\r
460 // ===================================================================================
\r
463 protected void reflectRelationOnUnionQuery(ConditionQuery baseQueryAsSuper, ConditionQuery unionQueryAsSuper) {
\r
464 TOperationCQ baseQuery = (TOperationCQ)baseQueryAsSuper;
\r
465 TOperationCQ unionQuery = (TOperationCQ)unionQueryAsSuper;
\r
466 if (baseQuery.hasConditionQueryTObject()) {
\r
467 unionQuery.queryTObject().reflectRelationOnUnionQuery(baseQuery.queryTObject(), unionQuery.queryTObject());
\r
471 // ===================================================================================
\r
474 public TObjectCQ queryTObject() {
\r
475 return getConditionQueryTObject();
\r
477 protected TObjectCQ _conditionQueryTObject;
\r
478 public TObjectCQ getConditionQueryTObject() {
\r
479 if (_conditionQueryTObject == null) {
\r
480 _conditionQueryTObject = xcreateQueryTObject();
\r
481 xsetupOuterJoinTObject();
\r
483 return _conditionQueryTObject;
\r
485 protected TObjectCQ xcreateQueryTObject() {
\r
486 String nrp = resolveNextRelationPath("t_operation", "tObject");
\r
487 String jan = resolveJoinAliasName(nrp, getNextNestLevel());
\r
488 TObjectCQ cq = new TObjectCQ(this, getSqlClause(), jan, getNextNestLevel());
\r
489 cq.xsetForeignPropertyName("tObject"); cq.xsetRelationPath(nrp); return cq;
\r
491 protected void xsetupOuterJoinTObject() {
\r
492 TObjectCQ cq = getConditionQueryTObject();
\r
493 Map<String, String> joinOnMap = newLinkedHashMap();
\r
494 joinOnMap.put(getRealColumnName("Object_ID"), cq.getRealColumnName("Object_ID"));
\r
495 registerOuterJoin(cq, joinOnMap);
\r
497 public boolean hasConditionQueryTObject() {
\r
498 return _conditionQueryTObject != null;
\r
501 // ===================================================================================
\r
504 protected Map<String, TOperationCQ> _scalarSubQueryMap;
\r
505 public Map<String, TOperationCQ> getScalarSubQuery() { return _scalarSubQueryMap; }
\r
506 public String keepScalarSubQuery(TOperationCQ subQuery) {
\r
507 if (_scalarSubQueryMap == null) { _scalarSubQueryMap = newLinkedHashMap(); }
\r
508 String key = "subQueryMapKey" + (_scalarSubQueryMap.size() + 1);
\r
509 _scalarSubQueryMap.put(key, subQuery); return "scalarSubQuery." + key;
\r
512 // ===================================================================================
\r
513 // MySelf InScope SubQuery
\r
514 // =======================
\r
515 protected Map<String, TOperationCQ> _myselfInScopeSubQueryMap;
\r
516 public Map<String, TOperationCQ> getMyselfInScopeSubQuery() { return _myselfInScopeSubQueryMap; }
\r
517 public String keepMyselfInScopeSubQuery(TOperationCQ subQuery) {
\r
518 if (_myselfInScopeSubQueryMap == null) { _myselfInScopeSubQueryMap = newLinkedHashMap(); }
\r
519 String key = "subQueryMapKey" + (_myselfInScopeSubQueryMap.size() + 1);
\r
520 _myselfInScopeSubQueryMap.put(key, subQuery); return "myselfInScopeSubQuery." + key;
\r
523 // ===================================================================================
\r
526 // Very Internal (for Suppressing Warn about 'Not Use Import')
\r
527 String xCB() { return TOperationCB.class.getName(); }
\r
528 String xCQ() { return TOperationCQ.class.getName(); }
\r
529 String xMap() { return Map.class.getName(); }
\r