-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Expand file tree
/
Copy pathSubquery.java
More file actions
74 lines (59 loc) · 1.4 KB
/
Subquery.java
File metadata and controls
74 lines (59 loc) · 1.4 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*Copyright (C) 2020 Tencent. All rights reserved.
This source code is licensed under the Apache License Version 2.0.*/
package apijson.orm;
import java.util.List;
import java.util.Map;
/**子查询 配置
* @author Lemon
*/
public class Subquery<T, M extends Map<String, Object>, L extends List<Object>> {
private String path; // []/0/User
private String originKey; //id{}@
private M originValue; // { "from": "Comment", "Comment": {...} }
private String from; // Comment
private String range; // ANY, ALL
private String key; //id{}
private SQLConfig<T, M, L> config;
public String gainPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public String gainOriginKey() {
return originKey;
}
public void setOriginKey(String originKey) {
this.originKey = originKey;
}
public M gainOriginValue() {
return originValue;
}
public void setOriginValue(M originValue) {
this.originValue = originValue;
}
public String gainFrom() {
return from;
}
public void setFrom(String from) {
this.from = from;
}
public String gainRange() {
return range;
}
public void setRange(String range) {
this.range = range;
}
public String gainKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public SQLConfig<T, M, L> gainConfig() {
return config;
}
public void setConfig(SQLConfig<T, M, L> config) {
this.config = config;
}
}