Class DatabasePrimaryKeyProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.ClassificationProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.schema.databases.DatabasePrimaryKeyProperties
DatabasePrimaryKeyProperties 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
ConstructorDescriptionDefault constructorCopy/clone constructor for a primary key. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Returns the key pattern for the primary key.getName()
Return the name for the primary key.int
hashCode()
Return hash code based on properties.void
setKeyPattern
(KeyPattern keyPattern) Set up the key pattern for the primary key.void
Set up name of the primary key.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.ClassificationProperties
getEffectiveFrom, getEffectiveTo, getExtendedProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties
-
Constructor Details
-
DatabasePrimaryKeyProperties
public DatabasePrimaryKeyProperties()Default constructor -
DatabasePrimaryKeyProperties
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
Set up the key pattern for the primary key.- Parameters:
keyPattern
- String name
-
getKeyPattern
Returns the key pattern for the primary key.- Returns:
- String name
-
toString
Standard toString method.- Overrides:
toString
in classClassificationProperties
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classClassificationProperties
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCode
in classClassificationProperties
- Returns:
- int
-