-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDo.java
More file actions
58 lines (46 loc) · 1.37 KB
/
Copy pathDo.java
File metadata and controls
58 lines (46 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package jaskell.sql;
import jaskell.script.Directive;
import jaskell.script.Parameter;
import java.util.List;
public class Do implements Directive {
Directive _prefix;
@Override
public String script() {
return String.format("%s DO", _prefix.script());
}
@Override
public List<Parameter<?>> parameters() {
return _prefix.parameters();
}
public Nothing nothing(){
Nothing re = new Nothing();
re._prefix = this;
return re;
}
public Update update(){
Update re = new Update();
re._prefix = this;
return re;
}
public static class Update implements Directive {
Directive _prefix;
@Override
public String script() {
return String.format("%s UPDATE", _prefix.script());
}
@Override
public List<Parameter<?>> parameters() {
return _prefix.parameters();
}
public jaskell.sql.Update.Set set(String field, Directive value){
jaskell.sql.Update.Set re = new jaskell.sql.Update.Set(field, value);
re._prefix = this;
return re;
}
public jaskell.sql.Update.Set set(Directive field, Directive value){
jaskell.sql.Update.Set re = new jaskell.sql.Update.Set(field, value);
re._prefix = this;
return re;
}
}
}