19
19
import java .util .Collection ;
20
20
import java .util .List ;
21
21
import java .util .Objects ;
22
- import java .util .function .Consumer ;
23
22
import java .util .function .Supplier ;
24
23
25
24
import org .jetbrains .annotations .NotNull ;
28
27
import org .mybatis .dynamic .sql .configuration .StatementConfiguration ;
29
28
import org .mybatis .dynamic .sql .util .AbstractColumnMapping ;
30
29
import org .mybatis .dynamic .sql .util .Buildable ;
31
- import org .mybatis .dynamic .sql .util .ConfigurableStatement ;
32
30
import org .mybatis .dynamic .sql .util .ConstantMapping ;
33
31
import org .mybatis .dynamic .sql .util .NullMapping ;
34
32
import org .mybatis .dynamic .sql .util .StringConstantMapping ;
35
33
import org .mybatis .dynamic .sql .util .ValueMapping ;
36
34
import org .mybatis .dynamic .sql .util .ValueOrNullMapping ;
37
35
import org .mybatis .dynamic .sql .util .ValueWhenPresentMapping ;
38
36
39
- public class GeneralInsertDSL implements Buildable <GeneralInsertModel >, ConfigurableStatement < GeneralInsertDSL > {
37
+ public class GeneralInsertDSL implements Buildable <GeneralInsertModel > {
40
38
private final List <AbstractColumnMapping > columnMappings ;
41
39
private final SqlTable table ;
42
- private final StatementConfiguration statementConfiguration = new StatementConfiguration ();
43
40
44
41
private GeneralInsertDSL (Builder builder ) {
45
42
table = Objects .requireNonNull (builder .table );
@@ -56,20 +53,14 @@ public GeneralInsertModel build() {
56
53
return new GeneralInsertModel .Builder ()
57
54
.withTable (table )
58
55
.withInsertMappings (columnMappings )
59
- .withStatementConfiguration (statementConfiguration )
56
+ .withStatementConfiguration (new StatementConfiguration ()) // nothing configurable in this statement yet
60
57
.build ();
61
58
}
62
59
63
60
public static GeneralInsertDSL insertInto (SqlTable table ) {
64
61
return new GeneralInsertDSL .Builder ().withTable (table ).build ();
65
62
}
66
63
67
- @ Override
68
- public GeneralInsertDSL configureStatement (Consumer <StatementConfiguration > consumer ) {
69
- consumer .accept (statementConfiguration );
70
- return this ;
71
- }
72
-
73
64
public class SetClauseFinisher <T > {
74
65
75
66
private final SqlColumn <T > column ;
0 commit comments