Package org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties
Class RepositoryElementHeader
java.lang.Object
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InstanceElementHeader
,TypeDefElementHeader
RepositoryElementHeader provides a common base for all type and instance information from the metadata collection.
It implements Serializable.
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault Constructor sets the element to nullsCopy/clone constructor set values from the template -
Method Summary
Modifier and TypeMethodDescriptionboolean
Validate that an object is equal depending on their stored values.long
Return the version of this header.int
hashCode()
Return a hash code based on the property valuesvoid
setHeaderVersion
(long headerVersion) Return the version of this header.
-
Constructor Details
-
RepositoryElementHeader
public RepositoryElementHeader()Default Constructor sets the element to nulls -
RepositoryElementHeader
Copy/clone constructor set values from the template- Parameters:
template
- InstanceElementHeader to copy
-
-
Method Details
-
getHeaderVersion
public long getHeaderVersion()Return the version of this header. This is used by the OMRS to determine if it is back level and should not process events from a source that is more advanced because it does not have the ability to receive all the header properties.- Returns:
- long version number - the value is incremented each time a new non-informational field is added to the type definition.
-
setHeaderVersion
public void setHeaderVersion(long headerVersion) Return the version of this header. This is used by the OMRS to determine if it is back level and should not process events from a source that is more advanced because it does not have the ability to receive all the header properties.- Parameters:
headerVersion
- long version number - the value is incremented each time a new non-informational field is added to the type definition.
-
equals
Validate that an object is equal depending on their stored values. -
hashCode
public int hashCode()Return a hash code based on the property values
-