Class AssetSchemaAttributeRelationship
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyElementBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetSchemaAttributeRelationship
-
- All Implemented Interfaces:
Serializable
public class AssetSchemaAttributeRelationship extends AssetPropertyBase
AssetSchemaAttributeRelationship defines a relationship between 2 SchemaAttributes. It is used in network type schemas such as a graph and for foreign keys in a relational database schema.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected SchemaAttributeRelationshipschemaAttributeRelationshipBean-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
parentAsset
-
-
Constructor Summary
Constructors Constructor Description AssetSchemaAttributeRelationship(AssetDescriptor parentAsset, AssetSchemaAttributeRelationship template)Copy/clone constructor makes a copy of the supplied object.AssetSchemaAttributeRelationship(AssetDescriptor parentAsset, SchemaAttributeRelationship schemaAttributeRelationship)Bean constructor with parent assetAssetSchemaAttributeRelationship(SchemaAttributeRelationship schemaAttributeRelationshipBean)Bean constructor
-
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 schema type that this link connects together.Map<String,Object>getLinkProperties()Return the list of properties associated with this schema link.StringgetLinkType()Return the type of the relationship.protected SchemaAttributeRelationshipgetSchemaAttributeRelationshipBean()Return the bean with all of the propertiesinthashCode()Create a hash code for this element type.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
getParentAsset, getParentAssetName, getParentAssetTypeName
-
-
-
-
Field Detail
-
schemaAttributeRelationshipBean
protected SchemaAttributeRelationship schemaAttributeRelationshipBean
-
-
Constructor Detail
-
AssetSchemaAttributeRelationship
public AssetSchemaAttributeRelationship(SchemaAttributeRelationship schemaAttributeRelationshipBean)
Bean constructor- Parameters:
schemaAttributeRelationshipBean- bean containing all of the properties
-
AssetSchemaAttributeRelationship
public AssetSchemaAttributeRelationship(AssetDescriptor parentAsset, SchemaAttributeRelationship schemaAttributeRelationship)
Bean constructor with parent asset- Parameters:
parentAsset- descriptor of parent assetschemaAttributeRelationship- bean containing all of the properties
-
AssetSchemaAttributeRelationship
public AssetSchemaAttributeRelationship(AssetDescriptor parentAsset, AssetSchemaAttributeRelationship template)
Copy/clone constructor makes a copy of the supplied object.- Parameters:
parentAsset- descriptor of parent assettemplate- template object to copy
-
-
Method Detail
-
getSchemaAttributeRelationshipBean
protected SchemaAttributeRelationship getSchemaAttributeRelationshipBean()
Return the bean with all of the properties- Returns:
- schema link bean
-
getLinkType
public String getLinkType()
Return the type of the relationship.- Returns:
- String link type
-
getLinkProperties
public Map<String,Object> getLinkProperties()
Return the list of properties associated with this schema link.- Returns:
- map of properties
-
getLinkedAttributeGUID
public String getLinkedAttributeGUID()
Return the GUID of the schema attribute that this link connects together.- Returns:
- unique identifier
-
getLinkedAttributeName
public String getLinkedAttributeName()
Return the name of the schema type that this link connects together.- Returns:
- unique 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.- Overrides:
equalsin classAssetPropertyBase- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Create a hash code for this element type.- Overrides:
hashCodein classAssetPropertyBase- Returns:
- int hash code
-
-