Class PrimaryKeyProperties
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetmanager.properties.PrimaryKeyProperties
-
- All Implemented Interfaces:
Serializable
public class PrimaryKeyProperties extends Object implements Serializable
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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PrimaryKeyProperties()Default constructorPrimaryKeyProperties(PrimaryKeyProperties template)Copy/clone constructor for a primary key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.KeyPatterngetKeyPattern()Returns the key pattern for the primary key.StringgetName()Return the name for the primary key.inthashCode()Return hash code based on properties.voidsetKeyPattern(KeyPattern keyPattern)Set up the key pattern for the primary key.voidsetName(String name)Set up name of the primary key.StringtoString()Standard toString method.
-
-
-
Constructor Detail
-
PrimaryKeyProperties
public PrimaryKeyProperties()
Default constructor
-
PrimaryKeyProperties
public PrimaryKeyProperties(PrimaryKeyProperties template)
Copy/clone constructor for a primary key.- Parameters:
template- template object to copy.
-
-
Method Detail
-
setName
public void setName(String name)
Set up name of the primary key.- Parameters:
name- String
-
getName
public String getName()
Return the name for the primary key.- Returns:
- String description
-
setKeyPattern
public void setKeyPattern(KeyPattern keyPattern)
Set up the key pattern for the primary key.- Parameters:
keyPattern- String name
-
getKeyPattern
public KeyPattern getKeyPattern()
Returns the key pattern for the primary key.- Returns:
- String name
-
toString
public String toString()
Standard toString method.
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
-
-