View Javadoc
1   package com.atlassian.dbexporter;
2   
3   import static com.google.common.base.Preconditions.checkNotNull;
4   
5   public final class ForeignKey {
6       private final String fromTable;
7       private final String fromField;
8       private final String toTable;
9       private final String toField;
10  
11      public ForeignKey(String fromTable, String fromField, String toTable, String toField) {
12          this.fromTable = checkNotNull(fromTable);
13          this.fromField = checkNotNull(fromField);
14          this.toTable = checkNotNull(toTable);
15          this.toField = checkNotNull(toField);
16      }
17  
18      public String getFromTable() {
19          return fromTable;
20      }
21  
22      public String getFromField() {
23          return fromField;
24      }
25  
26      public String getToTable() {
27          return toTable;
28      }
29  
30      public String getToField() {
31          return toField;
32      }
33  }