Skip to content

Commit edd89a4

Browse files
committed
delete obsolete instance variables in Collection, Join, and PersistentClass
1 parent 9a6fc44 commit edd89a4

File tree

3 files changed

+0
-28
lines changed

3 files changed

+0
-28
lines changed

hibernate-core/src/main/java/org/hibernate/mapping/Collection.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,12 @@ public abstract sealed class Collection
9595

9696
private String customSQLInsert;
9797
private boolean customInsertCallable;
98-
private ExecuteUpdateResultCheckStyle insertCheckStyle;
9998
private String customSQLUpdate;
10099
private boolean customUpdateCallable;
101-
private ExecuteUpdateResultCheckStyle updateCheckStyle;
102100
private String customSQLDelete;
103101
private boolean customDeleteCallable;
104-
private ExecuteUpdateResultCheckStyle deleteCheckStyle;
105102
private String customSQLDeleteAll;
106103
private boolean customDeleteAllCallable;
107-
private ExecuteUpdateResultCheckStyle deleteAllCheckStyle;
108104

109105
private Column softDeleteColumn;
110106
private SoftDeleteType softDeleteStrategy;
@@ -171,16 +167,12 @@ protected Collection(Collection original) {
171167
this.synchronizedTables.addAll( original.synchronizedTables );
172168
this.customSQLInsert = original.customSQLInsert;
173169
this.customInsertCallable = original.customInsertCallable;
174-
this.insertCheckStyle = original.insertCheckStyle;
175170
this.customSQLUpdate = original.customSQLUpdate;
176171
this.customUpdateCallable = original.customUpdateCallable;
177-
this.updateCheckStyle = original.updateCheckStyle;
178172
this.customSQLDelete = original.customSQLDelete;
179173
this.customDeleteCallable = original.customDeleteCallable;
180-
this.deleteCheckStyle = original.deleteCheckStyle;
181174
this.customSQLDeleteAll = original.customSQLDeleteAll;
182175
this.customDeleteAllCallable = original.customDeleteAllCallable;
183-
this.deleteAllCheckStyle = original.deleteAllCheckStyle;
184176
this.insertExpectation = original.insertExpectation;
185177
this.updateExpectation = original.updateExpectation;
186178
this.deleteExpectation = original.deleteExpectation;
@@ -602,7 +594,6 @@ public void setQueryCacheLayout(CacheLayout queryCacheLayout) {
602594
public void setCustomSQLInsert(String customSQLInsert, boolean callable, ExecuteUpdateResultCheckStyle checkStyle) {
603595
this.customSQLInsert = customSQLInsert;
604596
this.customInsertCallable = callable;
605-
this.insertCheckStyle = checkStyle;
606597
this.insertExpectation = expectationConstructor( checkStyle );
607598
}
608599

@@ -617,7 +608,6 @@ public boolean isCustomInsertCallable() {
617608
public void setCustomSQLUpdate(String customSQLUpdate, boolean callable, ExecuteUpdateResultCheckStyle checkStyle) {
618609
this.customSQLUpdate = customSQLUpdate;
619610
this.customUpdateCallable = callable;
620-
this.updateCheckStyle = checkStyle;
621611
this.updateExpectation = expectationConstructor( checkStyle );
622612
}
623613

@@ -632,7 +622,6 @@ public boolean isCustomUpdateCallable() {
632622
public void setCustomSQLDelete(String customSQLDelete, boolean callable, ExecuteUpdateResultCheckStyle checkStyle) {
633623
this.customSQLDelete = customSQLDelete;
634624
this.customDeleteCallable = callable;
635-
this.deleteCheckStyle = checkStyle;
636625
this.deleteExpectation = expectationConstructor( checkStyle );
637626
}
638627

@@ -650,7 +639,6 @@ public void setCustomSQLDeleteAll(
650639
ExecuteUpdateResultCheckStyle checkStyle) {
651640
this.customSQLDeleteAll = customSQLDeleteAll;
652641
this.customDeleteAllCallable = callable;
653-
this.deleteAllCheckStyle = checkStyle;
654642
this.deleteAllExpectation = expectationConstructor( checkStyle );
655643
}
656644

@@ -662,10 +650,6 @@ public boolean isCustomDeleteAllCallable() {
662650
return customDeleteAllCallable;
663651
}
664652

665-
public ExecuteUpdateResultCheckStyle getCustomSQLDeleteAllCheckStyle() {
666-
return deleteAllCheckStyle;
667-
}
668-
669653
@Override
670654
public void addFilter(
671655
String name,

hibernate-core/src/main/java/org/hibernate/mapping/Join.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,10 @@ public class Join implements AttributeContainer, Serializable {
4141
// Custom SQL
4242
private String customSQLInsert;
4343
private boolean customInsertCallable;
44-
private ExecuteUpdateResultCheckStyle insertCheckStyle;
4544
private String customSQLUpdate;
4645
private boolean customUpdateCallable;
47-
private ExecuteUpdateResultCheckStyle updateCheckStyle;
4846
private String customSQLDelete;
4947
private boolean customDeleteCallable;
50-
private ExecuteUpdateResultCheckStyle deleteCheckStyle;
5148

5249
private Supplier<? extends Expectation> insertExpectation;
5350
private Supplier<? extends Expectation> updateExpectation;
@@ -139,7 +136,6 @@ public int getPropertySpan() {
139136
public void setCustomSQLInsert(String customSQLInsert, boolean callable, ExecuteUpdateResultCheckStyle checkStyle) {
140137
this.customSQLInsert = customSQLInsert;
141138
this.customInsertCallable = callable;
142-
this.insertCheckStyle = checkStyle;
143139
this.insertExpectation = expectationConstructor( checkStyle );
144140
}
145141

@@ -154,7 +150,6 @@ public boolean isCustomInsertCallable() {
154150
public void setCustomSQLUpdate(String customSQLUpdate, boolean callable, ExecuteUpdateResultCheckStyle checkStyle) {
155151
this.customSQLUpdate = customSQLUpdate;
156152
this.customUpdateCallable = callable;
157-
this.updateCheckStyle = checkStyle;
158153
this.updateExpectation = expectationConstructor( checkStyle );
159154
}
160155

@@ -169,7 +164,6 @@ public boolean isCustomUpdateCallable() {
169164
public void setCustomSQLDelete(String customSQLDelete, boolean callable, ExecuteUpdateResultCheckStyle checkStyle) {
170165
this.customSQLDelete = customSQLDelete;
171166
this.customDeleteCallable = callable;
172-
this.deleteCheckStyle = checkStyle;
173167
this.deleteExpectation = expectationConstructor( checkStyle );
174168
}
175169

hibernate-core/src/main/java/org/hibernate/mapping/PersistentClass.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,10 @@ public abstract sealed class PersistentClass
108108
// Custom SQL
109109
private String customSQLInsert;
110110
private boolean customInsertCallable;
111-
private ExecuteUpdateResultCheckStyle insertCheckStyle;
112111
private String customSQLUpdate;
113112
private boolean customUpdateCallable;
114-
private ExecuteUpdateResultCheckStyle updateCheckStyle;
115113
private String customSQLDelete;
116114
private boolean customDeleteCallable;
117-
private ExecuteUpdateResultCheckStyle deleteCheckStyle;
118115

119116
private MappedSuperclass superMappedSuperclass;
120117
private Component declaredIdentifierMapper;
@@ -767,7 +764,6 @@ public List<Property> getUnjoinedProperties() {
767764
public void setCustomSQLInsert(String customSQLInsert, boolean callable, ExecuteUpdateResultCheckStyle checkStyle) {
768765
this.customSQLInsert = customSQLInsert;
769766
this.customInsertCallable = callable;
770-
this.insertCheckStyle = checkStyle;
771767
this.insertExpectation = expectationConstructor( checkStyle );
772768
}
773769

@@ -782,7 +778,6 @@ public boolean isCustomInsertCallable() {
782778
public void setCustomSQLUpdate(String customSQLUpdate, boolean callable, ExecuteUpdateResultCheckStyle checkStyle) {
783779
this.customSQLUpdate = customSQLUpdate;
784780
this.customUpdateCallable = callable;
785-
this.updateCheckStyle = checkStyle;
786781
this.updateExpectation = expectationConstructor( checkStyle );
787782
}
788783

@@ -797,7 +792,6 @@ public boolean isCustomUpdateCallable() {
797792
public void setCustomSQLDelete(String customSQLDelete, boolean callable, ExecuteUpdateResultCheckStyle checkStyle) {
798793
this.customSQLDelete = customSQLDelete;
799794
this.customDeleteCallable = callable;
800-
this.deleteCheckStyle = checkStyle;
801795
this.deleteExpectation = expectationConstructor( checkStyle );
802796
}
803797

0 commit comments

Comments
 (0)