1 package liquibase.statement.core;
2
3 import liquibase.statement.AbstractSqlStatement;
4
5 public class CreateIndexStatement extends AbstractSqlStatement {
6
7 private String tableSchemaName;
8 private String indexName;
9 private String tableName;
10 private String[] columns;
11 private String tablespace;
12 private Boolean unique;
13
14
15 private String associatedWith;
16
17 public CreateIndexStatement(String indexName, String tableSchemaName, String tableName, Boolean isUnique,
18 String associatedWith, String... columns) {
19 this.indexName = indexName;
20 this.tableSchemaName = tableSchemaName;
21 this.tableName = tableName;
22 this.columns = columns;
23 this.unique = isUnique;
24 this.associatedWith = associatedWith;
25 }
26
27 public String getTableSchemaName() {
28 return tableSchemaName;
29 }
30
31 public String getIndexName() {
32 return indexName;
33 }
34
35 public String getTableName() {
36 return tableName;
37 }
38
39 public String[] getColumns() {
40 return columns;
41 }
42
43 public String getTablespace() {
44 return tablespace;
45 }
46
47 public CreateIndexStatement setTablespace(String tablespace) {
48 this.tablespace = tablespace;
49
50 return this;
51 }
52
53 public Boolean isUnique() {
54 return unique;
55 }
56
57 public String getAssociatedWith() {
58 return associatedWith;
59 }
60
61 public void setAssociatedWith(String associatedWith) {
62 this.associatedWith = associatedWith;
63 }
64 }