@@ -32,10 +32,10 @@ public class DeleteDSL<R> extends AbstractWhereSupport<DeleteDSL<R>.DeleteWhereB
32
32
private final String tableAlias ;
33
33
private final DeleteWhereBuilder whereBuilder = new DeleteWhereBuilder ();
34
34
35
- private DeleteDSL (SqlTable table , Function <DeleteModel , R > adapterFunction , String tableAlias ) {
35
+ private DeleteDSL (SqlTable table , String tableAlias , Function <DeleteModel , R > adapterFunction ) {
36
36
this .table = Objects .requireNonNull (table );
37
- this .adapterFunction = Objects .requireNonNull (adapterFunction );
38
37
this .tableAlias = tableAlias ;
38
+ this .adapterFunction = Objects .requireNonNull (adapterFunction );
39
39
}
40
40
41
41
@ Override
@@ -59,16 +59,16 @@ public R build() {
59
59
return adapterFunction .apply (deleteModel );
60
60
}
61
61
62
- public static <R > DeleteDSL <R > deleteFrom (Function <DeleteModel , R > adapterFunction , SqlTable table ) {
63
- return new DeleteDSL <>(table , adapterFunction , null );
62
+ public static <R > DeleteDSL <R > deleteFrom (Function <DeleteModel , R > adapterFunction , SqlTable table , String tableAlias ) {
63
+ return new DeleteDSL <>(table , tableAlias , adapterFunction );
64
64
}
65
65
66
66
public static DeleteDSL <DeleteModel > deleteFrom (SqlTable table ) {
67
- return deleteFrom (Function .identity (), table );
67
+ return deleteFrom (Function .identity (), table , null );
68
68
}
69
69
70
70
public static DeleteDSL <DeleteModel > deleteFrom (SqlTable table , String tableAlias ) {
71
- return new DeleteDSL <>( table , Function .identity (), tableAlias );
71
+ return deleteFrom ( Function .identity (), table , tableAlias );
72
72
}
73
73
74
74
public class DeleteWhereBuilder extends AbstractWhereDSL <DeleteWhereBuilder > implements Buildable <R > {
0 commit comments