Class PrimaryKey
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.analyticsmodeling.model.module.PrimaryKey
-
- All Implemented Interfaces:
IModuleObject
public class PrimaryKey extends Object implements IModuleObject
Database table primary key abstraction.
Sample:
{
"keyedColumn": [ "AddressID" ],
"name": "PK_Address_AddressID"
}
-
-
Constructor Summary
Constructors Constructor Description PrimaryKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getKeyedColumn()Get list of columns names defining primary key.StringgetName()Get name of the primary key.voidsetKeyedColumn(List<String> keyedColumn)Set list of names defining primary key columns.voidsetName(String name)Set the name of primary key.
-
-
-
Method Detail
-
getName
public String getName()
Get name of the primary key. Usually PK_TableName- Returns:
- name of the primary key
-
setName
public void setName(String name)
Set the name of primary key.- Parameters:
name- to set.
-
getKeyedColumn
public List<String> getKeyedColumn()
Get list of columns names defining primary key.- Returns:
- set of columns names defining primary key.
-
-