-
Notifications
You must be signed in to change notification settings - Fork 397
Expand file tree
/
Copy pathSQLite3SetClause.java
More file actions
54 lines (40 loc) · 1.37 KB
/
SQLite3SetClause.java
File metadata and controls
54 lines (40 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
package sqlancer.sqlite3.ast;
import sqlancer.Randomly;
import sqlancer.sqlite3.schema.SQLite3Schema.SQLite3Column.SQLite3CollateSequence;
public class SQLite3SetClause extends SQLite3Expression {
private final SQLite3Expression left;
private final SQLite3Expression right;
private final SQLite3ClauseType type;
public enum SQLite3ClauseType {
UNION("UNION"), UNION_ALL("UNION ALL"), INTERSECT("INTERSECT"), EXCEPT("EXCEPT");
private final String textRepresentation;
SQLite3ClauseType(String textRepresentation) {
this.textRepresentation = textRepresentation;
}
public static SQLite3ClauseType getRandom() {
return Randomly.fromOptions(values());
}
public String getTextRepresentation() {
return textRepresentation;
}
}
public SQLite3SetClause(SQLite3Expression left, SQLite3Expression right, SQLite3ClauseType type) {
this.left = left;
this.right = right;
this.type = type;
}
public SQLite3Expression getLeft() {
return left;
}
public SQLite3Expression getRight() {
return right;
}
public SQLite3ClauseType getType() {
return type;
}
@Override
public SQLite3CollateSequence getExplicitCollateSequence() {
// TODO Auto-generated method stub
return null;
}
}