1
1
/*
2
- * Copyright 2016-2020 the original author or authors.
2
+ * Copyright 2016-2021 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
32
32
33
33
public class InsertDSL <T > implements Buildable <InsertModel <T >> {
34
34
35
- private final T record ;
35
+ private final T row ;
36
36
private final SqlTable table ;
37
37
private final List <AbstractColumnMapping > columnMappings = new ArrayList <>();
38
38
39
- private InsertDSL (T record , SqlTable table ) {
40
- this .record = record ;
39
+ private InsertDSL (T row , SqlTable table ) {
40
+ this .row = row ;
41
41
this .table = table ;
42
42
}
43
43
@@ -48,25 +48,25 @@ public <F> ColumnMappingFinisher<F> map(SqlColumn<F> column) {
48
48
@ NotNull
49
49
@ Override
50
50
public InsertModel <T > build () {
51
- return InsertModel .withRecord ( record )
51
+ return InsertModel .withRow ( row )
52
52
.withTable (table )
53
53
.withColumnMappings (columnMappings )
54
54
.build ();
55
55
}
56
56
57
- public static <T > IntoGatherer <T > insert (T record ) {
58
- return new IntoGatherer <>(record );
57
+ public static <T > IntoGatherer <T > insert (T row ) {
58
+ return new IntoGatherer <>(row );
59
59
}
60
60
61
61
public static class IntoGatherer <T > {
62
- private final T record ;
62
+ private final T row ;
63
63
64
- private IntoGatherer (T record ) {
65
- this .record = record ;
64
+ private IntoGatherer (T row ) {
65
+ this .row = row ;
66
66
}
67
67
68
68
public InsertDSL <T > into (SqlTable table ) {
69
- return new InsertDSL <>(record , table );
69
+ return new InsertDSL <>(row , table );
70
70
}
71
71
}
72
72
0 commit comments