This commit is contained in:
坏黑 2019-11-05 11:19:37 +08:00
parent 7154cdfe65
commit 55bc674063
2 changed files with 12 additions and 0 deletions

View File

@ -31,6 +31,10 @@ public class QueryDelete {
return this; return this;
} }
public void run(DataSource dataSource) {
to(dataSource).run();
}
public RunnableUpdate to(DataSource dataSource) { public RunnableUpdate to(DataSource dataSource) {
return new RunnableUpdate(toQuery()).dataSource(dataSource).statement(s -> { return new RunnableUpdate(toQuery()).dataSource(dataSource).statement(s -> {
int index = 1; int index = 1;

View File

@ -35,10 +35,18 @@ public class Where {
return new Where(row, "=", value); return new Where(row, "=", value);
} }
public static Where equals(String row, Object value) {
return new Where(row, "=", value);
}
public static Where isNot(String row, Object value) { public static Where isNot(String row, Object value) {
return new Where(row, "<>", value); return new Where(row, "<>", value);
} }
public static Where equalsNot(String row, Object value) {
return new Where(row, "<>", value);
}
public static Where more(String row, Object value) { public static Where more(String row, Object value) {
return new Where(row, ">", value); return new Where(row, ">", value);
} }