Class PrimaryKeyProperties
java.lang.Object
org.odpi.openmetadata.accessservices.assetmanager.properties.PrimaryKeyProperties
PrimaryKeyProperties describes the properties of a primary key. It is typically associated
with one of the database columns in a database table to indicate that the values stored uniquely
identify the row.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorPrimaryKeyProperties(PrimaryKeyProperties template) Copy/clone constructor for a primary key. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.org.odpi.openmetadata.frameworks.openmetadata.enums.KeyPatternReturns the key pattern for the primary key.getName()Return the name for the primary key.inthashCode()Return hash code based on properties.voidsetKeyPattern(org.odpi.openmetadata.frameworks.openmetadata.enums.KeyPattern keyPattern) Set up the key pattern for the primary key.voidSet up name of the primary key.toString()Standard toString method.
-
Constructor Details
-
PrimaryKeyProperties
public PrimaryKeyProperties()Default constructor -
PrimaryKeyProperties
Copy/clone constructor for a primary key.- Parameters:
template- template object to copy.
-
-
Method Details
-
setName
Set up name of the primary key.- Parameters:
name- String
-
getName
Return the name for the primary key.- Returns:
- String description
-
setKeyPattern
public void setKeyPattern(org.odpi.openmetadata.frameworks.openmetadata.enums.KeyPattern keyPattern) Set up the key pattern for the primary key.- Parameters:
keyPattern- String name
-
getKeyPattern
public org.odpi.openmetadata.frameworks.openmetadata.enums.KeyPattern getKeyPattern()Returns the key pattern for the primary key.- Returns:
- String name
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Return hash code based on properties.
-