Class 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 Detail

      • ForeignColumn

        public ForeignColumn()
    • 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.