Class InstanceHeader
java.lang.Object
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
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
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:
-
Field Summary
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceAuditHeader
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
ConstructorDescriptionDefault Constructor sets the instance to nulls.InstanceHeader
(InstanceHeader template) Copy/clone constructor set the value to those supplied in the template. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Validate that an object is equal depending on their stored values.getGUID()
Return the unique identifier for this instance.Return the URL for this instance (or null if the metadata repository does not support instance URLs).Return the unique identifier by which this instance was previously known.int
hashCode()
Return a hash code based on the values of this object.void
Set up the unique identifier for this instance.void
setInstanceURL
(String instanceURL) Set up the URL for this instance (or null if the metadata repository does not support instance URLs).void
setReIdentifiedFromGUID
(String reIdentifiedFromGUID) Set up the unique identifier by which t his instance was previously known.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceAuditHeader
getCreatedBy, getCreateTime, getInstanceLicense, getInstanceProvenanceType, getMaintainedBy, getMappingProperties, getMetadataCollectionId, getMetadataCollectionName, getReplicatedBy, getStatus, getStatusOnDelete, getType, getUpdatedBy, getUpdateTime, getVersion, setCreatedBy, setCreateTime, setInstanceLicense, setInstanceProvenanceType, setMaintainedBy, setMappingProperties, setMetadataCollectionId, setMetadataCollectionName, setReplicatedBy, setStatus, setStatusOnDelete, setType, setUpdatedBy, setUpdateTime, setVersion
Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
getHeaderVersion, setHeaderVersion
-
Constructor Details
-
InstanceHeader
public InstanceHeader()Default Constructor sets the instance to nulls. -
InstanceHeader
Copy/clone constructor set the value to those supplied in the template.- Parameters:
template
- Instance header
-
-
Method Details
-
getInstanceURL
Return the URL for this instance (or null if the metadata repository does not support instance URLs).- Returns:
- String URL
-
setInstanceURL
Set up the URL for this instance (or null if the metadata repository does not support instance URLs).- Parameters:
instanceURL
- String URL
-
getGUID
Return the unique identifier for this instance.- Returns:
- guid String unique identifier
-
setGUID
Set up the unique identifier for this instance.- Parameters:
guid
- String unique identifier
-
getReIdentifiedFromGUID
Return the unique identifier by which this instance was previously known.- Returns:
- guid String unique identifier
-
setReIdentifiedFromGUID
Set up the unique identifier by which t his instance was previously known.- Parameters:
reIdentifiedFromGUID
- String unique identifier
-
toString
Standard toString method.- Overrides:
toString
in classInstanceAuditHeader
- Returns:
- JSON style description of variables.
-
equals
Validate that an object is equal depending on their stored values.- Overrides:
equals
in classInstanceAuditHeader
- Parameters:
objectToCompare
- object- Returns:
- boolean result
-
hashCode
public int hashCode()Return a hash code based on the values of this object.- Overrides:
hashCode
in classInstanceAuditHeader
- Returns:
- in hash code
-