@@ -78,7 +78,7 @@ void testAllIgnored() {
7878 AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
7979 SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
8080 .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
8282 .orderBy (id )
8383 .configureStatement (c -> c .setNonRenderingWhereClauseAllowed (true ))
8484 .build ()
@@ -120,7 +120,7 @@ void testIgnoredBetweenRendered() {
120120 SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
121121 .from (animalData )
122122 .where (id , isEqualTo (3 ))
123- .and (id , isNotEqualToWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull ))
123+ .and (id , isNotEqualTo (NULL_INTEGER ).filter (Objects ::nonNull ))
124124 .or (id , isEqualTo (4 ).filter (Objects ::nonNull ))
125125 .orderBy (id )
126126 .build ()
@@ -141,7 +141,7 @@ void testIgnoredInWhere() {
141141 AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
142142 SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
143143 .from (animalData )
144- .where (id , isLessThanWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull ))
144+ .where (id , isLessThan (NULL_INTEGER ).filter (Objects ::nonNull ))
145145 .and (id , isEqualTo (3 ).filter (Objects ::nonNull ))
146146 .or (id , isEqualTo (4 ).filter (Objects ::nonNull ))
147147 .orderBy (id )
@@ -163,10 +163,10 @@ void testManyIgnored() {
163163 AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
164164 SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
165165 .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 ))
170170 .orderBy (id )
171171 .build ()
172172 .render (RenderingStrategies .MYBATIS3 );
@@ -186,7 +186,7 @@ void testIgnoredInitialWhere() {
186186 AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
187187 SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
188188 .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 )))
190190 .or (id , isEqualTo (4 ).filter (Objects ::nonNull ))
191191 .orderBy (id )
192192 .build ()
@@ -226,7 +226,7 @@ void testEqualWhenWithoutValue() {
226226 AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
227227 SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
228228 .from (animalData )
229- .where (id , isEqualToWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull ))
229+ .where (id , isEqualTo (NULL_INTEGER ).filter (Objects ::nonNull ))
230230 .and (id , isLessThanOrEqualTo (10 ))
231231 .orderBy (id )
232232 .build ()
@@ -266,7 +266,7 @@ void testNotEqualWhenWithoutValue() {
266266 AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
267267 SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
268268 .from (animalData )
269- .where (id , isNotEqualToWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull ))
269+ .where (id , isNotEqualTo (NULL_INTEGER ).filter (Objects ::nonNull ))
270270 .and (id , isLessThanOrEqualTo (10 ))
271271 .orderBy (id )
272272 .build ()
@@ -306,7 +306,7 @@ void testGreaterThanWhenWithoutValue() {
306306 AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
307307 SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
308308 .from (animalData )
309- .where (id , isGreaterThanWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull ))
309+ .where (id , isGreaterThan (NULL_INTEGER ).filter (Objects ::nonNull ))
310310 .and (id , isLessThanOrEqualTo (10 ))
311311 .orderBy (id )
312312 .build ()
@@ -346,7 +346,7 @@ void testGreaterThanOrEqualToWhenWithoutValue() {
346346 AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
347347 SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
348348 .from (animalData )
349- .where (id , isGreaterThanOrEqualToWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull ))
349+ .where (id , isGreaterThanOrEqualTo (NULL_INTEGER ).filter (Objects ::nonNull ))
350350 .and (id , isLessThanOrEqualTo (10 ))
351351 .orderBy (id )
352352 .build ()
@@ -385,7 +385,7 @@ void testLessThanWhenWithoutValue() {
385385 AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
386386 SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
387387 .from (animalData )
388- .where (id , isLessThanWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull ))
388+ .where (id , isLessThan (NULL_INTEGER ).filter (Objects ::nonNull ))
389389 .and (id , isLessThanOrEqualTo (10 ))
390390 .orderBy (id )
391391 .build ()
@@ -424,7 +424,7 @@ void testLessThanOrEqualToWhenWithoutValue() {
424424 AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
425425 SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
426426 .from (animalData )
427- .where (id , isLessThanOrEqualToWhenPresent (NULL_INTEGER ).filter (Objects ::nonNull ))
427+ .where (id , isLessThanOrEqualTo (NULL_INTEGER ).filter (Objects ::nonNull ))
428428 .and (id , isLessThanOrEqualTo (10 ))
429429 .orderBy (id )
430430 .build ()
@@ -862,7 +862,7 @@ void testIsLikeCaseInsensitiveWhenWithoutValue() {
862862 AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
863863 SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
864864 .from (animalData )
865- .where (animalName , isLikeCaseInsensitiveWhenPresent ((String ) null ).filter (Objects ::nonNull ))
865+ .where (animalName , isLikeCaseInsensitive ((String ) null ).filter (Objects ::nonNull ))
866866 .and (id , isLessThanOrEqualTo (10 ))
867867 .orderBy (id )
868868 .build ()
@@ -902,7 +902,7 @@ void testIsNotLikeWhenWithoutValue() {
902902 AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
903903 SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
904904 .from (animalData )
905- .where (animalName , isNotLikeWhenPresent ((String ) null ).filter (Objects ::nonNull ))
905+ .where (animalName , isNotLike ((String ) null ).filter (Objects ::nonNull ))
906906 .and (id , isLessThanOrEqualTo (10 ))
907907 .orderBy (id )
908908 .build ()
@@ -942,7 +942,7 @@ void testIsNotLikeCaseInsensitiveWhenWithoutValue() {
942942 AnimalDataMapper mapper = sqlSession .getMapper (AnimalDataMapper .class );
943943 SelectStatementProvider selectStatement = select (id , animalName , bodyWeight , brainWeight )
944944 .from (animalData )
945- .where (animalName , isNotLikeCaseInsensitiveWhenPresent ((String ) null ).filter (Objects ::nonNull ))
945+ .where (animalName , isNotLikeCaseInsensitive ((String ) null ).filter (Objects ::nonNull ))
946946 .and (id , isLessThanOrEqualTo (10 ))
947947 .orderBy (id )
948948 .build ()
0 commit comments