View Javadoc
1   /*
2    * Copyright 2012-2025 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.opensearch.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.opensearch.config.allcommon.EsAbstractConditionQuery;
23  import org.codelibs.fess.opensearch.config.cbean.cq.BadWordCQ;
24  import org.dbflute.cbean.ckey.ConditionKey;
25  import org.opensearch.index.query.BoolQueryBuilder;
26  import org.opensearch.index.query.CommonTermsQueryBuilder;
27  import org.opensearch.index.query.ExistsQueryBuilder;
28  import org.opensearch.index.query.IdsQueryBuilder;
29  import org.opensearch.index.query.MatchPhrasePrefixQueryBuilder;
30  import org.opensearch.index.query.MatchPhraseQueryBuilder;
31  import org.opensearch.index.query.MatchQueryBuilder;
32  import org.opensearch.index.query.PrefixQueryBuilder;
33  import org.opensearch.index.query.RangeQueryBuilder;
34  import org.opensearch.index.query.RegexpQueryBuilder;
35  import org.opensearch.index.query.SpanTermQueryBuilder;
36  import org.opensearch.index.query.TermQueryBuilder;
37  import org.opensearch.index.query.TermsQueryBuilder;
38  import org.opensearch.index.query.WildcardQueryBuilder;
39  import org.opensearch.index.query.functionscore.FunctionScoreQueryBuilder;
40  import org.opensearch.index.query.functionscore.FunctionScoreQueryBuilder.FilterFunctionBuilder;
41  
42  /**
43   * @author ESFlute (using FreeGen)
44   */
45  public abstract class BsBadWordCQ 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 "bad_word";
55      }
56  
57      @Override
58      public String xgetAliasName() {
59          return "bad_word";
60      }
61  
62      // ===================================================================================
63      //                                                                       Query Control
64      //                                                                       =============
65      public void functionScore(OperatorCall<BadWordCQ> queryLambda, ScoreFunctionCall<ScoreFunctionCreator<BadWordCQ>> functionsLambda,
66              final ConditionOptionCall<FunctionScoreQueryBuilder> opLambda) {
67          BadWordCQ cq = new BadWordCQ();
68          queryLambda.callback(cq);
69          final Collection<FilterFunctionBuilder> list = new ArrayList<>();
70          if (functionsLambda != null) {
71              functionsLambda.callback((cqLambda, scoreFunctionBuilder) -> {
72                  BadWordCQ cf = new BadWordCQ();
73                  cqLambda.callback(cf);
74                  list.add(new FilterFunctionBuilder(cf.getQuery(), scoreFunctionBuilder));
75              });
76          }
77          final FunctionScoreQueryBuilder builder = regFunctionScoreQ(cq.getQuery(), list);
78          if (opLambda != null) {
79              opLambda.callback(builder);
80          }
81      }
82  
83      public void filtered(FilteredCall<BadWordCQ, BadWordCQ> filteredLambda) {
84          filtered(filteredLambda, null);
85      }
86  
87      public void filtered(FilteredCall<BadWordCQ, BadWordCQ> filteredLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
88          bool((must, should, mustNot, filter) -> {
89              filteredLambda.callback(must, filter);
90          }, opLambda);
91      }
92  
93      public void not(OperatorCall<BadWordCQ> notLambda) {
94          not(notLambda, null);
95      }
96  
97      public void not(final OperatorCall<BadWordCQ> notLambda, final ConditionOptionCall<BoolQueryBuilder> opLambda) {
98          bool((must, should, mustNot, filter) -> notLambda.callback(mustNot), opLambda);
99      }
100 
101     public void bool(BoolCall<BadWordCQ> boolLambda) {
102         bool(boolLambda, null);
103     }
104 
105     public void bool(BoolCall<BadWordCQ> boolLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
106         BadWordCQ mustQuery = new BadWordCQ();
107         BadWordCQ shouldQuery = new BadWordCQ();
108         BadWordCQ mustNotQuery = new BadWordCQ();
109         BadWordCQ filterQuery = new BadWordCQ();
110         boolLambda.callback(mustQuery, shouldQuery, mustNotQuery, filterQuery);
111         if (mustQuery.hasQueries() || shouldQuery.hasQueries() || mustNotQuery.hasQueries() || filterQuery.hasQueries()) {
112             BoolQueryBuilder builder = regBoolCQ(mustQuery.getQueryBuilderList(), shouldQuery.getQueryBuilderList(),
113                     mustNotQuery.getQueryBuilderList(), filterQuery.getQueryBuilderList());
114             if (opLambda != null) {
115                 opLambda.callback(builder);
116             }
117         }
118     }
119 
120     // ===================================================================================
121     //                                                                           Query Set
122     //                                                                           =========
123     public void setId_Equal(String id) {
124         setId_Term(id, null);
125     }
126 
127     public void setId_Equal(String id, ConditionOptionCall<TermQueryBuilder> opLambda) {
128         setId_Term(id, opLambda);
129     }
130 
131     public void setId_Term(String id) {
132         setId_Term(id, null);
133     }
134 
135     public void setId_Term(String id, ConditionOptionCall<TermQueryBuilder> opLambda) {
136         TermQueryBuilder builder = regTermQ("_id", id);
137         if (opLambda != null) {
138             opLambda.callback(builder);
139         }
140     }
141 
142     public void setId_NotEqual(String id) {
143         setId_NotTerm(id, null);
144     }
145 
146     public void setId_NotTerm(String id) {
147         setId_NotTerm(id, null);
148     }
149 
150     public void setId_NotEqual(String id, ConditionOptionCall<BoolQueryBuilder> opLambda) {
151         setId_NotTerm(id, opLambda);
152     }
153 
154     public void setId_NotTerm(String id, ConditionOptionCall<BoolQueryBuilder> opLambda) {
155         not(not -> not.setId_Term(id), opLambda);
156     }
157 
158     public void setId_Terms(Collection<String> idList) {
159         setId_Terms(idList, null);
160     }
161 
162     public void setId_Terms(Collection<String> idList, ConditionOptionCall<IdsQueryBuilder> opLambda) {
163         IdsQueryBuilder builder = regIdsQ(idList);
164         if (opLambda != null) {
165             opLambda.callback(builder);
166         }
167     }
168 
169     public void setId_InScope(Collection<String> idList) {
170         setId_Terms(idList, null);
171     }
172 
173     public void setId_InScope(Collection<String> idList, ConditionOptionCall<IdsQueryBuilder> opLambda) {
174         setId_Terms(idList, opLambda);
175     }
176 
177     @Deprecated
178     public BsBadWordCQ addOrderBy_Id_Asc() {
179         regOBA("_id");
180         return this;
181     }
182 
183     @Deprecated
184     public BsBadWordCQ addOrderBy_Id_Desc() {
185         regOBD("_id");
186         return this;
187     }
188 
189     public void setCreatedBy_Equal(String createdBy) {
190         setCreatedBy_Term(createdBy, null);
191     }
192 
193     public void setCreatedBy_Equal(String createdBy, ConditionOptionCall<TermQueryBuilder> opLambda) {
194         setCreatedBy_Term(createdBy, opLambda);
195     }
196 
197     public void setCreatedBy_Term(String createdBy) {
198         setCreatedBy_Term(createdBy, null);
199     }
200 
201     public void setCreatedBy_Term(String createdBy, ConditionOptionCall<TermQueryBuilder> opLambda) {
202         TermQueryBuilder builder = regTermQ("createdBy", createdBy);
203         if (opLambda != null) {
204             opLambda.callback(builder);
205         }
206     }
207 
208     public void setCreatedBy_NotEqual(String createdBy) {
209         setCreatedBy_NotTerm(createdBy, null);
210     }
211 
212     public void setCreatedBy_NotTerm(String createdBy) {
213         setCreatedBy_NotTerm(createdBy, null);
214     }
215 
216     public void setCreatedBy_NotEqual(String createdBy, ConditionOptionCall<BoolQueryBuilder> opLambda) {
217         setCreatedBy_NotTerm(createdBy, opLambda);
218     }
219 
220     public void setCreatedBy_NotTerm(String createdBy, ConditionOptionCall<BoolQueryBuilder> opLambda) {
221         not(not -> not.setCreatedBy_Term(createdBy), opLambda);
222     }
223 
224     public void setCreatedBy_Terms(Collection<String> createdByList) {
225         setCreatedBy_Terms(createdByList, null);
226     }
227 
228     public void setCreatedBy_Terms(Collection<String> createdByList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
229         TermsQueryBuilder builder = regTermsQ("createdBy", createdByList);
230         if (opLambda != null) {
231             opLambda.callback(builder);
232         }
233     }
234 
235     public void setCreatedBy_InScope(Collection<String> createdByList) {
236         setCreatedBy_Terms(createdByList, null);
237     }
238 
239     public void setCreatedBy_InScope(Collection<String> createdByList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
240         setCreatedBy_Terms(createdByList, opLambda);
241     }
242 
243     public void setCreatedBy_Match(String createdBy) {
244         setCreatedBy_Match(createdBy, null);
245     }
246 
247     public void setCreatedBy_Match(String createdBy, ConditionOptionCall<MatchQueryBuilder> opLambda) {
248         MatchQueryBuilder builder = regMatchQ("createdBy", createdBy);
249         if (opLambda != null) {
250             opLambda.callback(builder);
251         }
252     }
253 
254     public void setCreatedBy_MatchPhrase(String createdBy) {
255         setCreatedBy_MatchPhrase(createdBy, null);
256     }
257 
258     public void setCreatedBy_MatchPhrase(String createdBy, ConditionOptionCall<MatchPhraseQueryBuilder> opLambda) {
259         MatchPhraseQueryBuilder builder = regMatchPhraseQ("createdBy", createdBy);
260         if (opLambda != null) {
261             opLambda.callback(builder);
262         }
263     }
264 
265     public void setCreatedBy_MatchPhrasePrefix(String createdBy) {
266         setCreatedBy_MatchPhrasePrefix(createdBy, null);
267     }
268 
269     public void setCreatedBy_MatchPhrasePrefix(String createdBy, ConditionOptionCall<MatchPhrasePrefixQueryBuilder> opLambda) {
270         MatchPhrasePrefixQueryBuilder builder = regMatchPhrasePrefixQ("createdBy", createdBy);
271         if (opLambda != null) {
272             opLambda.callback(builder);
273         }
274     }
275 
276     public void setCreatedBy_Fuzzy(String createdBy) {
277         setCreatedBy_Fuzzy(createdBy, null);
278     }
279 
280     public void setCreatedBy_Fuzzy(String createdBy, ConditionOptionCall<MatchQueryBuilder> opLambda) {
281         MatchQueryBuilder builder = regFuzzyQ("createdBy", createdBy);
282         if (opLambda != null) {
283             opLambda.callback(builder);
284         }
285     }
286 
287     public void setCreatedBy_Prefix(String createdBy) {
288         setCreatedBy_Prefix(createdBy, null);
289     }
290 
291     public void setCreatedBy_Prefix(String createdBy, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
292         PrefixQueryBuilder builder = regPrefixQ("createdBy", createdBy);
293         if (opLambda != null) {
294             opLambda.callback(builder);
295         }
296     }
297 
298     public void setCreatedBy_Wildcard(String createdBy) {
299         setCreatedBy_Wildcard(createdBy, null);
300     }
301 
302     public void setCreatedBy_Wildcard(String createdBy, ConditionOptionCall<WildcardQueryBuilder> opLambda) {
303         WildcardQueryBuilder builder = regWildcardQ("createdBy", createdBy);
304         if (opLambda != null) {
305             opLambda.callback(builder);
306         }
307     }
308 
309     public void setCreatedBy_Regexp(String createdBy) {
310         setCreatedBy_Regexp(createdBy, null);
311     }
312 
313     public void setCreatedBy_Regexp(String createdBy, ConditionOptionCall<RegexpQueryBuilder> opLambda) {
314         RegexpQueryBuilder builder = regRegexpQ("createdBy", createdBy);
315         if (opLambda != null) {
316             opLambda.callback(builder);
317         }
318     }
319 
320     public void setCreatedBy_SpanTerm(String createdBy) {
321         setCreatedBy_SpanTerm("createdBy", null);
322     }
323 
324     public void setCreatedBy_SpanTerm(String createdBy, ConditionOptionCall<SpanTermQueryBuilder> opLambda) {
325         SpanTermQueryBuilder builder = regSpanTermQ("createdBy", createdBy);
326         if (opLambda != null) {
327             opLambda.callback(builder);
328         }
329     }
330 
331     public void setCreatedBy_GreaterThan(String createdBy) {
332         setCreatedBy_GreaterThan(createdBy, null);
333     }
334 
335     public void setCreatedBy_GreaterThan(String createdBy, ConditionOptionCall<RangeQueryBuilder> opLambda) {
336         final Object _value = createdBy;
337         RangeQueryBuilder builder = regRangeQ("createdBy", ConditionKey.CK_GREATER_THAN, _value);
338         if (opLambda != null) {
339             opLambda.callback(builder);
340         }
341     }
342 
343     public void setCreatedBy_LessThan(String createdBy) {
344         setCreatedBy_LessThan(createdBy, null);
345     }
346 
347     public void setCreatedBy_LessThan(String createdBy, ConditionOptionCall<RangeQueryBuilder> opLambda) {
348         final Object _value = createdBy;
349         RangeQueryBuilder builder = regRangeQ("createdBy", ConditionKey.CK_LESS_THAN, _value);
350         if (opLambda != null) {
351             opLambda.callback(builder);
352         }
353     }
354 
355     public void setCreatedBy_GreaterEqual(String createdBy) {
356         setCreatedBy_GreaterEqual(createdBy, null);
357     }
358 
359     public void setCreatedBy_GreaterEqual(String createdBy, ConditionOptionCall<RangeQueryBuilder> opLambda) {
360         final Object _value = createdBy;
361         RangeQueryBuilder builder = regRangeQ("createdBy", ConditionKey.CK_GREATER_EQUAL, _value);
362         if (opLambda != null) {
363             opLambda.callback(builder);
364         }
365     }
366 
367     public void setCreatedBy_LessEqual(String createdBy) {
368         setCreatedBy_LessEqual(createdBy, null);
369     }
370 
371     public void setCreatedBy_LessEqual(String createdBy, ConditionOptionCall<RangeQueryBuilder> opLambda) {
372         final Object _value = createdBy;
373         RangeQueryBuilder builder = regRangeQ("createdBy", ConditionKey.CK_LESS_EQUAL, _value);
374         if (opLambda != null) {
375             opLambda.callback(builder);
376         }
377     }
378 
379     public void setCreatedBy_Exists() {
380         setCreatedBy_Exists(null);
381     }
382 
383     public void setCreatedBy_Exists(ConditionOptionCall<ExistsQueryBuilder> opLambda) {
384         ExistsQueryBuilder builder = regExistsQ("createdBy");
385         if (opLambda != null) {
386             opLambda.callback(builder);
387         }
388     }
389 
390     @Deprecated
391     public void setCreatedBy_CommonTerms(String createdBy) {
392         setCreatedBy_CommonTerms(createdBy, null);
393     }
394 
395     @Deprecated
396     public void setCreatedBy_CommonTerms(String createdBy, ConditionOptionCall<CommonTermsQueryBuilder> opLambda) {
397         CommonTermsQueryBuilder builder = regCommonTermsQ("createdBy", createdBy);
398         if (opLambda != null) {
399             opLambda.callback(builder);
400         }
401     }
402 
403     public BsBadWordCQ addOrderBy_CreatedBy_Asc() {
404         regOBA("createdBy");
405         return this;
406     }
407 
408     public BsBadWordCQ addOrderBy_CreatedBy_Desc() {
409         regOBD("createdBy");
410         return this;
411     }
412 
413     public void setCreatedTime_Equal(Long createdTime) {
414         setCreatedTime_Term(createdTime, null);
415     }
416 
417     public void setCreatedTime_Equal(Long createdTime, ConditionOptionCall<TermQueryBuilder> opLambda) {
418         setCreatedTime_Term(createdTime, opLambda);
419     }
420 
421     public void setCreatedTime_Term(Long createdTime) {
422         setCreatedTime_Term(createdTime, null);
423     }
424 
425     public void setCreatedTime_Term(Long createdTime, ConditionOptionCall<TermQueryBuilder> opLambda) {
426         TermQueryBuilder builder = regTermQ("createdTime", createdTime);
427         if (opLambda != null) {
428             opLambda.callback(builder);
429         }
430     }
431 
432     public void setCreatedTime_NotEqual(Long createdTime) {
433         setCreatedTime_NotTerm(createdTime, null);
434     }
435 
436     public void setCreatedTime_NotTerm(Long createdTime) {
437         setCreatedTime_NotTerm(createdTime, null);
438     }
439 
440     public void setCreatedTime_NotEqual(Long createdTime, ConditionOptionCall<BoolQueryBuilder> opLambda) {
441         setCreatedTime_NotTerm(createdTime, opLambda);
442     }
443 
444     public void setCreatedTime_NotTerm(Long createdTime, ConditionOptionCall<BoolQueryBuilder> opLambda) {
445         not(not -> not.setCreatedTime_Term(createdTime), opLambda);
446     }
447 
448     public void setCreatedTime_Terms(Collection<Long> createdTimeList) {
449         setCreatedTime_Terms(createdTimeList, null);
450     }
451 
452     public void setCreatedTime_Terms(Collection<Long> createdTimeList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
453         TermsQueryBuilder builder = regTermsQ("createdTime", createdTimeList);
454         if (opLambda != null) {
455             opLambda.callback(builder);
456         }
457     }
458 
459     public void setCreatedTime_InScope(Collection<Long> createdTimeList) {
460         setCreatedTime_Terms(createdTimeList, null);
461     }
462 
463     public void setCreatedTime_InScope(Collection<Long> createdTimeList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
464         setCreatedTime_Terms(createdTimeList, opLambda);
465     }
466 
467     public void setCreatedTime_Match(Long createdTime) {
468         setCreatedTime_Match(createdTime, null);
469     }
470 
471     public void setCreatedTime_Match(Long createdTime, ConditionOptionCall<MatchQueryBuilder> opLambda) {
472         MatchQueryBuilder builder = regMatchQ("createdTime", createdTime);
473         if (opLambda != null) {
474             opLambda.callback(builder);
475         }
476     }
477 
478     public void setCreatedTime_MatchPhrase(Long createdTime) {
479         setCreatedTime_MatchPhrase(createdTime, null);
480     }
481 
482     public void setCreatedTime_MatchPhrase(Long createdTime, ConditionOptionCall<MatchPhraseQueryBuilder> opLambda) {
483         MatchPhraseQueryBuilder builder = regMatchPhraseQ("createdTime", createdTime);
484         if (opLambda != null) {
485             opLambda.callback(builder);
486         }
487     }
488 
489     public void setCreatedTime_MatchPhrasePrefix(Long createdTime) {
490         setCreatedTime_MatchPhrasePrefix(createdTime, null);
491     }
492 
493     public void setCreatedTime_MatchPhrasePrefix(Long createdTime, ConditionOptionCall<MatchPhrasePrefixQueryBuilder> opLambda) {
494         MatchPhrasePrefixQueryBuilder builder = regMatchPhrasePrefixQ("createdTime", createdTime);
495         if (opLambda != null) {
496             opLambda.callback(builder);
497         }
498     }
499 
500     public void setCreatedTime_Fuzzy(Long createdTime) {
501         setCreatedTime_Fuzzy(createdTime, null);
502     }
503 
504     public void setCreatedTime_Fuzzy(Long createdTime, ConditionOptionCall<MatchQueryBuilder> opLambda) {
505         MatchQueryBuilder builder = regFuzzyQ("createdTime", createdTime);
506         if (opLambda != null) {
507             opLambda.callback(builder);
508         }
509     }
510 
511     public void setCreatedTime_GreaterThan(Long createdTime) {
512         setCreatedTime_GreaterThan(createdTime, null);
513     }
514 
515     public void setCreatedTime_GreaterThan(Long createdTime, ConditionOptionCall<RangeQueryBuilder> opLambda) {
516         final Object _value = createdTime;
517         RangeQueryBuilder builder = regRangeQ("createdTime", ConditionKey.CK_GREATER_THAN, _value);
518         if (opLambda != null) {
519             opLambda.callback(builder);
520         }
521     }
522 
523     public void setCreatedTime_LessThan(Long createdTime) {
524         setCreatedTime_LessThan(createdTime, null);
525     }
526 
527     public void setCreatedTime_LessThan(Long createdTime, ConditionOptionCall<RangeQueryBuilder> opLambda) {
528         final Object _value = createdTime;
529         RangeQueryBuilder builder = regRangeQ("createdTime", ConditionKey.CK_LESS_THAN, _value);
530         if (opLambda != null) {
531             opLambda.callback(builder);
532         }
533     }
534 
535     public void setCreatedTime_GreaterEqual(Long createdTime) {
536         setCreatedTime_GreaterEqual(createdTime, null);
537     }
538 
539     public void setCreatedTime_GreaterEqual(Long createdTime, ConditionOptionCall<RangeQueryBuilder> opLambda) {
540         final Object _value = createdTime;
541         RangeQueryBuilder builder = regRangeQ("createdTime", ConditionKey.CK_GREATER_EQUAL, _value);
542         if (opLambda != null) {
543             opLambda.callback(builder);
544         }
545     }
546 
547     public void setCreatedTime_LessEqual(Long createdTime) {
548         setCreatedTime_LessEqual(createdTime, null);
549     }
550 
551     public void setCreatedTime_LessEqual(Long createdTime, ConditionOptionCall<RangeQueryBuilder> opLambda) {
552         final Object _value = createdTime;
553         RangeQueryBuilder builder = regRangeQ("createdTime", ConditionKey.CK_LESS_EQUAL, _value);
554         if (opLambda != null) {
555             opLambda.callback(builder);
556         }
557     }
558 
559     public void setCreatedTime_Exists() {
560         setCreatedTime_Exists(null);
561     }
562 
563     public void setCreatedTime_Exists(ConditionOptionCall<ExistsQueryBuilder> opLambda) {
564         ExistsQueryBuilder builder = regExistsQ("createdTime");
565         if (opLambda != null) {
566             opLambda.callback(builder);
567         }
568     }
569 
570     @Deprecated
571     public void setCreatedTime_CommonTerms(Long createdTime) {
572         setCreatedTime_CommonTerms(createdTime, null);
573     }
574 
575     @Deprecated
576     public void setCreatedTime_CommonTerms(Long createdTime, ConditionOptionCall<CommonTermsQueryBuilder> opLambda) {
577         CommonTermsQueryBuilder builder = regCommonTermsQ("createdTime", createdTime);
578         if (opLambda != null) {
579             opLambda.callback(builder);
580         }
581     }
582 
583     public BsBadWordCQ addOrderBy_CreatedTime_Asc() {
584         regOBA("createdTime");
585         return this;
586     }
587 
588     public BsBadWordCQ addOrderBy_CreatedTime_Desc() {
589         regOBD("createdTime");
590         return this;
591     }
592 
593     public void setSuggestWord_Equal(String suggestWord) {
594         setSuggestWord_Term(suggestWord, null);
595     }
596 
597     public void setSuggestWord_Equal(String suggestWord, ConditionOptionCall<TermQueryBuilder> opLambda) {
598         setSuggestWord_Term(suggestWord, opLambda);
599     }
600 
601     public void setSuggestWord_Term(String suggestWord) {
602         setSuggestWord_Term(suggestWord, null);
603     }
604 
605     public void setSuggestWord_Term(String suggestWord, ConditionOptionCall<TermQueryBuilder> opLambda) {
606         TermQueryBuilder builder = regTermQ("suggestWord", suggestWord);
607         if (opLambda != null) {
608             opLambda.callback(builder);
609         }
610     }
611 
612     public void setSuggestWord_NotEqual(String suggestWord) {
613         setSuggestWord_NotTerm(suggestWord, null);
614     }
615 
616     public void setSuggestWord_NotTerm(String suggestWord) {
617         setSuggestWord_NotTerm(suggestWord, null);
618     }
619 
620     public void setSuggestWord_NotEqual(String suggestWord, ConditionOptionCall<BoolQueryBuilder> opLambda) {
621         setSuggestWord_NotTerm(suggestWord, opLambda);
622     }
623 
624     public void setSuggestWord_NotTerm(String suggestWord, ConditionOptionCall<BoolQueryBuilder> opLambda) {
625         not(not -> not.setSuggestWord_Term(suggestWord), opLambda);
626     }
627 
628     public void setSuggestWord_Terms(Collection<String> suggestWordList) {
629         setSuggestWord_Terms(suggestWordList, null);
630     }
631 
632     public void setSuggestWord_Terms(Collection<String> suggestWordList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
633         TermsQueryBuilder builder = regTermsQ("suggestWord", suggestWordList);
634         if (opLambda != null) {
635             opLambda.callback(builder);
636         }
637     }
638 
639     public void setSuggestWord_InScope(Collection<String> suggestWordList) {
640         setSuggestWord_Terms(suggestWordList, null);
641     }
642 
643     public void setSuggestWord_InScope(Collection<String> suggestWordList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
644         setSuggestWord_Terms(suggestWordList, opLambda);
645     }
646 
647     public void setSuggestWord_Match(String suggestWord) {
648         setSuggestWord_Match(suggestWord, null);
649     }
650 
651     public void setSuggestWord_Match(String suggestWord, ConditionOptionCall<MatchQueryBuilder> opLambda) {
652         MatchQueryBuilder builder = regMatchQ("suggestWord", suggestWord);
653         if (opLambda != null) {
654             opLambda.callback(builder);
655         }
656     }
657 
658     public void setSuggestWord_MatchPhrase(String suggestWord) {
659         setSuggestWord_MatchPhrase(suggestWord, null);
660     }
661 
662     public void setSuggestWord_MatchPhrase(String suggestWord, ConditionOptionCall<MatchPhraseQueryBuilder> opLambda) {
663         MatchPhraseQueryBuilder builder = regMatchPhraseQ("suggestWord", suggestWord);
664         if (opLambda != null) {
665             opLambda.callback(builder);
666         }
667     }
668 
669     public void setSuggestWord_MatchPhrasePrefix(String suggestWord) {
670         setSuggestWord_MatchPhrasePrefix(suggestWord, null);
671     }
672 
673     public void setSuggestWord_MatchPhrasePrefix(String suggestWord, ConditionOptionCall<MatchPhrasePrefixQueryBuilder> opLambda) {
674         MatchPhrasePrefixQueryBuilder builder = regMatchPhrasePrefixQ("suggestWord", suggestWord);
675         if (opLambda != null) {
676             opLambda.callback(builder);
677         }
678     }
679 
680     public void setSuggestWord_Fuzzy(String suggestWord) {
681         setSuggestWord_Fuzzy(suggestWord, null);
682     }
683 
684     public void setSuggestWord_Fuzzy(String suggestWord, ConditionOptionCall<MatchQueryBuilder> opLambda) {
685         MatchQueryBuilder builder = regFuzzyQ("suggestWord", suggestWord);
686         if (opLambda != null) {
687             opLambda.callback(builder);
688         }
689     }
690 
691     public void setSuggestWord_Prefix(String suggestWord) {
692         setSuggestWord_Prefix(suggestWord, null);
693     }
694 
695     public void setSuggestWord_Prefix(String suggestWord, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
696         PrefixQueryBuilder builder = regPrefixQ("suggestWord", suggestWord);
697         if (opLambda != null) {
698             opLambda.callback(builder);
699         }
700     }
701 
702     public void setSuggestWord_Wildcard(String suggestWord) {
703         setSuggestWord_Wildcard(suggestWord, null);
704     }
705 
706     public void setSuggestWord_Wildcard(String suggestWord, ConditionOptionCall<WildcardQueryBuilder> opLambda) {
707         WildcardQueryBuilder builder = regWildcardQ("suggestWord", suggestWord);
708         if (opLambda != null) {
709             opLambda.callback(builder);
710         }
711     }
712 
713     public void setSuggestWord_Regexp(String suggestWord) {
714         setSuggestWord_Regexp(suggestWord, null);
715     }
716 
717     public void setSuggestWord_Regexp(String suggestWord, ConditionOptionCall<RegexpQueryBuilder> opLambda) {
718         RegexpQueryBuilder builder = regRegexpQ("suggestWord", suggestWord);
719         if (opLambda != null) {
720             opLambda.callback(builder);
721         }
722     }
723 
724     public void setSuggestWord_SpanTerm(String suggestWord) {
725         setSuggestWord_SpanTerm("suggestWord", null);
726     }
727 
728     public void setSuggestWord_SpanTerm(String suggestWord, ConditionOptionCall<SpanTermQueryBuilder> opLambda) {
729         SpanTermQueryBuilder builder = regSpanTermQ("suggestWord", suggestWord);
730         if (opLambda != null) {
731             opLambda.callback(builder);
732         }
733     }
734 
735     public void setSuggestWord_GreaterThan(String suggestWord) {
736         setSuggestWord_GreaterThan(suggestWord, null);
737     }
738 
739     public void setSuggestWord_GreaterThan(String suggestWord, ConditionOptionCall<RangeQueryBuilder> opLambda) {
740         final Object _value = suggestWord;
741         RangeQueryBuilder builder = regRangeQ("suggestWord", ConditionKey.CK_GREATER_THAN, _value);
742         if (opLambda != null) {
743             opLambda.callback(builder);
744         }
745     }
746 
747     public void setSuggestWord_LessThan(String suggestWord) {
748         setSuggestWord_LessThan(suggestWord, null);
749     }
750 
751     public void setSuggestWord_LessThan(String suggestWord, ConditionOptionCall<RangeQueryBuilder> opLambda) {
752         final Object _value = suggestWord;
753         RangeQueryBuilder builder = regRangeQ("suggestWord", ConditionKey.CK_LESS_THAN, _value);
754         if (opLambda != null) {
755             opLambda.callback(builder);
756         }
757     }
758 
759     public void setSuggestWord_GreaterEqual(String suggestWord) {
760         setSuggestWord_GreaterEqual(suggestWord, null);
761     }
762 
763     public void setSuggestWord_GreaterEqual(String suggestWord, ConditionOptionCall<RangeQueryBuilder> opLambda) {
764         final Object _value = suggestWord;
765         RangeQueryBuilder builder = regRangeQ("suggestWord", ConditionKey.CK_GREATER_EQUAL, _value);
766         if (opLambda != null) {
767             opLambda.callback(builder);
768         }
769     }
770 
771     public void setSuggestWord_LessEqual(String suggestWord) {
772         setSuggestWord_LessEqual(suggestWord, null);
773     }
774 
775     public void setSuggestWord_LessEqual(String suggestWord, ConditionOptionCall<RangeQueryBuilder> opLambda) {
776         final Object _value = suggestWord;
777         RangeQueryBuilder builder = regRangeQ("suggestWord", ConditionKey.CK_LESS_EQUAL, _value);
778         if (opLambda != null) {
779             opLambda.callback(builder);
780         }
781     }
782 
783     public void setSuggestWord_Exists() {
784         setSuggestWord_Exists(null);
785     }
786 
787     public void setSuggestWord_Exists(ConditionOptionCall<ExistsQueryBuilder> opLambda) {
788         ExistsQueryBuilder builder = regExistsQ("suggestWord");
789         if (opLambda != null) {
790             opLambda.callback(builder);
791         }
792     }
793 
794     @Deprecated
795     public void setSuggestWord_CommonTerms(String suggestWord) {
796         setSuggestWord_CommonTerms(suggestWord, null);
797     }
798 
799     @Deprecated
800     public void setSuggestWord_CommonTerms(String suggestWord, ConditionOptionCall<CommonTermsQueryBuilder> opLambda) {
801         CommonTermsQueryBuilder builder = regCommonTermsQ("suggestWord", suggestWord);
802         if (opLambda != null) {
803             opLambda.callback(builder);
804         }
805     }
806 
807     public BsBadWordCQ addOrderBy_SuggestWord_Asc() {
808         regOBA("suggestWord");
809         return this;
810     }
811 
812     public BsBadWordCQ addOrderBy_SuggestWord_Desc() {
813         regOBD("suggestWord");
814         return this;
815     }
816 
817     public void setTargetLabel_Equal(String targetLabel) {
818         setTargetLabel_Term(targetLabel, null);
819     }
820 
821     public void setTargetLabel_Equal(String targetLabel, ConditionOptionCall<TermQueryBuilder> opLambda) {
822         setTargetLabel_Term(targetLabel, opLambda);
823     }
824 
825     public void setTargetLabel_Term(String targetLabel) {
826         setTargetLabel_Term(targetLabel, null);
827     }
828 
829     public void setTargetLabel_Term(String targetLabel, ConditionOptionCall<TermQueryBuilder> opLambda) {
830         TermQueryBuilder builder = regTermQ("targetLabel", targetLabel);
831         if (opLambda != null) {
832             opLambda.callback(builder);
833         }
834     }
835 
836     public void setTargetLabel_NotEqual(String targetLabel) {
837         setTargetLabel_NotTerm(targetLabel, null);
838     }
839 
840     public void setTargetLabel_NotTerm(String targetLabel) {
841         setTargetLabel_NotTerm(targetLabel, null);
842     }
843 
844     public void setTargetLabel_NotEqual(String targetLabel, ConditionOptionCall<BoolQueryBuilder> opLambda) {
845         setTargetLabel_NotTerm(targetLabel, opLambda);
846     }
847 
848     public void setTargetLabel_NotTerm(String targetLabel, ConditionOptionCall<BoolQueryBuilder> opLambda) {
849         not(not -> not.setTargetLabel_Term(targetLabel), opLambda);
850     }
851 
852     public void setTargetLabel_Terms(Collection<String> targetLabelList) {
853         setTargetLabel_Terms(targetLabelList, null);
854     }
855 
856     public void setTargetLabel_Terms(Collection<String> targetLabelList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
857         TermsQueryBuilder builder = regTermsQ("targetLabel", targetLabelList);
858         if (opLambda != null) {
859             opLambda.callback(builder);
860         }
861     }
862 
863     public void setTargetLabel_InScope(Collection<String> targetLabelList) {
864         setTargetLabel_Terms(targetLabelList, null);
865     }
866 
867     public void setTargetLabel_InScope(Collection<String> targetLabelList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
868         setTargetLabel_Terms(targetLabelList, opLambda);
869     }
870 
871     public void setTargetLabel_Match(String targetLabel) {
872         setTargetLabel_Match(targetLabel, null);
873     }
874 
875     public void setTargetLabel_Match(String targetLabel, ConditionOptionCall<MatchQueryBuilder> opLambda) {
876         MatchQueryBuilder builder = regMatchQ("targetLabel", targetLabel);
877         if (opLambda != null) {
878             opLambda.callback(builder);
879         }
880     }
881 
882     public void setTargetLabel_MatchPhrase(String targetLabel) {
883         setTargetLabel_MatchPhrase(targetLabel, null);
884     }
885 
886     public void setTargetLabel_MatchPhrase(String targetLabel, ConditionOptionCall<MatchPhraseQueryBuilder> opLambda) {
887         MatchPhraseQueryBuilder builder = regMatchPhraseQ("targetLabel", targetLabel);
888         if (opLambda != null) {
889             opLambda.callback(builder);
890         }
891     }
892 
893     public void setTargetLabel_MatchPhrasePrefix(String targetLabel) {
894         setTargetLabel_MatchPhrasePrefix(targetLabel, null);
895     }
896 
897     public void setTargetLabel_MatchPhrasePrefix(String targetLabel, ConditionOptionCall<MatchPhrasePrefixQueryBuilder> opLambda) {
898         MatchPhrasePrefixQueryBuilder builder = regMatchPhrasePrefixQ("targetLabel", targetLabel);
899         if (opLambda != null) {
900             opLambda.callback(builder);
901         }
902     }
903 
904     public void setTargetLabel_Fuzzy(String targetLabel) {
905         setTargetLabel_Fuzzy(targetLabel, null);
906     }
907 
908     public void setTargetLabel_Fuzzy(String targetLabel, ConditionOptionCall<MatchQueryBuilder> opLambda) {
909         MatchQueryBuilder builder = regFuzzyQ("targetLabel", targetLabel);
910         if (opLambda != null) {
911             opLambda.callback(builder);
912         }
913     }
914 
915     public void setTargetLabel_Prefix(String targetLabel) {
916         setTargetLabel_Prefix(targetLabel, null);
917     }
918 
919     public void setTargetLabel_Prefix(String targetLabel, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
920         PrefixQueryBuilder builder = regPrefixQ("targetLabel", targetLabel);
921         if (opLambda != null) {
922             opLambda.callback(builder);
923         }
924     }
925 
926     public void setTargetLabel_Wildcard(String targetLabel) {
927         setTargetLabel_Wildcard(targetLabel, null);
928     }
929 
930     public void setTargetLabel_Wildcard(String targetLabel, ConditionOptionCall<WildcardQueryBuilder> opLambda) {
931         WildcardQueryBuilder builder = regWildcardQ("targetLabel", targetLabel);
932         if (opLambda != null) {
933             opLambda.callback(builder);
934         }
935     }
936 
937     public void setTargetLabel_Regexp(String targetLabel) {
938         setTargetLabel_Regexp(targetLabel, null);
939     }
940 
941     public void setTargetLabel_Regexp(String targetLabel, ConditionOptionCall<RegexpQueryBuilder> opLambda) {
942         RegexpQueryBuilder builder = regRegexpQ("targetLabel", targetLabel);
943         if (opLambda != null) {
944             opLambda.callback(builder);
945         }
946     }
947 
948     public void setTargetLabel_SpanTerm(String targetLabel) {
949         setTargetLabel_SpanTerm("targetLabel", null);
950     }
951 
952     public void setTargetLabel_SpanTerm(String targetLabel, ConditionOptionCall<SpanTermQueryBuilder> opLambda) {
953         SpanTermQueryBuilder builder = regSpanTermQ("targetLabel", targetLabel);
954         if (opLambda != null) {
955             opLambda.callback(builder);
956         }
957     }
958 
959     public void setTargetLabel_GreaterThan(String targetLabel) {
960         setTargetLabel_GreaterThan(targetLabel, null);
961     }
962 
963     public void setTargetLabel_GreaterThan(String targetLabel, ConditionOptionCall<RangeQueryBuilder> opLambda) {
964         final Object _value = targetLabel;
965         RangeQueryBuilder builder = regRangeQ("targetLabel", ConditionKey.CK_GREATER_THAN, _value);
966         if (opLambda != null) {
967             opLambda.callback(builder);
968         }
969     }
970 
971     public void setTargetLabel_LessThan(String targetLabel) {
972         setTargetLabel_LessThan(targetLabel, null);
973     }
974 
975     public void setTargetLabel_LessThan(String targetLabel, ConditionOptionCall<RangeQueryBuilder> opLambda) {
976         final Object _value = targetLabel;
977         RangeQueryBuilder builder = regRangeQ("targetLabel", ConditionKey.CK_LESS_THAN, _value);
978         if (opLambda != null) {
979             opLambda.callback(builder);
980         }
981     }
982 
983     public void setTargetLabel_GreaterEqual(String targetLabel) {
984         setTargetLabel_GreaterEqual(targetLabel, null);
985     }
986 
987     public void setTargetLabel_GreaterEqual(String targetLabel, ConditionOptionCall<RangeQueryBuilder> opLambda) {
988         final Object _value = targetLabel;
989         RangeQueryBuilder builder = regRangeQ("targetLabel", ConditionKey.CK_GREATER_EQUAL, _value);
990         if (opLambda != null) {
991             opLambda.callback(builder);
992         }
993     }
994 
995     public void setTargetLabel_LessEqual(String targetLabel) {
996         setTargetLabel_LessEqual(targetLabel, null);
997     }
998 
999     public void setTargetLabel_LessEqual(String targetLabel, ConditionOptionCall<RangeQueryBuilder> opLambda) {
1000         final Object _value = targetLabel;
1001         RangeQueryBuilder builder = regRangeQ("targetLabel", ConditionKey.CK_LESS_EQUAL, _value);
1002         if (opLambda != null) {
1003             opLambda.callback(builder);
1004         }
1005     }
1006 
1007     public void setTargetLabel_Exists() {
1008         setTargetLabel_Exists(null);
1009     }
1010 
1011     public void setTargetLabel_Exists(ConditionOptionCall<ExistsQueryBuilder> opLambda) {
1012         ExistsQueryBuilder builder = regExistsQ("targetLabel");
1013         if (opLambda != null) {
1014             opLambda.callback(builder);
1015         }
1016     }
1017 
1018     @Deprecated
1019     public void setTargetLabel_CommonTerms(String targetLabel) {
1020         setTargetLabel_CommonTerms(targetLabel, null);
1021     }
1022 
1023     @Deprecated
1024     public void setTargetLabel_CommonTerms(String targetLabel, ConditionOptionCall<CommonTermsQueryBuilder> opLambda) {
1025         CommonTermsQueryBuilder builder = regCommonTermsQ("targetLabel", targetLabel);
1026         if (opLambda != null) {
1027             opLambda.callback(builder);
1028         }
1029     }
1030 
1031     public BsBadWordCQ addOrderBy_TargetLabel_Asc() {
1032         regOBA("targetLabel");
1033         return this;
1034     }
1035 
1036     public BsBadWordCQ addOrderBy_TargetLabel_Desc() {
1037         regOBD("targetLabel");
1038         return this;
1039     }
1040 
1041     public void setTargetRole_Equal(String targetRole) {
1042         setTargetRole_Term(targetRole, null);
1043     }
1044 
1045     public void setTargetRole_Equal(String targetRole, ConditionOptionCall<TermQueryBuilder> opLambda) {
1046         setTargetRole_Term(targetRole, opLambda);
1047     }
1048 
1049     public void setTargetRole_Term(String targetRole) {
1050         setTargetRole_Term(targetRole, null);
1051     }
1052 
1053     public void setTargetRole_Term(String targetRole, ConditionOptionCall<TermQueryBuilder> opLambda) {
1054         TermQueryBuilder builder = regTermQ("targetRole", targetRole);
1055         if (opLambda != null) {
1056             opLambda.callback(builder);
1057         }
1058     }
1059 
1060     public void setTargetRole_NotEqual(String targetRole) {
1061         setTargetRole_NotTerm(targetRole, null);
1062     }
1063 
1064     public void setTargetRole_NotTerm(String targetRole) {
1065         setTargetRole_NotTerm(targetRole, null);
1066     }
1067 
1068     public void setTargetRole_NotEqual(String targetRole, ConditionOptionCall<BoolQueryBuilder> opLambda) {
1069         setTargetRole_NotTerm(targetRole, opLambda);
1070     }
1071 
1072     public void setTargetRole_NotTerm(String targetRole, ConditionOptionCall<BoolQueryBuilder> opLambda) {
1073         not(not -> not.setTargetRole_Term(targetRole), opLambda);
1074     }
1075 
1076     public void setTargetRole_Terms(Collection<String> targetRoleList) {
1077         setTargetRole_Terms(targetRoleList, null);
1078     }
1079 
1080     public void setTargetRole_Terms(Collection<String> targetRoleList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
1081         TermsQueryBuilder builder = regTermsQ("targetRole", targetRoleList);
1082         if (opLambda != null) {
1083             opLambda.callback(builder);
1084         }
1085     }
1086 
1087     public void setTargetRole_InScope(Collection<String> targetRoleList) {
1088         setTargetRole_Terms(targetRoleList, null);
1089     }
1090 
1091     public void setTargetRole_InScope(Collection<String> targetRoleList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
1092         setTargetRole_Terms(targetRoleList, opLambda);
1093     }
1094 
1095     public void setTargetRole_Match(String targetRole) {
1096         setTargetRole_Match(targetRole, null);
1097     }
1098 
1099     public void setTargetRole_Match(String targetRole, ConditionOptionCall<MatchQueryBuilder> opLambda) {
1100         MatchQueryBuilder builder = regMatchQ("targetRole", targetRole);
1101         if (opLambda != null) {
1102             opLambda.callback(builder);
1103         }
1104     }
1105 
1106     public void setTargetRole_MatchPhrase(String targetRole) {
1107         setTargetRole_MatchPhrase(targetRole, null);
1108     }
1109 
1110     public void setTargetRole_MatchPhrase(String targetRole, ConditionOptionCall<MatchPhraseQueryBuilder> opLambda) {
1111         MatchPhraseQueryBuilder builder = regMatchPhraseQ("targetRole", targetRole);
1112         if (opLambda != null) {
1113             opLambda.callback(builder);
1114         }
1115     }
1116 
1117     public void setTargetRole_MatchPhrasePrefix(String targetRole) {
1118         setTargetRole_MatchPhrasePrefix(targetRole, null);
1119     }
1120 
1121     public void setTargetRole_MatchPhrasePrefix(String targetRole, ConditionOptionCall<MatchPhrasePrefixQueryBuilder> opLambda) {
1122         MatchPhrasePrefixQueryBuilder builder = regMatchPhrasePrefixQ("targetRole", targetRole);
1123         if (opLambda != null) {
1124             opLambda.callback(builder);
1125         }
1126     }
1127 
1128     public void setTargetRole_Fuzzy(String targetRole) {
1129         setTargetRole_Fuzzy(targetRole, null);
1130     }
1131 
1132     public void setTargetRole_Fuzzy(String targetRole, ConditionOptionCall<MatchQueryBuilder> opLambda) {
1133         MatchQueryBuilder builder = regFuzzyQ("targetRole", targetRole);
1134         if (opLambda != null) {
1135             opLambda.callback(builder);
1136         }
1137     }
1138 
1139     public void setTargetRole_Prefix(String targetRole) {
1140         setTargetRole_Prefix(targetRole, null);
1141     }
1142 
1143     public void setTargetRole_Prefix(String targetRole, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
1144         PrefixQueryBuilder builder = regPrefixQ("targetRole", targetRole);
1145         if (opLambda != null) {
1146             opLambda.callback(builder);
1147         }
1148     }
1149 
1150     public void setTargetRole_Wildcard(String targetRole) {
1151         setTargetRole_Wildcard(targetRole, null);
1152     }
1153 
1154     public void setTargetRole_Wildcard(String targetRole, ConditionOptionCall<WildcardQueryBuilder> opLambda) {
1155         WildcardQueryBuilder builder = regWildcardQ("targetRole", targetRole);
1156         if (opLambda != null) {
1157             opLambda.callback(builder);
1158         }
1159     }
1160 
1161     public void setTargetRole_Regexp(String targetRole) {
1162         setTargetRole_Regexp(targetRole, null);
1163     }
1164 
1165     public void setTargetRole_Regexp(String targetRole, ConditionOptionCall<RegexpQueryBuilder> opLambda) {
1166         RegexpQueryBuilder builder = regRegexpQ("targetRole", targetRole);
1167         if (opLambda != null) {
1168             opLambda.callback(builder);
1169         }
1170     }
1171 
1172     public void setTargetRole_SpanTerm(String targetRole) {
1173         setTargetRole_SpanTerm("targetRole", null);
1174     }
1175 
1176     public void setTargetRole_SpanTerm(String targetRole, ConditionOptionCall<SpanTermQueryBuilder> opLambda) {
1177         SpanTermQueryBuilder builder = regSpanTermQ("targetRole", targetRole);
1178         if (opLambda != null) {
1179             opLambda.callback(builder);
1180         }
1181     }
1182 
1183     public void setTargetRole_GreaterThan(String targetRole) {
1184         setTargetRole_GreaterThan(targetRole, null);
1185     }
1186 
1187     public void setTargetRole_GreaterThan(String targetRole, ConditionOptionCall<RangeQueryBuilder> opLambda) {
1188         final Object _value = targetRole;
1189         RangeQueryBuilder builder = regRangeQ("targetRole", ConditionKey.CK_GREATER_THAN, _value);
1190         if (opLambda != null) {
1191             opLambda.callback(builder);
1192         }
1193     }
1194 
1195     public void setTargetRole_LessThan(String targetRole) {
1196         setTargetRole_LessThan(targetRole, null);
1197     }
1198 
1199     public void setTargetRole_LessThan(String targetRole, ConditionOptionCall<RangeQueryBuilder> opLambda) {
1200         final Object _value = targetRole;
1201         RangeQueryBuilder builder = regRangeQ("targetRole", ConditionKey.CK_LESS_THAN, _value);
1202         if (opLambda != null) {
1203             opLambda.callback(builder);
1204         }
1205     }
1206 
1207     public void setTargetRole_GreaterEqual(String targetRole) {
1208         setTargetRole_GreaterEqual(targetRole, null);
1209     }
1210 
1211     public void setTargetRole_GreaterEqual(String targetRole, ConditionOptionCall<RangeQueryBuilder> opLambda) {
1212         final Object _value = targetRole;
1213         RangeQueryBuilder builder = regRangeQ("targetRole", ConditionKey.CK_GREATER_EQUAL, _value);
1214         if (opLambda != null) {
1215             opLambda.callback(builder);
1216         }
1217     }
1218 
1219     public void setTargetRole_LessEqual(String targetRole) {
1220         setTargetRole_LessEqual(targetRole, null);
1221     }
1222 
1223     public void setTargetRole_LessEqual(String targetRole, ConditionOptionCall<RangeQueryBuilder> opLambda) {
1224         final Object _value = targetRole;
1225         RangeQueryBuilder builder = regRangeQ("targetRole", ConditionKey.CK_LESS_EQUAL, _value);
1226         if (opLambda != null) {
1227             opLambda.callback(builder);
1228         }
1229     }
1230 
1231     public void setTargetRole_Exists() {
1232         setTargetRole_Exists(null);
1233     }
1234 
1235     public void setTargetRole_Exists(ConditionOptionCall<ExistsQueryBuilder> opLambda) {
1236         ExistsQueryBuilder builder = regExistsQ("targetRole");
1237         if (opLambda != null) {
1238             opLambda.callback(builder);
1239         }
1240     }
1241 
1242     @Deprecated
1243     public void setTargetRole_CommonTerms(String targetRole) {
1244         setTargetRole_CommonTerms(targetRole, null);
1245     }
1246 
1247     @Deprecated
1248     public void setTargetRole_CommonTerms(String targetRole, ConditionOptionCall<CommonTermsQueryBuilder> opLambda) {
1249         CommonTermsQueryBuilder builder = regCommonTermsQ("targetRole", targetRole);
1250         if (opLambda != null) {
1251             opLambda.callback(builder);
1252         }
1253     }
1254 
1255     public BsBadWordCQ addOrderBy_TargetRole_Asc() {
1256         regOBA("targetRole");
1257         return this;
1258     }
1259 
1260     public BsBadWordCQ addOrderBy_TargetRole_Desc() {
1261         regOBD("targetRole");
1262         return this;
1263     }
1264 
1265     public void setUpdatedBy_Equal(String updatedBy) {
1266         setUpdatedBy_Term(updatedBy, null);
1267     }
1268 
1269     public void setUpdatedBy_Equal(String updatedBy, ConditionOptionCall<TermQueryBuilder> opLambda) {
1270         setUpdatedBy_Term(updatedBy, opLambda);
1271     }
1272 
1273     public void setUpdatedBy_Term(String updatedBy) {
1274         setUpdatedBy_Term(updatedBy, null);
1275     }
1276 
1277     public void setUpdatedBy_Term(String updatedBy, ConditionOptionCall<TermQueryBuilder> opLambda) {
1278         TermQueryBuilder builder = regTermQ("updatedBy", updatedBy);
1279         if (opLambda != null) {
1280             opLambda.callback(builder);
1281         }
1282     }
1283 
1284     public void setUpdatedBy_NotEqual(String updatedBy) {
1285         setUpdatedBy_NotTerm(updatedBy, null);
1286     }
1287 
1288     public void setUpdatedBy_NotTerm(String updatedBy) {
1289         setUpdatedBy_NotTerm(updatedBy, null);
1290     }
1291 
1292     public void setUpdatedBy_NotEqual(String updatedBy, ConditionOptionCall<BoolQueryBuilder> opLambda) {
1293         setUpdatedBy_NotTerm(updatedBy, opLambda);
1294     }
1295 
1296     public void setUpdatedBy_NotTerm(String updatedBy, ConditionOptionCall<BoolQueryBuilder> opLambda) {
1297         not(not -> not.setUpdatedBy_Term(updatedBy), opLambda);
1298     }
1299 
1300     public void setUpdatedBy_Terms(Collection<String> updatedByList) {
1301         setUpdatedBy_Terms(updatedByList, null);
1302     }
1303 
1304     public void setUpdatedBy_Terms(Collection<String> updatedByList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
1305         TermsQueryBuilder builder = regTermsQ("updatedBy", updatedByList);
1306         if (opLambda != null) {
1307             opLambda.callback(builder);
1308         }
1309     }
1310 
1311     public void setUpdatedBy_InScope(Collection<String> updatedByList) {
1312         setUpdatedBy_Terms(updatedByList, null);
1313     }
1314 
1315     public void setUpdatedBy_InScope(Collection<String> updatedByList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
1316         setUpdatedBy_Terms(updatedByList, opLambda);
1317     }
1318 
1319     public void setUpdatedBy_Match(String updatedBy) {
1320         setUpdatedBy_Match(updatedBy, null);
1321     }
1322 
1323     public void setUpdatedBy_Match(String updatedBy, ConditionOptionCall<MatchQueryBuilder> opLambda) {
1324         MatchQueryBuilder builder = regMatchQ("updatedBy", updatedBy);
1325         if (opLambda != null) {
1326             opLambda.callback(builder);
1327         }
1328     }
1329 
1330     public void setUpdatedBy_MatchPhrase(String updatedBy) {
1331         setUpdatedBy_MatchPhrase(updatedBy, null);
1332     }
1333 
1334     public void setUpdatedBy_MatchPhrase(String updatedBy, ConditionOptionCall<MatchPhraseQueryBuilder> opLambda) {
1335         MatchPhraseQueryBuilder builder = regMatchPhraseQ("updatedBy", updatedBy);
1336         if (opLambda != null) {
1337             opLambda.callback(builder);
1338         }
1339     }
1340 
1341     public void setUpdatedBy_MatchPhrasePrefix(String updatedBy) {
1342         setUpdatedBy_MatchPhrasePrefix(updatedBy, null);
1343     }
1344 
1345     public void setUpdatedBy_MatchPhrasePrefix(String updatedBy, ConditionOptionCall<MatchPhrasePrefixQueryBuilder> opLambda) {
1346         MatchPhrasePrefixQueryBuilder builder = regMatchPhrasePrefixQ("updatedBy", updatedBy);
1347         if (opLambda != null) {
1348             opLambda.callback(builder);
1349         }
1350     }
1351 
1352     public void setUpdatedBy_Fuzzy(String updatedBy) {
1353         setUpdatedBy_Fuzzy(updatedBy, null);
1354     }
1355 
1356     public void setUpdatedBy_Fuzzy(String updatedBy, ConditionOptionCall<MatchQueryBuilder> opLambda) {
1357         MatchQueryBuilder builder = regFuzzyQ("updatedBy", updatedBy);
1358         if (opLambda != null) {
1359             opLambda.callback(builder);
1360         }
1361     }
1362 
1363     public void setUpdatedBy_Prefix(String updatedBy) {
1364         setUpdatedBy_Prefix(updatedBy, null);
1365     }
1366 
1367     public void setUpdatedBy_Prefix(String updatedBy, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
1368         PrefixQueryBuilder builder = regPrefixQ("updatedBy", updatedBy);
1369         if (opLambda != null) {
1370             opLambda.callback(builder);
1371         }
1372     }
1373 
1374     public void setUpdatedBy_Wildcard(String updatedBy) {
1375         setUpdatedBy_Wildcard(updatedBy, null);
1376     }
1377 
1378     public void setUpdatedBy_Wildcard(String updatedBy, ConditionOptionCall<WildcardQueryBuilder> opLambda) {
1379         WildcardQueryBuilder builder = regWildcardQ("updatedBy", updatedBy);
1380         if (opLambda != null) {
1381             opLambda.callback(builder);
1382         }
1383     }
1384 
1385     public void setUpdatedBy_Regexp(String updatedBy) {
1386         setUpdatedBy_Regexp(updatedBy, null);
1387     }
1388 
1389     public void setUpdatedBy_Regexp(String updatedBy, ConditionOptionCall<RegexpQueryBuilder> opLambda) {
1390         RegexpQueryBuilder builder = regRegexpQ("updatedBy", updatedBy);
1391         if (opLambda != null) {
1392             opLambda.callback(builder);
1393         }
1394     }
1395 
1396     public void setUpdatedBy_SpanTerm(String updatedBy) {
1397         setUpdatedBy_SpanTerm("updatedBy", null);
1398     }
1399 
1400     public void setUpdatedBy_SpanTerm(String updatedBy, ConditionOptionCall<SpanTermQueryBuilder> opLambda) {
1401         SpanTermQueryBuilder builder = regSpanTermQ("updatedBy", updatedBy);
1402         if (opLambda != null) {
1403             opLambda.callback(builder);
1404         }
1405     }
1406 
1407     public void setUpdatedBy_GreaterThan(String updatedBy) {
1408         setUpdatedBy_GreaterThan(updatedBy, null);
1409     }
1410 
1411     public void setUpdatedBy_GreaterThan(String updatedBy, ConditionOptionCall<RangeQueryBuilder> opLambda) {
1412         final Object _value = updatedBy;
1413         RangeQueryBuilder builder = regRangeQ("updatedBy", ConditionKey.CK_GREATER_THAN, _value);
1414         if (opLambda != null) {
1415             opLambda.callback(builder);
1416         }
1417     }
1418 
1419     public void setUpdatedBy_LessThan(String updatedBy) {
1420         setUpdatedBy_LessThan(updatedBy, null);
1421     }
1422 
1423     public void setUpdatedBy_LessThan(String updatedBy, ConditionOptionCall<RangeQueryBuilder> opLambda) {
1424         final Object _value = updatedBy;
1425         RangeQueryBuilder builder = regRangeQ("updatedBy", ConditionKey.CK_LESS_THAN, _value);
1426         if (opLambda != null) {
1427             opLambda.callback(builder);
1428         }
1429     }
1430 
1431     public void setUpdatedBy_GreaterEqual(String updatedBy) {
1432         setUpdatedBy_GreaterEqual(updatedBy, null);
1433     }
1434 
1435     public void setUpdatedBy_GreaterEqual(String updatedBy, ConditionOptionCall<RangeQueryBuilder> opLambda) {
1436         final Object _value = updatedBy;
1437         RangeQueryBuilder builder = regRangeQ("updatedBy", ConditionKey.CK_GREATER_EQUAL, _value);
1438         if (opLambda != null) {
1439             opLambda.callback(builder);
1440         }
1441     }
1442 
1443     public void setUpdatedBy_LessEqual(String updatedBy) {
1444         setUpdatedBy_LessEqual(updatedBy, null);
1445     }
1446 
1447     public void setUpdatedBy_LessEqual(String updatedBy, ConditionOptionCall<RangeQueryBuilder> opLambda) {
1448         final Object _value = updatedBy;
1449         RangeQueryBuilder builder = regRangeQ("updatedBy", ConditionKey.CK_LESS_EQUAL, _value);
1450         if (opLambda != null) {
1451             opLambda.callback(builder);
1452         }
1453     }
1454 
1455     public void setUpdatedBy_Exists() {
1456         setUpdatedBy_Exists(null);
1457     }
1458 
1459     public void setUpdatedBy_Exists(ConditionOptionCall<ExistsQueryBuilder> opLambda) {
1460         ExistsQueryBuilder builder = regExistsQ("updatedBy");
1461         if (opLambda != null) {
1462             opLambda.callback(builder);
1463         }
1464     }
1465 
1466     @Deprecated
1467     public void setUpdatedBy_CommonTerms(String updatedBy) {
1468         setUpdatedBy_CommonTerms(updatedBy, null);
1469     }
1470 
1471     @Deprecated
1472     public void setUpdatedBy_CommonTerms(String updatedBy, ConditionOptionCall<CommonTermsQueryBuilder> opLambda) {
1473         CommonTermsQueryBuilder builder = regCommonTermsQ("updatedBy", updatedBy);
1474         if (opLambda != null) {
1475             opLambda.callback(builder);
1476         }
1477     }
1478 
1479     public BsBadWordCQ addOrderBy_UpdatedBy_Asc() {
1480         regOBA("updatedBy");
1481         return this;
1482     }
1483 
1484     public BsBadWordCQ addOrderBy_UpdatedBy_Desc() {
1485         regOBD("updatedBy");
1486         return this;
1487     }
1488 
1489     public void setUpdatedTime_Equal(Long updatedTime) {
1490         setUpdatedTime_Term(updatedTime, null);
1491     }
1492 
1493     public void setUpdatedTime_Equal(Long updatedTime, ConditionOptionCall<TermQueryBuilder> opLambda) {
1494         setUpdatedTime_Term(updatedTime, opLambda);
1495     }
1496 
1497     public void setUpdatedTime_Term(Long updatedTime) {
1498         setUpdatedTime_Term(updatedTime, null);
1499     }
1500 
1501     public void setUpdatedTime_Term(Long updatedTime, ConditionOptionCall<TermQueryBuilder> opLambda) {
1502         TermQueryBuilder builder = regTermQ("updatedTime", updatedTime);
1503         if (opLambda != null) {
1504             opLambda.callback(builder);
1505         }
1506     }
1507 
1508     public void setUpdatedTime_NotEqual(Long updatedTime) {
1509         setUpdatedTime_NotTerm(updatedTime, null);
1510     }
1511 
1512     public void setUpdatedTime_NotTerm(Long updatedTime) {
1513         setUpdatedTime_NotTerm(updatedTime, null);
1514     }
1515 
1516     public void setUpdatedTime_NotEqual(Long updatedTime, ConditionOptionCall<BoolQueryBuilder> opLambda) {
1517         setUpdatedTime_NotTerm(updatedTime, opLambda);
1518     }
1519 
1520     public void setUpdatedTime_NotTerm(Long updatedTime, ConditionOptionCall<BoolQueryBuilder> opLambda) {
1521         not(not -> not.setUpdatedTime_Term(updatedTime), opLambda);
1522     }
1523 
1524     public void setUpdatedTime_Terms(Collection<Long> updatedTimeList) {
1525         setUpdatedTime_Terms(updatedTimeList, null);
1526     }
1527 
1528     public void setUpdatedTime_Terms(Collection<Long> updatedTimeList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
1529         TermsQueryBuilder builder = regTermsQ("updatedTime", updatedTimeList);
1530         if (opLambda != null) {
1531             opLambda.callback(builder);
1532         }
1533     }
1534 
1535     public void setUpdatedTime_InScope(Collection<Long> updatedTimeList) {
1536         setUpdatedTime_Terms(updatedTimeList, null);
1537     }
1538 
1539     public void setUpdatedTime_InScope(Collection<Long> updatedTimeList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
1540         setUpdatedTime_Terms(updatedTimeList, opLambda);
1541     }
1542 
1543     public void setUpdatedTime_Match(Long updatedTime) {
1544         setUpdatedTime_Match(updatedTime, null);
1545     }
1546 
1547     public void setUpdatedTime_Match(Long updatedTime, ConditionOptionCall<MatchQueryBuilder> opLambda) {
1548         MatchQueryBuilder builder = regMatchQ("updatedTime", updatedTime);
1549         if (opLambda != null) {
1550             opLambda.callback(builder);
1551         }
1552     }
1553 
1554     public void setUpdatedTime_MatchPhrase(Long updatedTime) {
1555         setUpdatedTime_MatchPhrase(updatedTime, null);
1556     }
1557 
1558     public void setUpdatedTime_MatchPhrase(Long updatedTime, ConditionOptionCall<MatchPhraseQueryBuilder> opLambda) {
1559         MatchPhraseQueryBuilder builder = regMatchPhraseQ("updatedTime", updatedTime);
1560         if (opLambda != null) {
1561             opLambda.callback(builder);
1562         }
1563     }
1564 
1565     public void setUpdatedTime_MatchPhrasePrefix(Long updatedTime) {
1566         setUpdatedTime_MatchPhrasePrefix(updatedTime, null);
1567     }
1568 
1569     public void setUpdatedTime_MatchPhrasePrefix(Long updatedTime, ConditionOptionCall<MatchPhrasePrefixQueryBuilder> opLambda) {
1570         MatchPhrasePrefixQueryBuilder builder = regMatchPhrasePrefixQ("updatedTime", updatedTime);
1571         if (opLambda != null) {
1572             opLambda.callback(builder);
1573         }
1574     }
1575 
1576     public void setUpdatedTime_Fuzzy(Long updatedTime) {
1577         setUpdatedTime_Fuzzy(updatedTime, null);
1578     }
1579 
1580     public void setUpdatedTime_Fuzzy(Long updatedTime, ConditionOptionCall<MatchQueryBuilder> opLambda) {
1581         MatchQueryBuilder builder = regFuzzyQ("updatedTime", updatedTime);
1582         if (opLambda != null) {
1583             opLambda.callback(builder);
1584         }
1585     }
1586 
1587     public void setUpdatedTime_GreaterThan(Long updatedTime) {
1588         setUpdatedTime_GreaterThan(updatedTime, null);
1589     }
1590 
1591     public void setUpdatedTime_GreaterThan(Long updatedTime, ConditionOptionCall<RangeQueryBuilder> opLambda) {
1592         final Object _value = updatedTime;
1593         RangeQueryBuilder builder = regRangeQ("updatedTime", ConditionKey.CK_GREATER_THAN, _value);
1594         if (opLambda != null) {
1595             opLambda.callback(builder);
1596         }
1597     }
1598 
1599     public void setUpdatedTime_LessThan(Long updatedTime) {
1600         setUpdatedTime_LessThan(updatedTime, null);
1601     }
1602 
1603     public void setUpdatedTime_LessThan(Long updatedTime, ConditionOptionCall<RangeQueryBuilder> opLambda) {
1604         final Object _value = updatedTime;
1605         RangeQueryBuilder builder = regRangeQ("updatedTime", ConditionKey.CK_LESS_THAN, _value);
1606         if (opLambda != null) {
1607             opLambda.callback(builder);
1608         }
1609     }
1610 
1611     public void setUpdatedTime_GreaterEqual(Long updatedTime) {
1612         setUpdatedTime_GreaterEqual(updatedTime, null);
1613     }
1614 
1615     public void setUpdatedTime_GreaterEqual(Long updatedTime, ConditionOptionCall<RangeQueryBuilder> opLambda) {
1616         final Object _value = updatedTime;
1617         RangeQueryBuilder builder = regRangeQ("updatedTime", ConditionKey.CK_GREATER_EQUAL, _value);
1618         if (opLambda != null) {
1619             opLambda.callback(builder);
1620         }
1621     }
1622 
1623     public void setUpdatedTime_LessEqual(Long updatedTime) {
1624         setUpdatedTime_LessEqual(updatedTime, null);
1625     }
1626 
1627     public void setUpdatedTime_LessEqual(Long updatedTime, ConditionOptionCall<RangeQueryBuilder> opLambda) {
1628         final Object _value = updatedTime;
1629         RangeQueryBuilder builder = regRangeQ("updatedTime", ConditionKey.CK_LESS_EQUAL, _value);
1630         if (opLambda != null) {
1631             opLambda.callback(builder);
1632         }
1633     }
1634 
1635     public void setUpdatedTime_Exists() {
1636         setUpdatedTime_Exists(null);
1637     }
1638 
1639     public void setUpdatedTime_Exists(ConditionOptionCall<ExistsQueryBuilder> opLambda) {
1640         ExistsQueryBuilder builder = regExistsQ("updatedTime");
1641         if (opLambda != null) {
1642             opLambda.callback(builder);
1643         }
1644     }
1645 
1646     @Deprecated
1647     public void setUpdatedTime_CommonTerms(Long updatedTime) {
1648         setUpdatedTime_CommonTerms(updatedTime, null);
1649     }
1650 
1651     @Deprecated
1652     public void setUpdatedTime_CommonTerms(Long updatedTime, ConditionOptionCall<CommonTermsQueryBuilder> opLambda) {
1653         CommonTermsQueryBuilder builder = regCommonTermsQ("updatedTime", updatedTime);
1654         if (opLambda != null) {
1655             opLambda.callback(builder);
1656         }
1657     }
1658 
1659     public BsBadWordCQ addOrderBy_UpdatedTime_Asc() {
1660         regOBA("updatedTime");
1661         return this;
1662     }
1663 
1664     public BsBadWordCQ addOrderBy_UpdatedTime_Desc() {
1665         regOBD("updatedTime");
1666         return this;
1667     }
1668 
1669 }