Skip to content

Commit d7e6562

Browse files
committed
Consistent naming
1 parent a0bf4e5 commit d7e6562

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

src/main/java/org/mybatis/dynamic/sql/SqlBuilder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,20 +111,20 @@ static <T> InsertDSL.IntoGatherer<T> insert(T record) {
111111
}
112112

113113
@SafeVarargs
114-
static <T> BatchInsertDSL.BatchIntoGatherer<T> insert(T...records) {
114+
static <T> BatchInsertDSL.IntoGatherer<T> insert(T...records) {
115115
return BatchInsertDSL.insert(records);
116116
}
117117

118-
static <T> BatchInsertDSL.BatchIntoGatherer<T> insert(Collection<T> records) {
118+
static <T> BatchInsertDSL.IntoGatherer<T> insert(Collection<T> records) {
119119
return BatchInsertDSL.insert(records);
120120
}
121121

122122
@SafeVarargs
123-
static <T> MultiRowInsertDSL.MultiRowIntoGatherer<T> insertMultiple(T...records) {
123+
static <T> MultiRowInsertDSL.IntoGatherer<T> insertMultiple(T...records) {
124124
return MultiRowInsertDSL.insert(records);
125125
}
126126

127-
static <T> MultiRowInsertDSL.MultiRowIntoGatherer<T> insertMultiple(Collection<T> records) {
127+
static <T> MultiRowInsertDSL.IntoGatherer<T> insertMultiple(Collection<T> records) {
128128
return MultiRowInsertDSL.insert(records);
129129
}
130130

src/main/java/org/mybatis/dynamic/sql/insert/BatchInsertDSL.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ private BatchInsertDSL(Collection<T> records, SqlTable table) {
3939
this.table = table;
4040
}
4141

42-
public <F> BatchColumnMappingFinisher<F> map(SqlColumn<F> column) {
43-
return new BatchColumnMappingFinisher<>(column);
42+
public <F> ColumnMappingFinisher<F> map(SqlColumn<F> column) {
43+
return new ColumnMappingFinisher<>(column);
4444
}
4545

4646
public BatchInsertModel<T> build() {
@@ -51,18 +51,18 @@ public BatchInsertModel<T> build() {
5151
}
5252

5353
@SafeVarargs
54-
public static <T> BatchIntoGatherer<T> insert(T...records) {
55-
return new BatchIntoGatherer<>(Arrays.asList(records));
54+
public static <T> IntoGatherer<T> insert(T...records) {
55+
return BatchInsertDSL.insert(Arrays.asList(records));
5656
}
5757

58-
public static <T> BatchIntoGatherer<T> insert(Collection<T> records) {
59-
return new BatchIntoGatherer<>(records);
58+
public static <T> IntoGatherer<T> insert(Collection<T> records) {
59+
return new IntoGatherer<>(records);
6060
}
6161

62-
public static class BatchIntoGatherer<T> {
62+
public static class IntoGatherer<T> {
6363
private Collection<T> records;
6464

65-
private BatchIntoGatherer(Collection<T> records) {
65+
private IntoGatherer(Collection<T> records) {
6666
this.records = records;
6767
}
6868

@@ -71,10 +71,10 @@ public BatchInsertDSL<T> into(SqlTable table) {
7171
}
7272
}
7373

74-
public class BatchColumnMappingFinisher<F> {
74+
public class ColumnMappingFinisher<F> {
7575
private SqlColumn<F> column;
7676

77-
public BatchColumnMappingFinisher(SqlColumn<F> column) {
77+
public ColumnMappingFinisher(SqlColumn<F> column) {
7878
this.column = column;
7979
}
8080

src/main/java/org/mybatis/dynamic/sql/insert/MultiRowInsertDSL.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,18 @@ public MultiRowInsertModel<T> build() {
5151
}
5252

5353
@SafeVarargs
54-
public static <T> MultiRowIntoGatherer<T> insert(T...records) {
55-
return new MultiRowIntoGatherer<>(Arrays.asList(records));
54+
public static <T> IntoGatherer<T> insert(T...records) {
55+
return MultiRowInsertDSL.insert(Arrays.asList(records));
5656
}
5757

58-
public static <T> MultiRowIntoGatherer<T> insert(Collection<T> records) {
59-
return new MultiRowIntoGatherer<>(records);
58+
public static <T> IntoGatherer<T> insert(Collection<T> records) {
59+
return new IntoGatherer<>(records);
6060
}
6161

62-
public static class MultiRowIntoGatherer<T> {
62+
public static class IntoGatherer<T> {
6363
private Collection<T> records;
6464

65-
private MultiRowIntoGatherer(Collection<T> records) {
65+
private IntoGatherer(Collection<T> records) {
6666
this.records = records;
6767
}
6868

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy