Class ForeignColumn
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.analyticsmodeling.model.module.ForeignColumn
-
- All Implemented Interfaces:
IModuleObject
public class ForeignColumn extends Object implements IModuleObject
Database table foreign column of foreign key abstraction.
Sample:
{
"pkColumn": "StateProvinceID",
"pkCatalog": "AdventureWorks2014",
"pkSchema": "Person",
"pkTable": "StateProvince",
"columnName": "StateProvinceID"
}
-
-
Constructor Summary
Constructors Constructor Description ForeignColumn()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetColumnName()Get name of the column referencing primary key.StringgetPkCatalog()Get name of the catalog the primary column belongs to.StringgetPkColumn()Get name of the primary column.StringgetPkSchema()Get name of the schema the primary column belongs to.StringgetPkTable()Get name of the table the primary column belongs to.voidsetColumnName(String columnName)Set name of the column referencing primary key.voidsetPkCatalog(String pkCatalog)Set name of the catalog the primary column belongs to.voidsetPkColumn(String pkColumn)Set name of the primary column.voidsetPkSchema(String pkSchema)Set name of the schema the primary column belongs to.voidsetPkTable(String pkTable)Set name of the table the primary column belongs to.
-
-
-
Method Detail
-
getPkColumn
public String getPkColumn()
Get name of the primary column.- Returns:
- name of the primary column.
-
setPkColumn
public void setPkColumn(String pkColumn)
Set name of the primary column.- Parameters:
pkColumn- name of the primary column.
-
getPkCatalog
public String getPkCatalog()
Get name of the catalog the primary column belongs to.- Returns:
- name of the catalog the primary column belongs to.
-
setPkCatalog
public void setPkCatalog(String pkCatalog)
Set name of the catalog the primary column belongs to.- Parameters:
pkCatalog- name of the catalog the primary column belongs to.
-
getPkSchema
public String getPkSchema()
Get name of the schema the primary column belongs to.- Returns:
- name of the schema the primary column belongs to.
-
setPkSchema
public void setPkSchema(String pkSchema)
Set name of the schema the primary column belongs to.- Parameters:
pkSchema- name of the schema the primary column belongs to.
-
getPkTable
public String getPkTable()
Get name of the table the primary column belongs to.- Returns:
- name of the table the primary column belongs to.
-
setPkTable
public void setPkTable(String pkTable)
Set name of the table the primary column belongs to.- Parameters:
pkTable- name of the table the primary column belongs to.
-
getColumnName
public String getColumnName()
Get name of the column referencing primary key.- Returns:
- name of column referencing primary key.
-
setColumnName
public void setColumnName(String columnName)
Set name of the column referencing primary key.- Parameters:
columnName- name of the column referencing primary key.
-
-