public interface TransactionMapper
Transaction object.| Modifier and Type | Method and Description |
|---|---|
TransactionType |
getTransactionType()
The type of transactions this mapper supports.
|
default int |
getVersion()
The version this mapper handles
|
Transaction |
mapFromDto(java.lang.Object transactionDto)
It maps an embedded or top level transaction
|
default java.lang.Object |
mapToDto(Transaction transaction)
It maps an transaction to an DTO transaction.
|
java.lang.Object |
mapToDto(Transaction transaction,
java.lang.Boolean embedded)
It maps an transaction to an DTO transaction.
|
TransactionFactory<?> |
mapToFactoryFromDto(java.lang.Object transactionDto)
It maps an embedded or top level transaction to a factory.
|
Transaction mapFromDto(java.lang.Object transactionDto)
transactionDto - the transactionTransactionTransactionFactory<?> mapToFactoryFromDto(java.lang.Object transactionDto)
transactionDto - the transactionTransactionFactorydefault java.lang.Object mapToDto(Transaction transaction)
transaction - the the general transactionObjectjava.lang.Object mapToDto(Transaction transaction, java.lang.Boolean embedded)
transaction - the the general transactionembedded - if it's known to be embedded.ObjectTransactionType getTransactionType()
default int getVersion()