java.lang.Object
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InstanceElementHeader, TypeDefElementHeader

public abstract class RepositoryElementHeader extends Object implements Serializable
RepositoryElementHeader provides a common base for all type and instance information from the metadata collection. It implements Serializable.
See Also:
  • Constructor Details

    • RepositoryElementHeader

      public RepositoryElementHeader()
      Default Constructor sets the element to nulls
    • RepositoryElementHeader

      public RepositoryElementHeader(RepositoryElementHeader template)
      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

      public boolean equals(Object objectToCompare)
      Validate that an object is equal depending on their stored values.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - object
      Returns:
      boolean result
    • hashCode

      public int hashCode()
      Return a hash code based on the property values
      Overrides:
      hashCode in class Object
      Returns:
      int hash code