File tree Expand file tree Collapse file tree 2 files changed +7
-19
lines changed
src/main/java/org/mybatis/dynamic/sql Expand file tree Collapse file tree 2 files changed +7
-19
lines changed Original file line number Diff line number Diff line change 19
19
import org .mybatis .dynamic .sql .CriteriaGroup ;
20
20
import org .mybatis .dynamic .sql .util .Buildable ;
21
21
22
- public class HavingDSL extends AbstractHavingStarter <HavingDSL .StandaloneHavingFinisher >
23
- implements Buildable <HavingModel > {
22
+ public class HavingDSL extends AbstractHavingStarter <HavingDSL .StandaloneHavingFinisher > {
24
23
private StandaloneHavingFinisher havingFinisher ;
25
24
26
25
@ Override
@@ -32,15 +31,11 @@ protected StandaloneHavingFinisher having() {
32
31
return havingFinisher ;
33
32
}
34
33
35
- @ NotNull
36
- @ Override
37
- public HavingModel build () {
38
- return havingFinisher .buildModel ();
39
- }
40
-
41
- public class StandaloneHavingFinisher extends AbstractHavingFinisher <StandaloneHavingFinisher >
34
+ public static class StandaloneHavingFinisher extends AbstractHavingFinisher <StandaloneHavingFinisher >
42
35
implements Buildable <HavingModel > {
43
36
37
+ private StandaloneHavingFinisher () {}
38
+
44
39
@ Override
45
40
protected StandaloneHavingFinisher getThis () {
46
41
return this ;
@@ -49,7 +44,7 @@ protected StandaloneHavingFinisher getThis() {
49
44
@ NotNull
50
45
@ Override
51
46
public HavingModel build () {
52
- return HavingDSL . this . build ();
47
+ return buildModel ();
53
48
}
54
49
55
50
public HavingApplier toHavingApplier () {
Original file line number Diff line number Diff line change 22
22
import org .mybatis .dynamic .sql .configuration .StatementConfiguration ;
23
23
import org .mybatis .dynamic .sql .util .Buildable ;
24
24
25
- public class WhereDSL extends AbstractWhereStarter <WhereDSL .StandaloneWhereFinisher , WhereDSL >
26
- implements Buildable <WhereModel > {
25
+ public class WhereDSL extends AbstractWhereStarter <WhereDSL .StandaloneWhereFinisher , WhereDSL > {
27
26
private StandaloneWhereFinisher whereBuilder ;
28
27
private final StatementConfiguration statementConfiguration = new StatementConfiguration ();
29
28
@@ -37,12 +36,6 @@ public StandaloneWhereFinisher where() {
37
36
return whereBuilder ;
38
37
}
39
38
40
- @ NotNull
41
- @ Override
42
- public WhereModel build () {
43
- return whereBuilder .buildModel ();
44
- }
45
-
46
39
@ Override
47
40
public WhereDSL configureStatement (Consumer <StatementConfiguration > consumer ) {
48
41
consumer .accept (statementConfiguration );
@@ -63,7 +56,7 @@ protected StandaloneWhereFinisher getThis() {
63
56
@ NotNull
64
57
@ Override
65
58
public WhereModel build () {
66
- return WhereDSL . this . build ();
59
+ return buildModel ();
67
60
}
68
61
69
62
public WhereApplier toWhereApplier () {
You can’t perform that action at this time.
0 commit comments