44
44
45
45
public class QueryExpressionDSL <R >
46
46
extends AbstractQueryExpressionDSL <QueryExpressionDSL <R >.QueryExpressionWhereBuilder , QueryExpressionDSL <R >>
47
- implements Buildable <R >, PagingDSL <R > {
47
+ implements Buildable <R >, SelectDSLOperations <R > {
48
48
49
49
private final @ Nullable String connector ;
50
50
private final SelectDSL <R > selectDSL ;
@@ -196,23 +196,13 @@ protected QueryExpressionModel buildModel() {
196
196
}
197
197
198
198
@ Override
199
- public PagingDSL .LimitFinisher <R > limitWhenPresent (@ Nullable Long limit ) {
200
- return selectDSL .limitWhenPresent (limit );
201
- }
202
-
203
- @ Override
204
- public PagingDSL .OffsetFirstFinisher <R > offsetWhenPresent (@ Nullable Long offset ) {
205
- return selectDSL .offsetWhenPresent (offset );
206
- }
207
-
208
- @ Override
209
- public PagingDSL .FetchFirstFinisher <R > fetchFirstWhenPresent (@ Nullable Long fetchFirstRows ) {
210
- return selectDSL .fetchFirstWhenPresent (fetchFirstRows );
199
+ protected QueryExpressionDSL <R > getThis () {
200
+ return this ;
211
201
}
212
202
213
203
@ Override
214
- protected QueryExpressionDSL <R > getThis () {
215
- return this ;
204
+ public SelectDSL <R > getSelectDSL () {
205
+ return selectDSL ;
216
206
}
217
207
218
208
public static class FromGatherer <R > {
@@ -277,7 +267,7 @@ public FromGatherer<R> build() {
277
267
}
278
268
279
269
public class QueryExpressionWhereBuilder extends AbstractWhereFinisher <QueryExpressionWhereBuilder >
280
- implements Buildable <R >, PagingDSL <R > {
270
+ implements Buildable <R >, SelectDSLOperations <R > {
281
271
private QueryExpressionWhereBuilder () {
282
272
super (QueryExpressionDSL .this );
283
273
}
@@ -306,21 +296,6 @@ public GroupByFinisher groupBy(Collection<? extends BasicColumn> columns) {
306
296
return QueryExpressionDSL .this .groupBy (columns );
307
297
}
308
298
309
- @ Override
310
- public PagingDSL .LimitFinisher <R > limitWhenPresent (@ Nullable Long limit ) {
311
- return QueryExpressionDSL .this .limitWhenPresent (limit );
312
- }
313
-
314
- @ Override
315
- public PagingDSL .OffsetFirstFinisher <R > offsetWhenPresent (@ Nullable Long offset ) {
316
- return QueryExpressionDSL .this .offsetWhenPresent (offset );
317
- }
318
-
319
- @ Override
320
- public PagingDSL .FetchFirstFinisher <R > fetchFirstWhenPresent (@ Nullable Long fetchFirstRows ) {
321
- return QueryExpressionDSL .this .fetchFirstWhenPresent (fetchFirstRows );
322
- }
323
-
324
299
@ Override
325
300
public R build () {
326
301
return QueryExpressionDSL .this .build ();
@@ -331,6 +306,11 @@ protected QueryExpressionWhereBuilder getThis() {
331
306
return this ;
332
307
}
333
308
309
+ @ Override
310
+ public SelectDSL <R > getSelectDSL () {
311
+ return QueryExpressionDSL .this .getSelectDSL ();
312
+ }
313
+
334
314
protected EmbeddedWhereModel buildWhereModel () {
335
315
return super .buildModel ();
336
316
}
@@ -358,7 +338,7 @@ public <T> JoinSpecificationFinisher on(BindableColumn<T> joinColumn, VisitableC
358
338
public class JoinSpecificationFinisher
359
339
extends AbstractBooleanExpressionDSL <JoinSpecificationFinisher >
360
340
implements AbstractWhereStarter <QueryExpressionWhereBuilder , JoinSpecificationFinisher >, Buildable <R >,
361
- PagingDSL <R > {
341
+ SelectDSLOperations <R > {
362
342
363
343
private final TableExpression table ;
364
344
private final JoinType joinType ;
@@ -487,28 +467,18 @@ public SelectDSL<R> orderBy(Collection<? extends SortSpecification> columns) {
487
467
}
488
468
489
469
@ Override
490
- public PagingDSL .LimitFinisher <R > limitWhenPresent (@ Nullable Long limit ) {
491
- return QueryExpressionDSL .this .limitWhenPresent (limit );
492
- }
493
-
494
- @ Override
495
- public PagingDSL .OffsetFirstFinisher <R > offsetWhenPresent (@ Nullable Long offset ) {
496
- return QueryExpressionDSL .this .offsetWhenPresent (offset );
497
- }
498
-
499
- @ Override
500
- public PagingDSL .FetchFirstFinisher <R > fetchFirstWhenPresent (@ Nullable Long fetchFirstRows ) {
501
- return QueryExpressionDSL .this .fetchFirstWhenPresent (fetchFirstRows );
470
+ protected JoinSpecificationFinisher getThis () {
471
+ return this ;
502
472
}
503
473
504
474
@ Override
505
- protected JoinSpecificationFinisher getThis () {
506
- return this ;
475
+ public SelectDSL < R > getSelectDSL () {
476
+ return QueryExpressionDSL . this . getSelectDSL () ;
507
477
}
508
478
}
509
479
510
480
public class GroupByFinisher extends AbstractHavingStarter <QueryExpressionHavingBuilder >
511
- implements Buildable <R >, PagingDSL <R > {
481
+ implements Buildable <R >, SelectDSLOperations <R > {
512
482
public SelectDSL <R > orderBy (SortSpecification ... columns ) {
513
483
return orderBy (Arrays .asList (columns ));
514
484
}
@@ -531,23 +501,13 @@ public UnionBuilder unionAll() {
531
501
}
532
502
533
503
@ Override
534
- public PagingDSL .LimitFinisher <R > limitWhenPresent (@ Nullable Long limit ) {
535
- return QueryExpressionDSL .this .limitWhenPresent (limit );
536
- }
537
-
538
- @ Override
539
- public PagingDSL .OffsetFirstFinisher <R > offsetWhenPresent (@ Nullable Long offset ) {
540
- return QueryExpressionDSL .this .offsetWhenPresent (offset );
504
+ public QueryExpressionHavingBuilder having () {
505
+ return QueryExpressionDSL .this .having ();
541
506
}
542
507
543
508
@ Override
544
- public PagingDSL .FetchFirstFinisher <R > fetchFirstWhenPresent (@ Nullable Long fetchFirstRows ) {
545
- return QueryExpressionDSL .this .fetchFirstWhenPresent (fetchFirstRows );
546
- }
547
-
548
- @ Override
549
- public QueryExpressionHavingBuilder having () {
550
- return QueryExpressionDSL .this .having ();
509
+ public SelectDSL <R > getSelectDSL () {
510
+ return QueryExpressionDSL .this .getSelectDSL ();
551
511
}
552
512
}
553
513
@@ -585,22 +545,7 @@ public FromGatherer<R> selectDistinct(List<BasicColumn> selectList) {
585
545
}
586
546
587
547
public class QueryExpressionHavingBuilder extends AbstractHavingFinisher <QueryExpressionHavingBuilder >
588
- implements Buildable <R >, PagingDSL <R > {
589
-
590
- @ Override
591
- public PagingDSL .LimitFinisher <R > limitWhenPresent (@ Nullable Long limit ) {
592
- return QueryExpressionDSL .this .limitWhenPresent (limit );
593
- }
594
-
595
- @ Override
596
- public PagingDSL .OffsetFirstFinisher <R > offsetWhenPresent (@ Nullable Long offset ) {
597
- return QueryExpressionDSL .this .offsetWhenPresent (offset );
598
- }
599
-
600
- @ Override
601
- public PagingDSL .FetchFirstFinisher <R > fetchFirstWhenPresent (@ Nullable Long fetchFirstRows ) {
602
- return QueryExpressionDSL .this .fetchFirstWhenPresent (fetchFirstRows );
603
- }
548
+ implements Buildable <R >, SelectDSLOperations <R > {
604
549
605
550
public SelectDSL <R > orderBy (SortSpecification ... columns ) {
606
551
return orderBy (Arrays .asList (columns ));
@@ -631,5 +576,10 @@ protected QueryExpressionHavingBuilder getThis() {
631
576
protected HavingModel buildHavingModel () {
632
577
return super .buildModel ();
633
578
}
579
+
580
+ @ Override
581
+ public SelectDSL <R > getSelectDSL () {
582
+ return QueryExpressionDSL .this .getSelectDSL ();
583
+ }
634
584
}
635
585
}
0 commit comments