1 package liquibase.ext.spatial.statement;
2
3 import liquibase.statement.AbstractSqlStatement;
4
5
6
7
8
9 public class CreateSpatialIndexStatement extends AbstractSqlStatement {
10
11 private final String tableCatalogName;
12 private final String tableSchemaName;
13 private final String indexName;
14 private final String tableName;
15 private final String[] columns;
16 private String tablespace;
17
18
19 private String geometryType;
20
21
22 private Integer srid;
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 public CreateSpatialIndexStatement(final String indexName, final String tableCatalogName,
40 final String tableSchemaName, final String tableName, final String[] columns,
41 final String tablespace, final String geometryType, final Integer srid) {
42 this.indexName = indexName;
43 this.tableCatalogName = tableCatalogName;
44 this.tableSchemaName = tableSchemaName;
45 this.tableName = tableName;
46 this.columns = columns.clone();
47 this.tablespace = tablespace;
48 this.geometryType = geometryType;
49 this.srid = srid;
50 }
51
52 public String getTableCatalogName() {
53 return this.tableCatalogName;
54 }
55
56 public String getTableSchemaName() {
57 return this.tableSchemaName;
58 }
59
60 public String getIndexName() {
61 return this.indexName;
62 }
63
64 public String getTableName() {
65 return this.tableName;
66 }
67
68 public String[] getColumns() {
69 return this.columns;
70 }
71
72 public String getTablespace() {
73 return this.tablespace;
74 }
75
76 public CreateSpatialIndexStatement setTablespace(final String tablespace) {
77 this.tablespace = tablespace;
78 return this;
79 }
80
81
82
83
84
85
86
87 public void setGeometryType(final String geometryType) {
88 this.geometryType = geometryType;
89 }
90
91
92
93
94
95
96 public String getGeometryType() {
97 return this.geometryType;
98 }
99
100
101
102
103
104
105
106 public void setSrid(final Integer srid) {
107 this.srid = srid;
108 }
109
110
111
112
113
114
115 public Integer getSrid() {
116 return this.srid;
117 }
118 }