View Javadoc
1   /*
2    * Copyright 2012-2017 CodeLibs Project and the Others.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13   * either express or implied. See the License for the specific language
14   * governing permissions and limitations under the License.
15   */
16  package org.codelibs.fess.es.config.cbean.cq.bs;
17  
18  import java.time.LocalDateTime;
19  import java.util.ArrayList;
20  import java.util.Collection;
21  
22  import org.codelibs.fess.es.config.allcommon.EsAbstractConditionQuery;
23  import org.codelibs.fess.es.config.cbean.cq.LabelToRoleCQ;
24  import org.dbflute.cbean.ckey.ConditionKey;
25  import org.elasticsearch.index.query.BoolQueryBuilder;
26  import org.elasticsearch.index.query.CommonTermsQueryBuilder;
27  import org.elasticsearch.index.query.ExistsQueryBuilder;
28  import org.elasticsearch.index.query.IdsQueryBuilder;
29  import org.elasticsearch.index.query.MatchPhrasePrefixQueryBuilder;
30  import org.elasticsearch.index.query.MatchPhraseQueryBuilder;
31  import org.elasticsearch.index.query.MatchQueryBuilder;
32  import org.elasticsearch.index.query.PrefixQueryBuilder;
33  import org.elasticsearch.index.query.RangeQueryBuilder;
34  import org.elasticsearch.index.query.RegexpQueryBuilder;
35  import org.elasticsearch.index.query.SpanTermQueryBuilder;
36  import org.elasticsearch.index.query.TermQueryBuilder;
37  import org.elasticsearch.index.query.TermsQueryBuilder;
38  import org.elasticsearch.index.query.WildcardQueryBuilder;
39  import org.elasticsearch.index.query.functionscore.FunctionScoreQueryBuilder;
40  import org.elasticsearch.index.query.functionscore.FunctionScoreQueryBuilder.FilterFunctionBuilder;
41  
42  /**
43   * @author ESFlute (using FreeGen)
44   */
45  public abstract class BsLabelToRoleCQ extends EsAbstractConditionQuery {
46  
47      protected static final Class<?> suppressUnusedImportLocalDateTime = LocalDateTime.class;
48  
49      // ===================================================================================
50      //                                                                       Name Override
51      //                                                                       =============
52      @Override
53      public String asTableDbName() {
54          return "label_to_role";
55      }
56  
57      @Override
58      public String xgetAliasName() {
59          return "label_to_role";
60      }
61  
62      // ===================================================================================
63      //                                                                       Query Control
64      //                                                                       =============
65      public void functionScore(OperatorCall<LabelToRoleCQ> queryLambda,
66              ScoreFunctionCall<ScoreFunctionCreator<LabelToRoleCQ>> functionsLambda,
67              final ConditionOptionCall<FunctionScoreQueryBuilder> opLambda) {
68          LabelToRoleCQ cq = new LabelToRoleCQ();
69          queryLambda.callback(cq);
70          final Collection<FilterFunctionBuilder> list = new ArrayList<>();
71          if (functionsLambda != null) {
72              functionsLambda.callback((cqLambda, scoreFunctionBuilder) -> {
73                  LabelToRoleCQ cf = new LabelToRoleCQ();
74                  cqLambda.callback(cf);
75                  list.add(new FilterFunctionBuilder(cf.getQuery(), scoreFunctionBuilder));
76              });
77          }
78          final FunctionScoreQueryBuilder builder = regFunctionScoreQ(cq.getQuery(), list);
79          if (opLambda != null) {
80              opLambda.callback(builder);
81          }
82      }
83  
84      public void filtered(FilteredCall<LabelToRoleCQ, LabelToRoleCQ> filteredLambda) {
85          filtered(filteredLambda, null);
86      }
87  
88      public void filtered(FilteredCall<LabelToRoleCQ, LabelToRoleCQ> filteredLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
89          bool((must, should, mustNot, filter) -> {
90              filteredLambda.callback(must, filter);
91          }, opLambda);
92      }
93  
94      public void not(OperatorCall<LabelToRoleCQ> notLambda) {
95          not(notLambda, null);
96      }
97  
98      public void not(final OperatorCall<LabelToRoleCQ> notLambda, final ConditionOptionCall<BoolQueryBuilder> opLambda) {
99          bool((must, should, mustNot, filter) -> notLambda.callback(mustNot), opLambda);
100     }
101 
102     public void bool(BoolCall<LabelToRoleCQ> boolLambda) {
103         bool(boolLambda, null);
104     }
105 
106     public void bool(BoolCall<LabelToRoleCQ> boolLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
107         LabelToRoleCQ mustQuery = new LabelToRoleCQ();
108         LabelToRoleCQ shouldQuery = new LabelToRoleCQ();
109         LabelToRoleCQ mustNotQuery = new LabelToRoleCQ();
110         LabelToRoleCQ filterQuery = new LabelToRoleCQ();
111         boolLambda.callback(mustQuery, shouldQuery, mustNotQuery, filterQuery);
112         if (mustQuery.hasQueries() || shouldQuery.hasQueries() || mustNotQuery.hasQueries() || filterQuery.hasQueries()) {
113             BoolQueryBuilder builder =
114                     regBoolCQ(mustQuery.getQueryBuilderList(), shouldQuery.getQueryBuilderList(), mustNotQuery.getQueryBuilderList(),
115                             filterQuery.getQueryBuilderList());
116             if (opLambda != null) {
117                 opLambda.callback(builder);
118             }
119         }
120     }
121 
122     // ===================================================================================
123     //                                                                           Query Set
124     //                                                                           =========
125     public void setId_Equal(String id) {
126         setId_Term(id, null);
127     }
128 
129     public void setId_Equal(String id, ConditionOptionCall<TermQueryBuilder> opLambda) {
130         setId_Term(id, opLambda);
131     }
132 
133     public void setId_Term(String id) {
134         setId_Term(id, null);
135     }
136 
137     public void setId_Term(String id, ConditionOptionCall<TermQueryBuilder> opLambda) {
138         TermQueryBuilder builder = regTermQ("_id", id);
139         if (opLambda != null) {
140             opLambda.callback(builder);
141         }
142     }
143 
144     public void setId_NotEqual(String id) {
145         setId_NotTerm(id, null);
146     }
147 
148     public void setId_NotTerm(String id) {
149         setId_NotTerm(id, null);
150     }
151 
152     public void setId_NotEqual(String id, ConditionOptionCall<BoolQueryBuilder> opLambda) {
153         setId_NotTerm(id, opLambda);
154     }
155 
156     public void setId_NotTerm(String id, ConditionOptionCall<BoolQueryBuilder> opLambda) {
157         not(not -> not.setId_Term(id), opLambda);
158     }
159 
160     public void setId_Terms(Collection<String> idList) {
161         setId_Terms(idList, null);
162     }
163 
164     public void setId_Terms(Collection<String> idList, ConditionOptionCall<IdsQueryBuilder> opLambda) {
165         IdsQueryBuilder builder = regIdsQ(idList);
166         if (opLambda != null) {
167             opLambda.callback(builder);
168         }
169     }
170 
171     public void setId_InScope(Collection<String> idList) {
172         setId_Terms(idList, null);
173     }
174 
175     public void setId_InScope(Collection<String> idList, ConditionOptionCall<IdsQueryBuilder> opLambda) {
176         setId_Terms(idList, opLambda);
177     }
178 
179     public BsLabelToRoleCQ addOrderBy_Id_Asc() {
180         regOBA("_uid");
181         return this;
182     }
183 
184     public BsLabelToRoleCQ addOrderBy_Id_Desc() {
185         regOBD("_uid");
186         return this;
187     }
188 
189     public void setLabelTypeId_Equal(String labelTypeId) {
190         setLabelTypeId_Term(labelTypeId, null);
191     }
192 
193     public void setLabelTypeId_Equal(String labelTypeId, ConditionOptionCall<TermQueryBuilder> opLambda) {
194         setLabelTypeId_Term(labelTypeId, opLambda);
195     }
196 
197     public void setLabelTypeId_Term(String labelTypeId) {
198         setLabelTypeId_Term(labelTypeId, null);
199     }
200 
201     public void setLabelTypeId_Term(String labelTypeId, ConditionOptionCall<TermQueryBuilder> opLambda) {
202         TermQueryBuilder builder = regTermQ("labelTypeId", labelTypeId);
203         if (opLambda != null) {
204             opLambda.callback(builder);
205         }
206     }
207 
208     public void setLabelTypeId_NotEqual(String labelTypeId) {
209         setLabelTypeId_NotTerm(labelTypeId, null);
210     }
211 
212     public void setLabelTypeId_NotTerm(String labelTypeId) {
213         setLabelTypeId_NotTerm(labelTypeId, null);
214     }
215 
216     public void setLabelTypeId_NotEqual(String labelTypeId, ConditionOptionCall<BoolQueryBuilder> opLambda) {
217         setLabelTypeId_NotTerm(labelTypeId, opLambda);
218     }
219 
220     public void setLabelTypeId_NotTerm(String labelTypeId, ConditionOptionCall<BoolQueryBuilder> opLambda) {
221         not(not -> not.setLabelTypeId_Term(labelTypeId), opLambda);
222     }
223 
224     public void setLabelTypeId_Terms(Collection<String> labelTypeIdList) {
225         setLabelTypeId_Terms(labelTypeIdList, null);
226     }
227 
228     public void setLabelTypeId_Terms(Collection<String> labelTypeIdList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
229         TermsQueryBuilder builder = regTermsQ("labelTypeId", labelTypeIdList);
230         if (opLambda != null) {
231             opLambda.callback(builder);
232         }
233     }
234 
235     public void setLabelTypeId_InScope(Collection<String> labelTypeIdList) {
236         setLabelTypeId_Terms(labelTypeIdList, null);
237     }
238 
239     public void setLabelTypeId_InScope(Collection<String> labelTypeIdList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
240         setLabelTypeId_Terms(labelTypeIdList, opLambda);
241     }
242 
243     public void setLabelTypeId_Match(String labelTypeId) {
244         setLabelTypeId_Match(labelTypeId, null);
245     }
246 
247     public void setLabelTypeId_Match(String labelTypeId, ConditionOptionCall<MatchQueryBuilder> opLambda) {
248         MatchQueryBuilder builder = regMatchQ("labelTypeId", labelTypeId);
249         if (opLambda != null) {
250             opLambda.callback(builder);
251         }
252     }
253 
254     public void setLabelTypeId_MatchPhrase(String labelTypeId) {
255         setLabelTypeId_MatchPhrase(labelTypeId, null);
256     }
257 
258     public void setLabelTypeId_MatchPhrase(String labelTypeId, ConditionOptionCall<MatchPhraseQueryBuilder> opLambda) {
259         MatchPhraseQueryBuilder builder = regMatchPhraseQ("labelTypeId", labelTypeId);
260         if (opLambda != null) {
261             opLambda.callback(builder);
262         }
263     }
264 
265     public void setLabelTypeId_MatchPhrasePrefix(String labelTypeId) {
266         setLabelTypeId_MatchPhrasePrefix(labelTypeId, null);
267     }
268 
269     public void setLabelTypeId_MatchPhrasePrefix(String labelTypeId, ConditionOptionCall<MatchPhrasePrefixQueryBuilder> opLambda) {
270         MatchPhrasePrefixQueryBuilder builder = regMatchPhrasePrefixQ("labelTypeId", labelTypeId);
271         if (opLambda != null) {
272             opLambda.callback(builder);
273         }
274     }
275 
276     public void setLabelTypeId_Fuzzy(String labelTypeId) {
277         setLabelTypeId_Fuzzy(labelTypeId, null);
278     }
279 
280     public void setLabelTypeId_Fuzzy(String labelTypeId, ConditionOptionCall<MatchQueryBuilder> opLambda) {
281         MatchQueryBuilder builder = regFuzzyQ("labelTypeId", labelTypeId);
282         if (opLambda != null) {
283             opLambda.callback(builder);
284         }
285     }
286 
287     public void setLabelTypeId_Prefix(String labelTypeId) {
288         setLabelTypeId_Prefix(labelTypeId, null);
289     }
290 
291     public void setLabelTypeId_Prefix(String labelTypeId, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
292         PrefixQueryBuilder builder = regPrefixQ("labelTypeId", labelTypeId);
293         if (opLambda != null) {
294             opLambda.callback(builder);
295         }
296     }
297 
298     public void setLabelTypeId_Wildcard(String labelTypeId) {
299         setLabelTypeId_Wildcard(labelTypeId, null);
300     }
301 
302     public void setLabelTypeId_Wildcard(String labelTypeId, ConditionOptionCall<WildcardQueryBuilder> opLambda) {
303         WildcardQueryBuilder builder = regWildcardQ("labelTypeId", labelTypeId);
304         if (opLambda != null) {
305             opLambda.callback(builder);
306         }
307     }
308 
309     public void setLabelTypeId_Regexp(String labelTypeId) {
310         setLabelTypeId_Regexp(labelTypeId, null);
311     }
312 
313     public void setLabelTypeId_Regexp(String labelTypeId, ConditionOptionCall<RegexpQueryBuilder> opLambda) {
314         RegexpQueryBuilder builder = regRegexpQ("labelTypeId", labelTypeId);
315         if (opLambda != null) {
316             opLambda.callback(builder);
317         }
318     }
319 
320     public void setLabelTypeId_SpanTerm(String labelTypeId) {
321         setLabelTypeId_SpanTerm("labelTypeId", null);
322     }
323 
324     public void setLabelTypeId_SpanTerm(String labelTypeId, ConditionOptionCall<SpanTermQueryBuilder> opLambda) {
325         SpanTermQueryBuilder builder = regSpanTermQ("labelTypeId", labelTypeId);
326         if (opLambda != null) {
327             opLambda.callback(builder);
328         }
329     }
330 
331     public void setLabelTypeId_GreaterThan(String labelTypeId) {
332         setLabelTypeId_GreaterThan(labelTypeId, null);
333     }
334 
335     public void setLabelTypeId_GreaterThan(String labelTypeId, ConditionOptionCall<RangeQueryBuilder> opLambda) {
336         final Object _value = labelTypeId;
337         RangeQueryBuilder builder = regRangeQ("labelTypeId", ConditionKey.CK_GREATER_THAN, _value);
338         if (opLambda != null) {
339             opLambda.callback(builder);
340         }
341     }
342 
343     public void setLabelTypeId_LessThan(String labelTypeId) {
344         setLabelTypeId_LessThan(labelTypeId, null);
345     }
346 
347     public void setLabelTypeId_LessThan(String labelTypeId, ConditionOptionCall<RangeQueryBuilder> opLambda) {
348         final Object _value = labelTypeId;
349         RangeQueryBuilder builder = regRangeQ("labelTypeId", ConditionKey.CK_LESS_THAN, _value);
350         if (opLambda != null) {
351             opLambda.callback(builder);
352         }
353     }
354 
355     public void setLabelTypeId_GreaterEqual(String labelTypeId) {
356         setLabelTypeId_GreaterEqual(labelTypeId, null);
357     }
358 
359     public void setLabelTypeId_GreaterEqual(String labelTypeId, ConditionOptionCall<RangeQueryBuilder> opLambda) {
360         final Object _value = labelTypeId;
361         RangeQueryBuilder builder = regRangeQ("labelTypeId", ConditionKey.CK_GREATER_EQUAL, _value);
362         if (opLambda != null) {
363             opLambda.callback(builder);
364         }
365     }
366 
367     public void setLabelTypeId_LessEqual(String labelTypeId) {
368         setLabelTypeId_LessEqual(labelTypeId, null);
369     }
370 
371     public void setLabelTypeId_LessEqual(String labelTypeId, ConditionOptionCall<RangeQueryBuilder> opLambda) {
372         final Object _value = labelTypeId;
373         RangeQueryBuilder builder = regRangeQ("labelTypeId", ConditionKey.CK_LESS_EQUAL, _value);
374         if (opLambda != null) {
375             opLambda.callback(builder);
376         }
377     }
378 
379     public void setLabelTypeId_Exists() {
380         setLabelTypeId_Exists(null);
381     }
382 
383     public void setLabelTypeId_Exists(ConditionOptionCall<ExistsQueryBuilder> opLambda) {
384         ExistsQueryBuilder builder = regExistsQ("labelTypeId");
385         if (opLambda != null) {
386             opLambda.callback(builder);
387         }
388     }
389 
390     public void setLabelTypeId_CommonTerms(String labelTypeId) {
391         setLabelTypeId_CommonTerms(labelTypeId, null);
392     }
393 
394     public void setLabelTypeId_CommonTerms(String labelTypeId, ConditionOptionCall<CommonTermsQueryBuilder> opLambda) {
395         CommonTermsQueryBuilder builder = regCommonTermsQ("labelTypeId", labelTypeId);
396         if (opLambda != null) {
397             opLambda.callback(builder);
398         }
399     }
400 
401     public BsLabelToRoleCQ addOrderBy_LabelTypeId_Asc() {
402         regOBA("labelTypeId");
403         return this;
404     }
405 
406     public BsLabelToRoleCQ addOrderBy_LabelTypeId_Desc() {
407         regOBD("labelTypeId");
408         return this;
409     }
410 
411     public void setRoleTypeId_Equal(String roleTypeId) {
412         setRoleTypeId_Term(roleTypeId, null);
413     }
414 
415     public void setRoleTypeId_Equal(String roleTypeId, ConditionOptionCall<TermQueryBuilder> opLambda) {
416         setRoleTypeId_Term(roleTypeId, opLambda);
417     }
418 
419     public void setRoleTypeId_Term(String roleTypeId) {
420         setRoleTypeId_Term(roleTypeId, null);
421     }
422 
423     public void setRoleTypeId_Term(String roleTypeId, ConditionOptionCall<TermQueryBuilder> opLambda) {
424         TermQueryBuilder builder = regTermQ("roleTypeId", roleTypeId);
425         if (opLambda != null) {
426             opLambda.callback(builder);
427         }
428     }
429 
430     public void setRoleTypeId_NotEqual(String roleTypeId) {
431         setRoleTypeId_NotTerm(roleTypeId, null);
432     }
433 
434     public void setRoleTypeId_NotTerm(String roleTypeId) {
435         setRoleTypeId_NotTerm(roleTypeId, null);
436     }
437 
438     public void setRoleTypeId_NotEqual(String roleTypeId, ConditionOptionCall<BoolQueryBuilder> opLambda) {
439         setRoleTypeId_NotTerm(roleTypeId, opLambda);
440     }
441 
442     public void setRoleTypeId_NotTerm(String roleTypeId, ConditionOptionCall<BoolQueryBuilder> opLambda) {
443         not(not -> not.setRoleTypeId_Term(roleTypeId), opLambda);
444     }
445 
446     public void setRoleTypeId_Terms(Collection<String> roleTypeIdList) {
447         setRoleTypeId_Terms(roleTypeIdList, null);
448     }
449 
450     public void setRoleTypeId_Terms(Collection<String> roleTypeIdList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
451         TermsQueryBuilder builder = regTermsQ("roleTypeId", roleTypeIdList);
452         if (opLambda != null) {
453             opLambda.callback(builder);
454         }
455     }
456 
457     public void setRoleTypeId_InScope(Collection<String> roleTypeIdList) {
458         setRoleTypeId_Terms(roleTypeIdList, null);
459     }
460 
461     public void setRoleTypeId_InScope(Collection<String> roleTypeIdList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
462         setRoleTypeId_Terms(roleTypeIdList, opLambda);
463     }
464 
465     public void setRoleTypeId_Match(String roleTypeId) {
466         setRoleTypeId_Match(roleTypeId, null);
467     }
468 
469     public void setRoleTypeId_Match(String roleTypeId, ConditionOptionCall<MatchQueryBuilder> opLambda) {
470         MatchQueryBuilder builder = regMatchQ("roleTypeId", roleTypeId);
471         if (opLambda != null) {
472             opLambda.callback(builder);
473         }
474     }
475 
476     public void setRoleTypeId_MatchPhrase(String roleTypeId) {
477         setRoleTypeId_MatchPhrase(roleTypeId, null);
478     }
479 
480     public void setRoleTypeId_MatchPhrase(String roleTypeId, ConditionOptionCall<MatchPhraseQueryBuilder> opLambda) {
481         MatchPhraseQueryBuilder builder = regMatchPhraseQ("roleTypeId", roleTypeId);
482         if (opLambda != null) {
483             opLambda.callback(builder);
484         }
485     }
486 
487     public void setRoleTypeId_MatchPhrasePrefix(String roleTypeId) {
488         setRoleTypeId_MatchPhrasePrefix(roleTypeId, null);
489     }
490 
491     public void setRoleTypeId_MatchPhrasePrefix(String roleTypeId, ConditionOptionCall<MatchPhrasePrefixQueryBuilder> opLambda) {
492         MatchPhrasePrefixQueryBuilder builder = regMatchPhrasePrefixQ("roleTypeId", roleTypeId);
493         if (opLambda != null) {
494             opLambda.callback(builder);
495         }
496     }
497 
498     public void setRoleTypeId_Fuzzy(String roleTypeId) {
499         setRoleTypeId_Fuzzy(roleTypeId, null);
500     }
501 
502     public void setRoleTypeId_Fuzzy(String roleTypeId, ConditionOptionCall<MatchQueryBuilder> opLambda) {
503         MatchQueryBuilder builder = regFuzzyQ("roleTypeId", roleTypeId);
504         if (opLambda != null) {
505             opLambda.callback(builder);
506         }
507     }
508 
509     public void setRoleTypeId_Prefix(String roleTypeId) {
510         setRoleTypeId_Prefix(roleTypeId, null);
511     }
512 
513     public void setRoleTypeId_Prefix(String roleTypeId, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
514         PrefixQueryBuilder builder = regPrefixQ("roleTypeId", roleTypeId);
515         if (opLambda != null) {
516             opLambda.callback(builder);
517         }
518     }
519 
520     public void setRoleTypeId_Wildcard(String roleTypeId) {
521         setRoleTypeId_Wildcard(roleTypeId, null);
522     }
523 
524     public void setRoleTypeId_Wildcard(String roleTypeId, ConditionOptionCall<WildcardQueryBuilder> opLambda) {
525         WildcardQueryBuilder builder = regWildcardQ("roleTypeId", roleTypeId);
526         if (opLambda != null) {
527             opLambda.callback(builder);
528         }
529     }
530 
531     public void setRoleTypeId_Regexp(String roleTypeId) {
532         setRoleTypeId_Regexp(roleTypeId, null);
533     }
534 
535     public void setRoleTypeId_Regexp(String roleTypeId, ConditionOptionCall<RegexpQueryBuilder> opLambda) {
536         RegexpQueryBuilder builder = regRegexpQ("roleTypeId", roleTypeId);
537         if (opLambda != null) {
538             opLambda.callback(builder);
539         }
540     }
541 
542     public void setRoleTypeId_SpanTerm(String roleTypeId) {
543         setRoleTypeId_SpanTerm("roleTypeId", null);
544     }
545 
546     public void setRoleTypeId_SpanTerm(String roleTypeId, ConditionOptionCall<SpanTermQueryBuilder> opLambda) {
547         SpanTermQueryBuilder builder = regSpanTermQ("roleTypeId", roleTypeId);
548         if (opLambda != null) {
549             opLambda.callback(builder);
550         }
551     }
552 
553     public void setRoleTypeId_GreaterThan(String roleTypeId) {
554         setRoleTypeId_GreaterThan(roleTypeId, null);
555     }
556 
557     public void setRoleTypeId_GreaterThan(String roleTypeId, ConditionOptionCall<RangeQueryBuilder> opLambda) {
558         final Object _value = roleTypeId;
559         RangeQueryBuilder builder = regRangeQ("roleTypeId", ConditionKey.CK_GREATER_THAN, _value);
560         if (opLambda != null) {
561             opLambda.callback(builder);
562         }
563     }
564 
565     public void setRoleTypeId_LessThan(String roleTypeId) {
566         setRoleTypeId_LessThan(roleTypeId, null);
567     }
568 
569     public void setRoleTypeId_LessThan(String roleTypeId, ConditionOptionCall<RangeQueryBuilder> opLambda) {
570         final Object _value = roleTypeId;
571         RangeQueryBuilder builder = regRangeQ("roleTypeId", ConditionKey.CK_LESS_THAN, _value);
572         if (opLambda != null) {
573             opLambda.callback(builder);
574         }
575     }
576 
577     public void setRoleTypeId_GreaterEqual(String roleTypeId) {
578         setRoleTypeId_GreaterEqual(roleTypeId, null);
579     }
580 
581     public void setRoleTypeId_GreaterEqual(String roleTypeId, ConditionOptionCall<RangeQueryBuilder> opLambda) {
582         final Object _value = roleTypeId;
583         RangeQueryBuilder builder = regRangeQ("roleTypeId", ConditionKey.CK_GREATER_EQUAL, _value);
584         if (opLambda != null) {
585             opLambda.callback(builder);
586         }
587     }
588 
589     public void setRoleTypeId_LessEqual(String roleTypeId) {
590         setRoleTypeId_LessEqual(roleTypeId, null);
591     }
592 
593     public void setRoleTypeId_LessEqual(String roleTypeId, ConditionOptionCall<RangeQueryBuilder> opLambda) {
594         final Object _value = roleTypeId;
595         RangeQueryBuilder builder = regRangeQ("roleTypeId", ConditionKey.CK_LESS_EQUAL, _value);
596         if (opLambda != null) {
597             opLambda.callback(builder);
598         }
599     }
600 
601     public void setRoleTypeId_Exists() {
602         setRoleTypeId_Exists(null);
603     }
604 
605     public void setRoleTypeId_Exists(ConditionOptionCall<ExistsQueryBuilder> opLambda) {
606         ExistsQueryBuilder builder = regExistsQ("roleTypeId");
607         if (opLambda != null) {
608             opLambda.callback(builder);
609         }
610     }
611 
612     public void setRoleTypeId_CommonTerms(String roleTypeId) {
613         setRoleTypeId_CommonTerms(roleTypeId, null);
614     }
615 
616     public void setRoleTypeId_CommonTerms(String roleTypeId, ConditionOptionCall<CommonTermsQueryBuilder> opLambda) {
617         CommonTermsQueryBuilder builder = regCommonTermsQ("roleTypeId", roleTypeId);
618         if (opLambda != null) {
619             opLambda.callback(builder);
620         }
621     }
622 
623     public BsLabelToRoleCQ addOrderBy_RoleTypeId_Asc() {
624         regOBA("roleTypeId");
625         return this;
626     }
627 
628     public BsLabelToRoleCQ addOrderBy_RoleTypeId_Desc() {
629         regOBD("roleTypeId");
630         return this;
631     }
632 
633 }