Class DatabaseColumnElement
java.lang.Object
org.odpi.openmetadata.accessservices.datamanager.metadataelements.DatabaseColumnElement
- All Implemented Interfaces:
Serializable,MetadataElement
DatabaseColumnElement contains the properties and header for a database column entity
retrieved from the metadata repository.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorDatabaseColumnElement(DatabaseColumnElement template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn comparison result based on the content of the properties.Return the principle properties for the database column.org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeaderReturn the element header associated with the properties.When this column contains the primary key of another table (ie it is a foreign key) return the properties associated with the relationship.When this column is a primary key, return the properties of the primary key value; otherwise nullReturn the unique identifier of the column in another table that this column references through a foreign key relationship.Return the unique name of the column in another table that this column references through a foreign key relationship.inthashCode()Return hash code for this objectvoidsetDatabaseColumnProperties(DatabaseColumnProperties databaseColumnProperties) Set up the principle properties for the database column.voidsetElementHeader(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader elementHeader) Set up the element header associated with the properties.voidsetForeignKeyProperties(DatabaseForeignKeyProperties foreignKeyProperties) Set up the properties that indicate that this column is a foreign key.voidsetPrimaryKeyProperties(DatabasePrimaryKeyProperties primaryKeyProperties) Set up the properties that indicate this column is a primary keyvoidsetReferencedColumnGUID(String referencedColumnGUID) Set up the unique identifier of the column in another table that this column references through a foreign key relationship.voidsetReferencedColumnQualifiedName(String referencedColumnQualifiedName) Set up the unique name of the column in another table that this column references through a foreign key relationship.toString()JSON-style toString
-
Constructor Details
-
DatabaseColumnElement
public DatabaseColumnElement()Default constructor -
DatabaseColumnElement
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getElementHeader
public org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader getElementHeader()Return the element header associated with the properties.- Specified by:
getElementHeaderin interfaceMetadataElement- Returns:
- element header object
-
setElementHeader
public void setElementHeader(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader elementHeader) Set up the element header associated with the properties.- Specified by:
setElementHeaderin interfaceMetadataElement- Parameters:
elementHeader- element header object
-
getDatabaseColumnProperties
Return the principle properties for the database column.- Returns:
- properties bean
-
setDatabaseColumnProperties
Set up the principle properties for the database column.- Parameters:
databaseColumnProperties- properties bean
-
getPrimaryKeyProperties
When this column is a primary key, return the properties of the primary key value; otherwise null- Returns:
- primary key properties
-
setPrimaryKeyProperties
Set up the properties that indicate this column is a primary key- Parameters:
primaryKeyProperties- primary key properties
-
getForeignKeyProperties
When this column contains the primary key of another table (ie it is a foreign key) return the properties associated with the relationship.- Returns:
- foreign key properties
-
setForeignKeyProperties
Set up the properties that indicate that this column is a foreign key. This is null if the column is not a foreign key.- Parameters:
foreignKeyProperties- foreign key properties
-
getReferencedColumnGUID
Return the unique identifier of the column in another table that this column references through a foreign key relationship. This is null if the column is not a foreign key.- Returns:
- string unique identifier
-
setReferencedColumnGUID
Set up the unique identifier of the column in another table that this column references through a foreign key relationship. This is null if the column is not a foreign key.- Parameters:
referencedColumnGUID- string unique identifier
-
getReferencedColumnQualifiedName
Return the unique name of the column in another table that this column references through a foreign key relationship. This is null if the column is not a foreign key.- Returns:
- string unique identifier
-
setReferencedColumnQualifiedName
Set up the unique name of the column in another table that this column references through a foreign key relationship. This is null if the column is not a foreign key.- Parameters:
referencedColumnQualifiedName- string unique identifier
-
toString
JSON-style toString -
equals
Return comparison result based on the content of the properties. -
hashCode
public int hashCode()Return hash code for this object
-