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