Class SchemaAttributeRelationship
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.SchemaAttributeRelationship
-
- All Implemented Interfaces:
Serializable
public class SchemaAttributeRelationship extends PropertyBase
SchemaAttributeRelationship defines a relationship between 2 SchemaAttributes. It is used in network type schemas such as a graph or to show relationships such as foreign key relationships in relational schemas.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
-
Constructor Summary
Constructors Constructor Description SchemaAttributeRelationship()Default constructorSchemaAttributeRelationship(SchemaAttributeRelationship template)Copy/clone constructor makes a copy of the supplied object.
-
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.StringgetLinkedAttributeGUID()Return the GUID of the schema attribute that this link connects together.StringgetLinkedAttributeName()Return the name of the far end of the relationship.Map<String,Object>getLinkProperties()Return the properties associated with this schema link.StringgetLinkType()Return the type of the link - this is related to the type of the schema it is a part of.inthashCode()Create a hash code for this element type.voidsetLinkedAttributeGUID(String linkedAttributeGUID)Set up the GUIDs of the schema attributes that this link connects together.voidsetLinkedAttributeName(String linkedAttributeName)Set up the name of the far end of the relationship.voidsetLinkProperties(Map<String,Object> linkProperties)Set up the properties associated with this schema link.voidsetLinkType(String linkType)Set up the type of the link - this is related to the type of the schema it is a part of.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
getHeaderVersion, setHeaderVersion
-
-
-
-
Constructor Detail
-
SchemaAttributeRelationship
public SchemaAttributeRelationship()
Default constructor
-
SchemaAttributeRelationship
public SchemaAttributeRelationship(SchemaAttributeRelationship template)
Copy/clone constructor makes a copy of the supplied object.- Parameters:
template- template object to copy
-
-
Method Detail
-
getLinkType
public String getLinkType()
Return the type of the link - this is related to the type of the schema it is a part of.- Returns:
- String link type
-
setLinkType
public void setLinkType(String linkType)
Set up the type of the link - this is related to the type of the schema it is a part of.- Parameters:
linkType- String link type
-
getLinkedAttributeGUID
public String getLinkedAttributeGUID()
Return the GUID of the schema attribute that this link connects together.- Returns:
- GUID for the attribute at the other end of the link.
-
setLinkedAttributeGUID
public void setLinkedAttributeGUID(String linkedAttributeGUID)
Set up the GUIDs of the schema attributes that this link connects together.- Parameters:
linkedAttributeGUID- GUIDs for either end of the link - returned as a list.
-
getLinkedAttributeName
public String getLinkedAttributeName()
Return the name of the far end of the relationship.- Returns:
- String name
-
setLinkedAttributeName
public void setLinkedAttributeName(String linkedAttributeName)
Set up the name of the far end of the relationship.- Parameters:
linkedAttributeName- String name
-
getLinkProperties
public Map<String,Object> getLinkProperties()
Return the properties associated with this schema link.- Returns:
- property map
-
setLinkProperties
public void setLinkProperties(Map<String,Object> linkProperties)
Set up the properties associated with this schema link.- Parameters:
linkProperties- property map
-
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.- Overrides:
equalsin classPropertyBase- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Create a hash code for this element type.- Overrides:
hashCodein classPropertyBase- Returns:
- int hash code
-
-