|
24 | 24 | import org.jspecify.annotations.Nullable; |
25 | 25 | import org.mybatis.dynamic.sql.delete.DeleteDSL; |
26 | 26 | import org.mybatis.dynamic.sql.delete.DeleteModel; |
| 27 | +import org.mybatis.dynamic.sql.dsl.HavingDSL; |
| 28 | +import org.mybatis.dynamic.sql.dsl.WhereDSL; |
27 | 29 | import org.mybatis.dynamic.sql.insert.BatchInsertDSL; |
28 | 30 | import org.mybatis.dynamic.sql.insert.GeneralInsertDSL; |
29 | 31 | import org.mybatis.dynamic.sql.insert.InsertDSL; |
|
36 | 38 | import org.mybatis.dynamic.sql.select.SelectDSL; |
37 | 39 | import org.mybatis.dynamic.sql.select.SelectModel; |
38 | 40 | import org.mybatis.dynamic.sql.select.SimpleSortSpecification; |
39 | | -import org.mybatis.dynamic.sql.select.StandaloneHavingBuilder; |
40 | 41 | import org.mybatis.dynamic.sql.select.aggregate.Avg; |
41 | 42 | import org.mybatis.dynamic.sql.select.aggregate.Count; |
42 | 43 | import org.mybatis.dynamic.sql.select.aggregate.CountAll; |
|
60 | 61 | import org.mybatis.dynamic.sql.update.UpdateDSL; |
61 | 62 | import org.mybatis.dynamic.sql.update.UpdateModel; |
62 | 63 | import org.mybatis.dynamic.sql.util.Buildable; |
63 | | -import org.mybatis.dynamic.sql.where.StandaloneWhereBuilder; |
64 | 64 | import org.mybatis.dynamic.sql.where.condition.IsBetween; |
65 | 65 | import org.mybatis.dynamic.sql.where.condition.IsBetweenWhenPresent; |
66 | 66 | import org.mybatis.dynamic.sql.where.condition.IsEqualTo; |
@@ -262,37 +262,37 @@ static UpdateDSL<UpdateModel> update(SqlTable table, String tableAlias) { |
262 | 262 | return UpdateDSL.update(table, tableAlias); |
263 | 263 | } |
264 | 264 |
|
265 | | - static StandaloneWhereBuilder where() { |
266 | | - return new StandaloneWhereBuilder(); |
| 265 | + static WhereDSL where() { |
| 266 | + return new WhereDSL(); |
267 | 267 | } |
268 | 268 |
|
269 | | - static <T> StandaloneWhereBuilder where(BindableColumn<T> column, RenderableCondition<T> condition, |
270 | | - AndOrCriteriaGroup... subCriteria) { |
| 269 | + static <T> WhereDSL where(BindableColumn<T> column, RenderableCondition<T> condition, |
| 270 | + AndOrCriteriaGroup... subCriteria) { |
271 | 271 | ColumnAndConditionCriterion<T> initialCriterion = ColumnAndConditionCriterion.withColumn(column) |
272 | 272 | .withCondition(condition) |
273 | 273 | .build(); |
274 | 274 |
|
275 | 275 | return where(initialCriterion, subCriteria); |
276 | 276 | } |
277 | 277 |
|
278 | | - static StandaloneWhereBuilder where(SqlCriterion initialCriterion, AndOrCriteriaGroup... subCriteria) { |
279 | | - return new StandaloneWhereBuilder(initialCriterion, Arrays.asList(subCriteria)); |
| 278 | + static WhereDSL where(SqlCriterion initialCriterion, AndOrCriteriaGroup... subCriteria) { |
| 279 | + return new WhereDSL(initialCriterion, Arrays.asList(subCriteria)); |
280 | 280 | } |
281 | 281 |
|
282 | | - static StandaloneWhereBuilder where(ExistsPredicate existsPredicate, AndOrCriteriaGroup... subCriteria) { |
| 282 | + static WhereDSL where(ExistsPredicate existsPredicate, AndOrCriteriaGroup... subCriteria) { |
283 | 283 | ExistsCriterion existsCriterion = new ExistsCriterion.Builder() |
284 | 284 | .withExistsPredicate(existsPredicate).build(); |
285 | 285 | return where(existsCriterion, subCriteria); |
286 | 286 | } |
287 | 287 |
|
288 | | - static <T> StandaloneHavingBuilder having(BindableColumn<T> column, RenderableCondition<T> condition, |
289 | | - AndOrCriteriaGroup... subCriteria) { |
| 288 | + static <T> HavingDSL having(BindableColumn<T> column, RenderableCondition<T> condition, |
| 289 | + AndOrCriteriaGroup... subCriteria) { |
290 | 290 | SqlCriterion initialCriterion = ColumnAndConditionCriterion.withColumn(column).withCondition(condition).build(); |
291 | 291 | return having(initialCriterion, subCriteria); |
292 | 292 | } |
293 | 293 |
|
294 | | - static StandaloneHavingBuilder having(SqlCriterion initialCriterion, AndOrCriteriaGroup... subCriteria) { |
295 | | - return new StandaloneHavingBuilder(initialCriterion, Arrays.asList(subCriteria)); |
| 294 | + static HavingDSL having(SqlCriterion initialCriterion, AndOrCriteriaGroup... subCriteria) { |
| 295 | + return new HavingDSL(initialCriterion, Arrays.asList(subCriteria)); |
296 | 296 | } |
297 | 297 |
|
298 | 298 | // where condition connectors |
|
0 commit comments