Package net.pricefx.domain
Class AttachedDocument.CompositeKey
Object
CompositeKey
- All Implemented Interfaces:
Serializable
- Enclosing class:
AttachedDocument
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 Summary
ConstructorsConstructorDescriptionInternal: used by the persistence layer.CompositeKey(Long id, String docTypedId) Internal: used by the persistence layer. -
Method Summary
Modifier and TypeMethodDescriptionbooleanInternal: two keys are equal if they have the same ID and typed ID.Internal: returns the typed ID of the document.getId()Internal: returns the ID of the document.inthashCode()Internal: hash code based on the ID and the typed ID.toString()Internal: text form of the key, for logging.
-
Constructor Details
-
CompositeKey
public CompositeKey()Internal: used by the persistence layer. Not for use in logic. -
CompositeKey
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
Internal: returns the ID of the document. Not for use in logic.- Returns:
- ID of the document.
-
getDocTypedId
Internal: returns the typed ID of the document. Not for use in logic.- Returns:
- Typed ID of the document.
-
equals
Internal: two keys are equal if they have the same ID and typed ID. Not for use in logic. -
hashCode
public int hashCode()Internal: hash code based on the ID and the typed ID. Not for use in logic. -
toString
Internal: text form of the key, for logging. Not for use in logic.
-