-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathInsert.java
More file actions
43 lines (35 loc) · 933 Bytes
/
Copy pathInsert.java
File metadata and controls
43 lines (35 loc) · 933 Bytes
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
package jaskell.sql;
import jaskell.script.Directive;
import jaskell.script.Parameter;
import java.util.ArrayList;
import java.util.List;
public class Insert implements Directive {
@Override
public String script() {
return "INSERT";
}
@Override
public List<Parameter<?>> parameters() {
return new ArrayList<>();
}
public Into into(String name) {
Into re = new Into(name);
re._prefix = this;
return re;
}
public Into into(String name, String fields) {
Into re = new Into(name, fields);
re._prefix = this;
return re;
}
public Into into(String name, String ... fields) {
Into re = new Into(name, fields);
re._prefix = this;
return re;
}
public Into into(String name, Directive ... fields) {
Into re = new Into(name, fields);
re._prefix = this;
return re;
}
}