Package org.openwms.transactions
Class Transaction
java.lang.Object
org.openwms.transactions.Transaction
A Transaction.
- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringA category name, like Reconciliation or Replenishment the Transaction is part of.private StringThe human user or system that initiated the Transaction.private DateWhen the Transaction has been created in the system.private @Size(max=2048) StringA human-readable descriptive text of the Transaction that happened.Arbitrary detail information with values according to the specific Transaction.private StringTechnical persisted key field, independently of the underlying database, assigned by the application layer, remains the same over database migrations.private StringThe service name that created the Transaction.private StringAn id to a dataset the Transaction is related to.private StringAn id to the request (business transaction) the Transaction was created in.private @NotBlank StringA defined transaction type that can be used as a key to the custom specific Transaction. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAll fields but not the details map.getpKey()getType()inthashCode()All fields but not the details map.booleanhaspKey()voidsetCategory(String category) voidsetCreatedByUser(String createdByUser) voidsetCreateDt(Date createDt) voidsetDescription(String description) voidsetDetails(Map<String, String> details) voidvoidvoidsetSenderId(String senderId) voidsetTraceId(String traceId) voidtoString()All fields but not the details map.
-
Field Details
-
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
A human-readable descriptive text of the Transaction that happened. -
type
A defined transaction type that can be used as a key to the custom specific Transaction. -
createdByUser
The human user or system that initiated the Transaction. -
sender
The service name that created the Transaction. -
senderId
An id to a dataset the Transaction is related to. -
category
A category name, like Reconciliation or Replenishment the Transaction is part of. -
traceId
An id to the request (business transaction) the Transaction was created in. -
details
Arbitrary detail information with values according to the specific Transaction. -
createDt
When the Transaction has been created in the system.
-
-
Constructor Details
-
Transaction
public Transaction()
-
-
Method Details
-
haspKey
public boolean haspKey() -
getpKey
-
setpKey
-
getDescription
-
setDescription
-
getType
-
setType
-
getCreatedByUser
-
setCreatedByUser
-
getSender
-
setSender
-
getSenderId
-
setSenderId
-
getCategory
-
setCategory
-
getTraceId
-
setTraceId
-
getDetails
-
setDetails
-
getCreateDt
-
setCreateDt
-
equals
All fields but not the details map. -
hashCode
public int hashCode()All fields but not the details map. -
toString
All fields but not the details map.
-