File tree Expand file tree Collapse file tree 4 files changed +5
-19
lines changed
src/main/java/org/mybatis/dynamic/sql Expand file tree Collapse file tree 4 files changed +5
-19
lines changed Original file line number Diff line number Diff line change @@ -263,25 +263,21 @@ static StringConstant stringConstant(String constant) {
263263 }
264264
265265 // functions
266- @ SafeVarargs
267266 static <T extends Number > Add <T > add (BindableColumn <T > firstColumn , BasicColumn secondColumn ,
268267 BasicColumn ... subsequentColumns ) {
269268 return Add .of (firstColumn , secondColumn , Arrays .asList (subsequentColumns ));
270269 }
271270
272- @ SafeVarargs
273271 static <T extends Number > Divide <T > divide (BindableColumn <T > firstColumn , BasicColumn secondColumn ,
274272 BasicColumn ... subsequentColumns ) {
275273 return Divide .of (firstColumn , secondColumn , Arrays .asList (subsequentColumns ));
276274 }
277275
278- @ SafeVarargs
279276 static <T extends Number > Multiply <T > multiply (BindableColumn <T > firstColumn , BasicColumn secondColumn ,
280277 BasicColumn ... subsequentColumns ) {
281278 return Multiply .of (firstColumn , secondColumn , Arrays .asList (subsequentColumns ));
282279 }
283280
284- @ SafeVarargs
285281 static <T extends Number > Subtract <T > subtract (BindableColumn <T > firstColumn , BasicColumn secondColumn ,
286282 BasicColumn ... subsequentColumns ) {
287283 return Subtract .of (firstColumn , secondColumn , Arrays .asList (subsequentColumns ));
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ public UpdateDSL<R> equalToWhenPresent(Supplier<T> valueSupplier) {
168168
169169 public class UpdateWhereBuilder extends AbstractWhereDSL <UpdateWhereBuilder > implements Buildable <R > {
170170
171- public < T > UpdateWhereBuilder () {
171+ public UpdateWhereBuilder () {
172172 super ();
173173 }
174174
Original file line number Diff line number Diff line change 11/**
2- * Copyright 2016-2017 the original author or authors.
2+ * Copyright 2016-2019 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.
1515 */
1616package org .mybatis .dynamic .sql .util ;
1717
18- import java .util .function .Function ;
19-
20- import org .mybatis .dynamic .sql .SqlColumn ;
21-
18+ @ FunctionalInterface
2219public interface InsertMapping {
23- <R > R mapColumn (Function <SqlColumn <?>, R > mapper );
24-
2520 <R > R accept (InsertMappingVisitor <R > visitor );
2621}
Original file line number Diff line number Diff line change 11/**
2- * Copyright 2016-2017 the original author or authors.
2+ * Copyright 2016-2019 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.
1515 */
1616package org .mybatis .dynamic .sql .util ;
1717
18- import java .util .function .Function ;
19-
20- import org .mybatis .dynamic .sql .SqlColumn ;
21-
18+ @ FunctionalInterface
2219public interface UpdateMapping {
23- <R > R mapColumn (Function <SqlColumn <?>, R > mapper );
24-
2520 <R > R accept (UpdateMappingVisitor <R > visitor );
2621}
You can’t perform that action at this time.
0 commit comments