Class Transaction

java.lang.Object
org.openwms.transactions.Transaction

public class Transaction extends Object
A Transaction.
Author:
Heiko Scherrer
  • Field Details

    • pKey

      private String pKey
      Technical persisted key field, independently of the underlying database, assigned by the application layer, remains the same over database migrations. It is allowed to be null, at least when it is passed for creation to the server.
    • description

      @Size(max=2048) private @Size(max=2048) String description
      A human-readable descriptive text of the Transaction that happened.
    • type

      @NotBlank private @NotBlank String type
      A defined transaction type that can be used as a key to the custom specific Transaction.
    • createdByUser

      private String createdByUser
      The human user or system that initiated the Transaction.
    • sender

      private String sender
      The service name that created the Transaction.
    • senderId

      private String senderId
      An id to a dataset the Transaction is related to.
    • category

      private String category
      A category name, like Reconciliation or Replenishment the Transaction is part of.
    • traceId

      private String traceId
      An id to the request (business transaction) the Transaction was created in.
    • details

      private Map<String,String> details
      Arbitrary detail information with values according to the specific Transaction.
    • createDt

      private Date createDt
      When the Transaction has been created in the system.
  • Constructor Details

    • Transaction

      public Transaction()
  • Method Details

    • haspKey

      public boolean haspKey()
    • getpKey

      public String getpKey()
    • setpKey

      public void setpKey(String pKey)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getCreatedByUser

      public String getCreatedByUser()
    • setCreatedByUser

      public void setCreatedByUser(String createdByUser)
    • getSender

      public String getSender()
    • setSender

      public void setSender(String sender)
    • getSenderId

      public String getSenderId()
    • setSenderId

      public void setSenderId(String senderId)
    • getCategory

      public String getCategory()
    • setCategory

      public void setCategory(String category)
    • getTraceId

      public String getTraceId()
    • setTraceId

      public void setTraceId(String traceId)
    • getDetails

      public Map<String,String> getDetails()
    • setDetails

      public void setDetails(Map<String,String> details)
    • getCreateDt

      public Date getCreateDt()
    • setCreateDt

      public void setCreateDt(Date createDt)
    • equals

      public boolean equals(Object o)
      All fields but not the details map.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      All fields but not the details map.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      All fields but not the details map.
      Overrides:
      toString in class Object