Class ForeignKeyMetadata
java.lang.Object
org.apache.torque.generator.source.jdbc.ForeignKeyMetadata
The data about a foreign key as read from JDBC Metadata.
- Version:
- $Id: ForeignKeyMetadata.java 1917241 2024-04-21 13:29:41Z tv $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the names of the foreign columns.Returns the name of the foreign key.Returns the names of the local columns.Returns the name of the referenced (foreign) table.voidsetForeignKeyName(String foreignKeyName) Sets the name of the foreign key.voidsetReferencedTable(String referencedTable) Sets the name of the referenced (foreign) table.
-
Constructor Details
-
ForeignKeyMetadata
public ForeignKeyMetadata()
-
-
Method Details
-
getReferencedTable
Returns the name of the referenced (foreign) table.- Returns:
- the name of the referenced (foreign) table.
-
setReferencedTable
Sets the name of the referenced (foreign) table.- Parameters:
referencedTable- the name of the referenced (foreign) table.
-
getForeignKeyName
Returns the name of the foreign key.- Returns:
- the name of the foreign key.
-
setForeignKeyName
Sets the name of the foreign key.- Parameters:
foreignKeyName- the name of the foreign key.
-
getLocalColumns
Returns the names of the local columns. To change the list in this object, the returned list can be modified.- Returns:
- the names of the local columns.
-
getForeignColumns
Returns the names of the foreign columns. To change the list in this object, the returned list can be modified.- Returns:
- the names of the foreign columns.
-