Coverage Report - liquibase.database.structure.ForeignKeyInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
ForeignKeyInfo
0%
0/40
N/A
1
 
 1  
 package liquibase.database.structure;
 2  
 
 3  
 /**
 4  
  * User: Nikitin.Maxim Date: 08.04.2010 Time: 12:48:05 <br>
 5  
  * <br>
 6  
  * <b>Descrition:</b><br>
 7  
  * Class used only as container of FK properties.
 8  
  */
 9  0
 public class ForeignKeyInfo {
 10  
 
 11  
     private String fkName;
 12  
     private String fkSchema;
 13  
     private String fkTableName;
 14  
     private String fkColumn;
 15  
 
 16  
     private String pkTableSchema;
 17  
     private String pkTableName;
 18  
     private String pkColumn;
 19  
 
 20  0
     private int keySeq = 0;
 21  
     private ForeignKeyConstraintType updateRule;
 22  
     private ForeignKeyConstraintType deleteRule;
 23  0
     private short deferrablility = 0;
 24  
 
 25  
     // Some databases supports creation of FK with referention to column marked as unique, not primary
 26  
     // If FK referenced to such unique column this option should be set to false
 27  0
     private boolean referencesUniqueColumn = false;
 28  
 
 29  
     public String getFkName() {
 30  0
         return fkName;
 31  
     }
 32  
 
 33  
     public void setFkName(String fkName) {
 34  0
         this.fkName = fkName;
 35  0
     }
 36  
 
 37  
     public String getFkSchema() {
 38  0
         return fkSchema;
 39  
     }
 40  
 
 41  
     public void setFkSchema(String fkSchema) {
 42  0
         this.fkSchema = fkSchema;
 43  0
     }
 44  
 
 45  
     public String getFkTableName() {
 46  0
         return fkTableName;
 47  
     }
 48  
 
 49  
     public void setFkTableName(String fkTableName) {
 50  0
         this.fkTableName = fkTableName;
 51  0
     }
 52  
 
 53  
     public String getFkColumn() {
 54  0
         return fkColumn;
 55  
     }
 56  
 
 57  
     public void setFkColumn(String fkColumn) {
 58  0
         this.fkColumn = fkColumn;
 59  0
     }
 60  
 
 61  
     public String getPkTableName() {
 62  0
         return pkTableName;
 63  
     }
 64  
 
 65  
     public void setPkTableName(String pkTableName) {
 66  0
         this.pkTableName = pkTableName;
 67  0
     }
 68  
 
 69  
     public String getPkColumn() {
 70  0
         return pkColumn;
 71  
     }
 72  
 
 73  
     public void setPkColumn(String pkColumn) {
 74  0
         this.pkColumn = pkColumn;
 75  0
     }
 76  
 
 77  
     public int getKeySeq() {
 78  0
         return keySeq;
 79  
     }
 80  
 
 81  
     public void setKeySeq(int keySeq) {
 82  0
         this.keySeq = keySeq;
 83  0
     }
 84  
 
 85  
     public ForeignKeyConstraintType getUpdateRule() {
 86  0
         return updateRule;
 87  
     }
 88  
 
 89  
     public void setUpdateRule(ForeignKeyConstraintType updateRule) {
 90  0
         this.updateRule = updateRule;
 91  0
     }
 92  
 
 93  
     public ForeignKeyConstraintType getDeleteRule() {
 94  0
         return deleteRule;
 95  
     }
 96  
 
 97  
     public void setDeleteRule(ForeignKeyConstraintType deleteRule) {
 98  0
         this.deleteRule = deleteRule;
 99  0
     }
 100  
 
 101  
     public short getDeferrablility() {
 102  0
         return deferrablility;
 103  
     }
 104  
 
 105  
     public void setDeferrablility(short deferrablility) {
 106  0
         this.deferrablility = deferrablility;
 107  0
     }
 108  
 
 109  
     public boolean getReferencesUniqueColumn() {
 110  0
         return referencesUniqueColumn;
 111  
     }
 112  
 
 113  
     public void setReferencesUniqueColumn(boolean referencesUniqueColumn) {
 114  0
         this.referencesUniqueColumn = referencesUniqueColumn;
 115  0
     }
 116  
 
 117  
     public String getPkTableSchema() {
 118  0
         return pkTableSchema;
 119  
     }
 120  
 
 121  
     public void setPkTableSchema(String pkTableSchema) {
 122  0
         this.pkTableSchema = pkTableSchema;
 123  0
     }
 124  
 }