Package org.apache.torque.map
Class ForeignKeyMap.ColumnPair
java.lang.Object
org.apache.torque.map.ForeignKeyMap.ColumnPair
- All Implemented Interfaces:
Serializable
- Enclosing class:
ForeignKeyMap
A pair of local and Foreign column.
This class is immutable.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionColumnPair(ForeignKeyMap foreignKeyMap, ColumnMap local, String foreignName) Constructor.ColumnPair(ForeignKeyMap foreignKeyMap, ColumnMap local, ColumnMap foreign) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the foreign column of the pair.Returns the associated foreign key map.getLocal()Returns the local column of the pair.
-
Constructor Details
-
ColumnPair
Constructor.- Parameters:
foreignKeyMap- the foreign key map this columnPait belongs to.local- the local column, not null.foreign- the foreign column, not null.- Throws:
NullPointerException- if local or doreign are null.
-
ColumnPair
Constructor.- Parameters:
foreignKeyMap- the foreign key map this columnPait belongs to.local- the local column, not null.foreignName- the foreign column, not null.- Throws:
NullPointerException- if local or doreign are null.
-
-
Method Details
-
getForeignKeyMap
Returns the associated foreign key map.- Returns:
- the associated foreign key map, not null.
-
getLocal
Returns the local column of the pair.- Returns:
- the local column of the pair, not null.
-
getForeign
Returns the foreign column of the pair.- Returns:
- the foreign column of the pair, not null.
- Throws:
IllegalStateException- if the foreign table map builder was not yet built.
-