java.lang.Object
org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConnectedAssetProperties, DerivedSchemaTypeQueryTarget, ElementControlHeader, EmbeddedConnection, PagingIterator, PropertyIteratorBase, ReferenceValue, SchemaAttributeRelationship, SchemaImplementationQuery, ValidValueImplementation, ValidValueMapping, ValidValuesAssignment

public abstract class PropertyBase extends Object implements Serializable
This property header implements any common mechanisms that all property objects need.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final long
    Version identifier
  • Constructor Summary

    Constructors
    Constructor
    Description
    Typical Constructor
    Copy/clone Constructor the resulting object will return true if tested with this.equals(template) as long as the template object is not null;
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object objectToCompare)
    Compare the values of the supplied object with those stored in the current object.
    long
    Return the version of this header.
    int
    Return code value representing the contents of this object.
    void
    setHeaderVersion(long headerVersion)
    Return the version of this header.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CURRENT_AUDIT_HEADER_VERSION

      public static final long CURRENT_AUDIT_HEADER_VERSION
      Version identifier
      See Also:
  • Constructor Details

    • PropertyBase

      public PropertyBase()
      Typical Constructor
    • PropertyBase

      public PropertyBase(PropertyBase template)
      Copy/clone Constructor the resulting object will return true if tested with this.equals(template) as long as the template object is not null;
      Parameters:
      template - object being copied
  • 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 audit header.
    • 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 audit header.
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return code value representing the contents of this object.
      Overrides:
      hashCode in class Object
      Returns:
      int