Skip to content

Commit ce15d54

Browse files
committed
Renaming method
1 parent d92ced9 commit ce15d54

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

doma-core/src/main/java/org/seasar/doma/jdbc/dialect/H2UpsertAssembler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void assemble() {
4444
for (EntityPropertyType<?, ?> key : keys) {
4545
targetColumn(key);
4646
buf.appendSql(" = ");
47-
assignmentColumn(key);
47+
excludeColumn(key);
4848
buf.appendSql(" and ");
4949
}
5050
buf.cutBackSql(5);
@@ -56,7 +56,7 @@ public void assemble() {
5656
buf.cutBackSql(2);
5757
buf.appendSql(") values (");
5858
for (Tuple2<EntityPropertyType<?, ?>, InParameter<?>> insertValue : insertValues) {
59-
assignmentColumn(insertValue.component1());
59+
excludeColumn(insertValue.component1());
6060
buf.appendSql(", ");
6161
}
6262
buf.cutBackSql(2);
@@ -114,7 +114,7 @@ private void targetColumn(EntityPropertyType<?, ?> propertyType) {
114114
buf.appendSql(sql);
115115
}
116116

117-
private void assignmentColumn(EntityPropertyType<?, ?> propertyType) {
117+
private void excludeColumn(EntityPropertyType<?, ?> propertyType) {
118118
String sql =
119119
this.upsertAssemblerSupport.excludeProp(
120120
propertyType, UpsertAssemblerSupport.ColumnNameType.NAME_ALIAS);

doma-core/src/main/java/org/seasar/doma/jdbc/dialect/MssqlUpsertAssembler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void assemble() {
4242
for (EntityPropertyType<?, ?> key : keys) {
4343
targetColumn(key);
4444
buf.appendSql(" = ");
45-
assignmentColumn(key);
45+
excludeColumn(key);
4646
buf.appendSql(" and ");
4747
}
4848
buf.cutBackSql(5);
@@ -54,7 +54,7 @@ public void assemble() {
5454
buf.cutBackSql(2);
5555
buf.appendSql(") values (");
5656
for (Tuple2<EntityPropertyType<?, ?>, InParameter<?>> insertValue : insertValues) {
57-
assignmentColumn(insertValue.component1());
57+
excludeColumn(insertValue.component1());
5858
buf.appendSql(", ");
5959
}
6060
buf.cutBackSql(2);
@@ -109,7 +109,7 @@ private void targetColumn(EntityPropertyType<?, ?> propertyType) {
109109
buf.appendSql(sql);
110110
}
111111

112-
private void assignmentColumn(EntityPropertyType<?, ?> propertyType) {
112+
private void excludeColumn(EntityPropertyType<?, ?> propertyType) {
113113
String sql =
114114
this.upsertAssemblerSupport.excludeProp(
115115
propertyType, UpsertAssemblerSupport.ColumnNameType.NAME_ALIAS);

doma-core/src/main/java/org/seasar/doma/jdbc/dialect/OracleUpsertAssembler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void assemble() {
4444
for (EntityPropertyType<?, ?> key : keys) {
4545
targetColumn(key);
4646
buf.appendSql(" = ");
47-
assignmentColumn(key);
47+
excludeColumn(key);
4848
buf.appendSql(" and ");
4949
}
5050
buf.cutBackSql(5);
@@ -56,7 +56,7 @@ public void assemble() {
5656
buf.cutBackSql(2);
5757
buf.appendSql(") values (");
5858
for (Tuple2<EntityPropertyType<?, ?>, InParameter<?>> insertValue : insertValues) {
59-
assignmentColumn(insertValue.component1());
59+
excludeColumn(insertValue.component1());
6060
buf.appendSql(", ");
6161
}
6262
buf.cutBackSql(2);
@@ -104,7 +104,7 @@ private void targetColumn(EntityPropertyType<?, ?> propertyType) {
104104
buf.appendSql(sql);
105105
}
106106

107-
private void assignmentColumn(EntityPropertyType<?, ?> propertyType) {
107+
private void excludeColumn(EntityPropertyType<?, ?> propertyType) {
108108
String sql =
109109
this.upsertAssemblerSupport.excludeProp(
110110
propertyType, UpsertAssemblerSupport.ColumnNameType.NAME_ALIAS);

0 commit comments

Comments
 (0)