public class ForeignKeyMap extends Object implements Serializable
| Modifier and Type | Class and Description | 
|---|---|
| static class  | ForeignKeyMap.ColumnPairA pair of local and Foreign column. | 
| Constructor and Description | 
|---|
| ForeignKeyMap(TableMap table,
             String foreignTableName)Constructor. | 
| ForeignKeyMap(TableMap table,
             TableMap foreignTable)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addColumns(ForeignKeyMap.ColumnPair columnPair)Adds a column pair to the foreign key. | 
| List<ForeignKeyMap.ColumnPair> | getColumns()Returns the column pairs. | 
| TableMap | getForeignTable()Returns the foreign table of the foreign key. | 
| String | getForeignTableName()Returns name of the foreign table of the foreign key. | 
| TableMap | getTable()Returns the local table of the foreign key. | 
public ForeignKeyMap(TableMap table, TableMap foreignTable)
table - the local table, not null.foreignTable - the foreign table, not null.NullPointerException - if an argument is null.public ForeignKeyMap(TableMap table, String foreignTableName)
table - the local table, not null.foreignTableName - the name of the foreign table, not null.NullPointerException - if an argument is null.public void addColumns(ForeignKeyMap.ColumnPair columnPair)
columnPair - the column pair to add, not null.public TableMap getTable()
public TableMap getForeignTable()
IllegalStateException - if the foreign table map builder
         was not yet built.public String getForeignTableName()
public List<ForeignKeyMap.ColumnPair> getColumns()
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.