@@ -78,7 +78,7 @@ void testAllIgnored() {
78
78
AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
79
79
SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
80
80
.from (animalData )
81
- .where (id , isGreaterThanWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull )) // the where clause should not render
81
+ .where (id , isGreaterThan (NULL_INTEGER ).filter (Objects ::nonNull )) // the where clause should not render
82
82
.orderBy (id )
83
83
.configureStatement (c -> c .setNonRenderingWhereClauseAllowed (true ))
84
84
.build ()
@@ -120,7 +120,7 @@ void testIgnoredBetweenRendered() {
120
120
SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
121
121
.from (animalData )
122
122
.where (id , isEqualTo (3 ))
123
- .and (id , isNotEqualToWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull ))
123
+ .and (id , isNotEqualTo (NULL_INTEGER ).filter (Objects ::nonNull ))
124
124
.or (id , isEqualTo (4 ).filter (Objects ::nonNull ))
125
125
.orderBy (id )
126
126
.build ()
@@ -141,7 +141,7 @@ void testIgnoredInWhere() {
141
141
AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
142
142
SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
143
143
.from (animalData )
144
- .where (id , isLessThanWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull ))
144
+ .where (id , isLessThan (NULL_INTEGER ).filter (Objects ::nonNull ))
145
145
.and (id , isEqualTo (3 ).filter (Objects ::nonNull ))
146
146
.or (id , isEqualTo (4 ).filter (Objects ::nonNull ))
147
147
.orderBy (id )
@@ -163,10 +163,10 @@ void testManyIgnored() {
163
163
AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
164
164
SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
165
165
.from (animalData )
166
- .where (id , isLessThanWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull ), and (id , isGreaterThanOrEqualToWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull )))
167
- .and (id , isEqualToWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull ), or (id , isEqualTo (3 ), and (id , isLessThanWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull ))))
168
- .or (id , isEqualTo (4 ).filter (Objects ::nonNull ), and (id , isGreaterThanOrEqualToWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull )))
169
- .and (id , isNotEqualToWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull ))
166
+ .where (id , isLessThan (NULL_INTEGER ).filter (Objects ::nonNull ), and (id , isGreaterThanOrEqualTo (NULL_INTEGER ).filter (Objects ::nonNull )))
167
+ .and (id , isEqualTo (NULL_INTEGER ).filter (Objects ::nonNull ), or (id , isEqualTo (3 ), and (id , isLessThan (NULL_INTEGER ).filter (Objects ::nonNull ))))
168
+ .or (id , isEqualTo (4 ).filter (Objects ::nonNull ), and (id , isGreaterThanOrEqualTo (NULL_INTEGER ).filter (Objects ::nonNull )))
169
+ .and (id , isNotEqualTo (NULL_INTEGER ).filter (Objects ::nonNull ))
170
170
.orderBy (id )
171
171
.build ()
172
172
.render (RenderingStrategies .MYBATIS3 );
@@ -186,7 +186,7 @@ void testIgnoredInitialWhere() {
186
186
AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
187
187
SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
188
188
.from (animalData )
189
- .where (id , isLessThanWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull ), and (id , isEqualTo (3 ).filter (Objects ::nonNull )))
189
+ .where (id , isLessThan (NULL_INTEGER ).filter (Objects ::nonNull ), and (id , isEqualTo (3 ).filter (Objects ::nonNull )))
190
190
.or (id , isEqualTo (4 ).filter (Objects ::nonNull ))
191
191
.orderBy (id )
192
192
.build ()
@@ -226,7 +226,7 @@ void testEqualWhenWithoutValue() {
226
226
AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
227
227
SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
228
228
.from (animalData )
229
- .where (id , isEqualToWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull ))
229
+ .where (id , isEqualTo (NULL_INTEGER ).filter (Objects ::nonNull ))
230
230
.and (id , isLessThanOrEqualTo (10 ))
231
231
.orderBy (id )
232
232
.build ()
@@ -266,7 +266,7 @@ void testNotEqualWhenWithoutValue() {
266
266
AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
267
267
SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
268
268
.from (animalData )
269
- .where (id , isNotEqualToWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull ))
269
+ .where (id , isNotEqualTo (NULL_INTEGER ).filter (Objects ::nonNull ))
270
270
.and (id , isLessThanOrEqualTo (10 ))
271
271
.orderBy (id )
272
272
.build ()
@@ -306,7 +306,7 @@ void testGreaterThanWhenWithoutValue() {
306
306
AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
307
307
SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
308
308
.from (animalData )
309
- .where (id , isGreaterThanWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull ))
309
+ .where (id , isGreaterThan (NULL_INTEGER ).filter (Objects ::nonNull ))
310
310
.and (id , isLessThanOrEqualTo (10 ))
311
311
.orderBy (id )
312
312
.build ()
@@ -346,7 +346,7 @@ void testGreaterThanOrEqualToWhenWithoutValue() {
346
346
AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
347
347
SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
348
348
.from (animalData )
349
- .where (id , isGreaterThanOrEqualToWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull ))
349
+ .where (id , isGreaterThanOrEqualTo (NULL_INTEGER ).filter (Objects ::nonNull ))
350
350
.and (id , isLessThanOrEqualTo (10 ))
351
351
.orderBy (id )
352
352
.build ()
@@ -385,7 +385,7 @@ void testLessThanWhenWithoutValue() {
385
385
AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
386
386
SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
387
387
.from (animalData )
388
- .where (id , isLessThanWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull ))
388
+ .where (id , isLessThan (NULL_INTEGER ).filter (Objects ::nonNull ))
389
389
.and (id , isLessThanOrEqualTo (10 ))
390
390
.orderBy (id )
391
391
.build ()
@@ -424,7 +424,7 @@ void testLessThanOrEqualToWhenWithoutValue() {
424
424
AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
425
425
SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
426
426
.from (animalData )
427
- .where (id , isLessThanOrEqualToWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull ))
427
+ .where (id , isLessThanOrEqualTo (NULL_INTEGER ).filter (Objects ::nonNull ))
428
428
.and (id , isLessThanOrEqualTo (10 ))
429
429
.orderBy (id )
430
430
.build ()
@@ -862,7 +862,7 @@ void testIsLikeCaseInsensitiveWhenWithoutValue() {
862
862
AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
863
863
SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
864
864
.from (animalData )
865
- .where (animalName , isLikeCaseInsensitiveWhenPresent ((String ) null ).filter (Objects ::nonNull ))
865
+ .where (animalName , isLikeCaseInsensitive ((String ) null ).filter (Objects ::nonNull ))
866
866
.and (id , isLessThanOrEqualTo (10 ))
867
867
.orderBy (id )
868
868
.build ()
@@ -902,7 +902,7 @@ void testIsNotLikeWhenWithoutValue() {
902
902
AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
903
903
SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
904
904
.from (animalData )
905
- .where (animalName , isNotLikeWhenPresent ((String ) null ).filter (Objects ::nonNull ))
905
+ .where (animalName , isNotLike ((String ) null ).filter (Objects ::nonNull ))
906
906
.and (id , isLessThanOrEqualTo (10 ))
907
907
.orderBy (id )
908
908
.build ()
@@ -942,7 +942,7 @@ void testIsNotLikeCaseInsensitiveWhenWithoutValue() {
942
942
AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
943
943
SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
944
944
.from (animalData )
945
- .where (animalName , isNotLikeCaseInsensitiveWhenPresent ((String ) null ).filter (Objects ::nonNull ))
945
+ .where (animalName , isNotLikeCaseInsensitive ((String ) null ).filter (Objects ::nonNull ))
946
946
.and (id , isLessThanOrEqualTo (10 ))
947
947
.orderBy (id )
948
948
.build ()
0 commit comments