File tree Expand file tree Collapse file tree 7 files changed +16
-16
lines changed
main/java/org/mybatis/dynamic/sql
test/java/org/mybatis/dynamic/sql/util Expand file tree Collapse file tree 7 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 26
26
import org .mybatis .dynamic .sql .util .StringConstantMapping ;
27
27
import org .mybatis .dynamic .sql .util .ValueMapping ;
28
28
29
- public class GeneralInsertValuePhraseVisitor implements GeneralInsertMappingVisitor <FieldAndValueAndParameters > {
29
+ public class GeneralInsertValuePhraseVisitor extends GeneralInsertMappingVisitor <FieldAndValueAndParameters > {
30
30
31
31
protected RenderingStrategy renderingStrategy ;
32
32
private AtomicInteger sequence = new AtomicInteger (1 );
Original file line number Diff line number Diff line change 25
25
import org .mybatis .dynamic .sql .util .PropertyMapping ;
26
26
import org .mybatis .dynamic .sql .util .StringConstantMapping ;
27
27
28
- public class ValuePhraseVisitor implements InsertMappingVisitor <FieldAndValue > {
28
+ public class ValuePhraseVisitor extends InsertMappingVisitor <FieldAndValue > {
29
29
30
30
protected RenderingStrategy renderingStrategy ;
31
31
Original file line number Diff line number Diff line change 33
33
import org .mybatis .dynamic .sql .util .UpdateMappingVisitor ;
34
34
import org .mybatis .dynamic .sql .util .ValueMapping ;
35
35
36
- public class SetPhraseVisitor implements UpdateMappingVisitor <FragmentAndParameters > {
36
+ public class SetPhraseVisitor extends UpdateMappingVisitor <FragmentAndParameters > {
37
37
38
38
private AtomicInteger sequence ;
39
39
private RenderingStrategy renderingStrategy ;
Original file line number Diff line number Diff line change 15
15
*/
16
16
package org .mybatis .dynamic .sql .util ;
17
17
18
- public interface GeneralInsertMappingVisitor <T > extends ColumnMappingVisitor <T > {
18
+ public abstract class GeneralInsertMappingVisitor <T > implements ColumnMappingVisitor <T > {
19
19
@ Override
20
- default T visit (SelectMapping mapping ) {
20
+ public final T visit (SelectMapping mapping ) {
21
21
throw new UnsupportedOperationException ();
22
22
}
23
23
24
24
@ Override
25
- default T visit (PropertyMapping mapping ) {
25
+ public final T visit (PropertyMapping mapping ) {
26
26
throw new UnsupportedOperationException ();
27
27
}
28
28
29
29
@ Override
30
- default T visit (ColumnToColumnMapping columnMapping ) {
30
+ public final T visit (ColumnToColumnMapping columnMapping ) {
31
31
throw new UnsupportedOperationException ();
32
32
}
33
33
}
Original file line number Diff line number Diff line change 15
15
*/
16
16
package org .mybatis .dynamic .sql .util ;
17
17
18
- public interface InsertMappingVisitor <T > extends ColumnMappingVisitor <T > {
18
+ public abstract class InsertMappingVisitor <T > implements ColumnMappingVisitor <T > {
19
19
@ Override
20
- default <R > T visit (ValueMapping <R > mapping ) {
20
+ public final <R > T visit (ValueMapping <R > mapping ) {
21
21
throw new UnsupportedOperationException ();
22
22
}
23
23
24
24
@ Override
25
- default T visit (SelectMapping mapping ) {
25
+ public final T visit (SelectMapping mapping ) {
26
26
throw new UnsupportedOperationException ();
27
27
}
28
28
29
29
@ Override
30
- default T visit (ColumnToColumnMapping columnMapping ) {
30
+ public final T visit (ColumnToColumnMapping columnMapping ) {
31
31
throw new UnsupportedOperationException ();
32
32
}
33
33
}
Original file line number Diff line number Diff line change 15
15
*/
16
16
package org .mybatis .dynamic .sql .util ;
17
17
18
- public interface UpdateMappingVisitor <T > extends ColumnMappingVisitor <T > {
18
+ public abstract class UpdateMappingVisitor <T > implements ColumnMappingVisitor <T > {
19
19
@ Override
20
- default T visit (PropertyMapping mapping ) {
20
+ public final T visit (PropertyMapping mapping ) {
21
21
throw new UnsupportedOperationException ();
22
22
}
23
23
}
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ public TestTable() {
99
99
}
100
100
}
101
101
102
- private static class GeneralInsertVisitor implements GeneralInsertMappingVisitor <String > {
102
+ private static class GeneralInsertVisitor extends GeneralInsertMappingVisitor <String > {
103
103
@ Override
104
104
public String visit (NullMapping mapping ) {
105
105
return "Null Mapping" ;
@@ -121,7 +121,7 @@ public <R> String visit(ValueMapping<R> mapping) {
121
121
}
122
122
}
123
123
124
- private static class InsertVisitor implements InsertMappingVisitor <String > {
124
+ private static class InsertVisitor extends InsertMappingVisitor <String > {
125
125
@ Override
126
126
public String visit (NullMapping mapping ) {
127
127
return "Null Mapping" ;
@@ -143,7 +143,7 @@ public String visit(PropertyMapping mapping) {
143
143
}
144
144
}
145
145
146
- private static class UpdateVisitor implements UpdateMappingVisitor <String > {
146
+ private static class UpdateVisitor extends UpdateMappingVisitor <String > {
147
147
@ Override
148
148
public String visit (NullMapping mapping ) {
149
149
return "Null Mapping" ;
You can’t perform that action at this time.
0 commit comments