Class AttachedDocument.CompositeKey

Object
CompositeKey
All Implemented Interfaces:
Serializable
Enclosing class:
AttachedDocument

public static class AttachedDocument.CompositeKey extends Object implements Serializable
Internal: identifier of an attached document in the database, made of the document ID and its typed ID. Not for use in logic.
See Also:
  • Constructor Details

    • CompositeKey

      public CompositeKey()
      Internal: used by the persistence layer. Not for use in logic.
    • CompositeKey

      public CompositeKey(Long id, String docTypedId)
      Internal: used by the persistence layer. Not for use in logic.
      Parameters:
      id - ID of the document.
      docTypedId - Typed ID of the document.
  • Method Details

    • getId

      public Long getId()
      Internal: returns the ID of the document. Not for use in logic.
      Returns:
      ID of the document.
    • getDocTypedId

      public String getDocTypedId()
      Internal: returns the typed ID of the document. Not for use in logic.
      Returns:
      Typed ID of the document.
    • equals

      public boolean equals(Object o)
      Internal: two keys are equal if they have the same ID and typed ID. Not for use in logic.
      Overrides:
      equals in class Object
      Parameters:
      o - Object to compare with.
      Returns:
      true if o is a key with the same ID and typed ID.
    • hashCode

      public int hashCode()
      Internal: hash code based on the ID and the typed ID. Not for use in logic.
      Overrides:
      hashCode in class Object
      Returns:
      Hash code of the key.
    • toString

      public String toString()
      Internal: text form of the key, for logging. Not for use in logic.
      Overrides:
      toString in class Object
      Returns:
      Text form of the key.