Coverage Report - liquibase.statement.core.CreateIndexStatement
 
Classes in this File Line Coverage Branch Coverage Complexity
CreateIndexStatement
63%
12/19
N/A
1
 
 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  
     // Contain associations of index
 14  
     // for example: foreignKey, primaryKey or uniqueConstraint
 15  
     private String associatedWith;
 16  
 
 17  
     public CreateIndexStatement(String indexName, String tableSchemaName, String tableName, Boolean isUnique,
 18  46
             String associatedWith, String... columns) {
 19  46
         this.indexName = indexName;
 20  46
         this.tableSchemaName = tableSchemaName;
 21  46
         this.tableName = tableName;
 22  46
         this.columns = columns;
 23  46
         this.unique = isUnique;
 24  46
         this.associatedWith = associatedWith;
 25  46
     }
 26  
 
 27  
     public String getTableSchemaName() {
 28  0
         return tableSchemaName;
 29  
     }
 30  
 
 31  
     public String getIndexName() {
 32  0
         return indexName;
 33  
     }
 34  
 
 35  
     public String getTableName() {
 36  15
         return tableName;
 37  
     }
 38  
 
 39  
     public String[] getColumns() {
 40  15
         return columns;
 41  
     }
 42  
 
 43  
     public String getTablespace() {
 44  0
         return tablespace;
 45  
     }
 46  
 
 47  
     public CreateIndexStatement setTablespace(String tablespace) {
 48  45
         this.tablespace = tablespace;
 49  
 
 50  45
         return this;
 51  
     }
 52  
 
 53  
     public Boolean isUnique() {
 54  0
         return unique;
 55  
     }
 56  
 
 57  
     public String getAssociatedWith() {
 58  0
         return associatedWith;
 59  
     }
 60  
 
 61  
     public void setAssociatedWith(String associatedWith) {
 62  0
         this.associatedWith = associatedWith;
 63  0
     }
 64  
 }