+ update
This commit is contained in:
parent
7154cdfe65
commit
55bc674063
@ -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;
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user