1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.shardingsphere.mode.repository.standalone.jdbc.sql;
19
20 import com.fasterxml.jackson.annotation.JsonProperty;
21 import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
22 import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
23 import lombok.Getter;
24
25
26
27
28
29
30
31
32 @JacksonXmlRootElement(localName = "sql")
33 @Getter
34 public final class JDBCRepositorySQL {
35
36 @JsonProperty(required = true)
37 @JacksonXmlProperty(isAttribute = true)
38 private String type;
39
40 @JsonProperty(required = true)
41 @JacksonXmlProperty(localName = "driver-class-name", isAttribute = true)
42 private String driverClassName;
43
44 @JacksonXmlProperty(localName = "default", isAttribute = true)
45 private boolean isDefault;
46
47 @JsonProperty(required = true)
48 @JacksonXmlProperty(localName = "create-table")
49 private String createTableSQL;
50
51 @JsonProperty(required = true)
52 @JacksonXmlProperty(localName = "select-by-key")
53 private String selectByKeySQL;
54
55 @JsonProperty(required = true)
56 @JacksonXmlProperty(localName = "select-by-parent")
57 private String selectByParentKeySQL;
58
59 @JsonProperty(required = true)
60 @JacksonXmlProperty(localName = "insert")
61 private String insertSQL;
62
63 @JsonProperty(required = true)
64 @JacksonXmlProperty(localName = "update")
65 private String updateSQL;
66
67 @JsonProperty(required = true)
68 @JacksonXmlProperty(localName = "delete")
69 private String deleteSQL;
70 }