Class InstanceHeader
- java.lang.Object
-
- org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceElementHeader
-
- org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceAuditHeader
-
- org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceHeader
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
EntitySummary,Relationship
public abstract class InstanceHeader extends InstanceAuditHeader
InstanceHeader manages the attributes that are common to entities and relationship instances. This includes its unique identifier and URL along with information about its type, provenance and change history.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceAuditHeader
CURRENT_AUDIT_HEADER_VERSION
-
-
Constructor Summary
Constructors Constructor Description InstanceHeader()Default Constructor sets the instance to nulls.InstanceHeader(InstanceHeader template)Copy/clone constructor set the value to those supplied in the template.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Validate that an object is equal depending on their stored values.StringgetGUID()Return the unique identifier for this instance.StringgetInstanceURL()Return the URL for this instance (or null if the metadata repository does not support instance URLs).StringgetReIdentifiedFromGUID()Return the unique identifier by which this instance was previously known.inthashCode()Return a hash code based on the values of this object.voidsetGUID(String guid)Set up the unique identifier for this instance.voidsetInstanceURL(String instanceURL)Set up the URL for this instance (or null if the metadata repository does not support instance URLs).voidsetReIdentifiedFromGUID(String reIdentifiedFromGUID)Set up the unique identifier by which t his instance was previously known.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceAuditHeader
getCreatedBy, getCreateTime, getHeaderVersion, getInstanceLicense, getInstanceProvenanceType, getMaintainedBy, getMappingProperties, getMetadataCollectionId, getMetadataCollectionName, getReplicatedBy, getStatus, getStatusOnDelete, getType, getUpdatedBy, getUpdateTime, getVersion, setCreatedBy, setCreateTime, setHeaderVersion, setInstanceLicense, setInstanceProvenanceType, setMaintainedBy, setMappingProperties, setMetadataCollectionId, setMetadataCollectionName, setReplicatedBy, setStatus, setStatusOnDelete, setType, setUpdatedBy, setUpdateTime, setVersion
-
-
-
-
Constructor Detail
-
InstanceHeader
public InstanceHeader()
Default Constructor sets the instance to nulls.
-
InstanceHeader
public InstanceHeader(InstanceHeader template)
Copy/clone constructor set the value to those supplied in the template.- Parameters:
template- Instance header
-
-
Method Detail
-
getInstanceURL
public String getInstanceURL()
Return the URL for this instance (or null if the metadata repository does not support instance URLs).- Returns:
- String URL
-
setInstanceURL
public void setInstanceURL(String instanceURL)
Set up the URL for this instance (or null if the metadata repository does not support instance URLs).- Parameters:
instanceURL- String URL
-
getGUID
public String getGUID()
Return the unique identifier for this instance.- Returns:
- guid String unique identifier
-
setGUID
public void setGUID(String guid)
Set up the unique identifier for this instance.- Parameters:
guid- String unique identifier
-
getReIdentifiedFromGUID
public String getReIdentifiedFromGUID()
Return the unique identifier by which this instance was previously known.- Returns:
- guid String unique identifier
-
setReIdentifiedFromGUID
public void setReIdentifiedFromGUID(String reIdentifiedFromGUID)
Set up the unique identifier by which t his instance was previously known.- Parameters:
reIdentifiedFromGUID- String unique identifier
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classInstanceAuditHeader- Returns:
- JSON style description of variables.
-
equals
public boolean equals(Object objectToCompare)
Validate that an object is equal depending on their stored values.- Overrides:
equalsin classInstanceAuditHeader- Parameters:
objectToCompare- object- Returns:
- boolean result
-
hashCode
public int hashCode()
Return a hash code based on the values of this object.- Overrides:
hashCodein classInstanceAuditHeader- Returns:
- in hash code
-
-