Coverage Report - liquibase.change.ConstraintsConfig
 
Classes in this File Line Coverage Branch Coverage Complexity
ConstraintsConfig
78%
29/37
N/A
1
 
 1  
 package liquibase.change;
 2  
 
 3  
 /**
 4  
  * This class is resposible for holding the information about all the constraints imposed on the column.
 5  
  */
 6  60
 public class ConstraintsConfig {
 7  
 
 8  
     private Boolean nullable;
 9  
     private Boolean primaryKey;
 10  
     private String primaryKeyName;
 11  
     private String primaryKeyTablespace;
 12  
     private String references;
 13  
     private Boolean unique;
 14  
     private String uniqueConstraintName;
 15  
     private String check;
 16  
     private Boolean deleteCascade;
 17  
     private String foreignKeyName;
 18  
     private Boolean initiallyDeferred;
 19  
     private Boolean deferrable;
 20  
 
 21  
     public Boolean isNullable() {
 22  241
         return nullable;
 23  
     }
 24  
 
 25  
     public void setNullable(Boolean nullable) {
 26  43
         this.nullable = nullable;
 27  43
     }
 28  
 
 29  
     public Boolean isPrimaryKey() {
 30  194
         return primaryKey;
 31  
     }
 32  
 
 33  
     public void setPrimaryKey(Boolean primaryKey) {
 34  25
         this.primaryKey = primaryKey;
 35  25
     }
 36  
 
 37  
     public String getPrimaryKeyName() {
 38  65
         return primaryKeyName;
 39  
     }
 40  
 
 41  
     public void setPrimaryKeyName(String primaryKeyName) {
 42  0
         this.primaryKeyName = primaryKeyName;
 43  0
     }
 44  
 
 45  
     public String getReferences() {
 46  151
         return references;
 47  
     }
 48  
 
 49  
     public void setReferences(String references) {
 50  7
         this.references = references;
 51  7
     }
 52  
 
 53  
     public Boolean isUnique() {
 54  134
         return unique;
 55  
     }
 56  
 
 57  
     public void setUnique(Boolean unique) {
 58  3
         this.unique = unique;
 59  3
     }
 60  
 
 61  
     public String getUniqueConstraintName() {
 62  5
         return uniqueConstraintName;
 63  
     }
 64  
 
 65  
     public void setUniqueConstraintName(String uniqueConstraintName) {
 66  0
         this.uniqueConstraintName = uniqueConstraintName;
 67  0
     }
 68  
 
 69  
     public String getCheck() {
 70  4
         return check;
 71  
     }
 72  
 
 73  
     public void setCheck(String check) {
 74  0
         this.check = check;
 75  0
     }
 76  
 
 77  
     public Boolean isDeleteCascade() {
 78  10
         return deleteCascade;
 79  
     }
 80  
 
 81  
     public void setDeleteCascade(Boolean deleteCascade) {
 82  1
         this.deleteCascade = deleteCascade;
 83  1
     }
 84  
 
 85  
     public String getForeignKeyName() {
 86  29
         return foreignKeyName;
 87  
     }
 88  
 
 89  
     public void setForeignKeyName(String foreignKeyName) {
 90  7
         this.foreignKeyName = foreignKeyName;
 91  7
     }
 92  
 
 93  
     public Boolean isInitiallyDeferred() {
 94  14
         return initiallyDeferred;
 95  
     }
 96  
 
 97  
     public void setInitiallyDeferred(Boolean initiallyDeferred) {
 98  5
         this.initiallyDeferred = initiallyDeferred;
 99  5
     }
 100  
 
 101  
     public Boolean isDeferrable() {
 102  13
         return deferrable;
 103  
     }
 104  
 
 105  
     public void setDeferrable(Boolean deferrable) {
 106  5
         this.deferrable = deferrable;
 107  5
     }
 108  
 
 109  
     public String getPrimaryKeyTablespace() {
 110  5
         return primaryKeyTablespace;
 111  
     }
 112  
 
 113  
     public void setPrimaryKeyTablespace(String primaryKeyTablespace) {
 114  0
         this.primaryKeyTablespace = primaryKeyTablespace;
 115  0
     }
 116  
 }