11/*
2- * Copyright 2016-2020 the original author or authors.
2+ * Copyright 2016-2021 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
3232
3333public class InsertDSL <T > implements Buildable <InsertModel <T >> {
3434
35- private final T record ;
35+ private final T row ;
3636 private final SqlTable table ;
3737 private final List <AbstractColumnMapping > columnMappings = new ArrayList <>();
3838
39- private InsertDSL (T record , SqlTable table ) {
40- this .record = record ;
39+ private InsertDSL (T row , SqlTable table ) {
40+ this .row = row ;
4141 this .table = table ;
4242 }
4343
@@ -48,25 +48,25 @@ public <F> ColumnMappingFinisher<F> map(SqlColumn<F> column) {
4848 @ NotNull
4949 @ Override
5050 public InsertModel <T > build () {
51- return InsertModel .withRecord ( record )
51+ return InsertModel .withRow ( row )
5252 .withTable (table )
5353 .withColumnMappings (columnMappings )
5454 .build ();
5555 }
5656
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 );
5959 }
6060
6161 public static class IntoGatherer <T > {
62- private final T record ;
62+ private final T row ;
6363
64- private IntoGatherer (T record ) {
65- this .record = record ;
64+ private IntoGatherer (T row ) {
65+ this .row = row ;
6666 }
6767
6868 public InsertDSL <T > into (SqlTable table ) {
69- return new InsertDSL <>(record , table );
69+ return new InsertDSL <>(row , table );
7070 }
7171 }
7272
0 commit comments