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 transactionTransaction
TransactionFactory<?> mapToFactoryFromDto(java.lang.Object transactionDto)
transactionDto
- the transactionTransactionFactory
default java.lang.Object mapToDto(Transaction transaction)
transaction
- the the general transactionObject
java.lang.Object mapToDto(Transaction transaction, java.lang.Boolean embedded)
transaction
- the the general transactionembedded
- if it's known to be embedded.Object
TransactionType getTransactionType()
default int getVersion()