public class GeneralTransactionMapper extends java.lang.Object implements TransactionMapper
It's basically a delegator to the specific TransactionMapper
registered in this
object.
Constructor and Description |
---|
GeneralTransactionMapper(JsonHelper jsonHelper) |
Modifier and Type | Method and Description |
---|---|
JsonHelper |
getJsonHelper() |
TransactionType |
getTransactionType()
The type of transactions this mapper supports.
|
Transaction |
mapFromDto(java.lang.Object transactionInfoDTO)
It maps an embedded or top level transaction
|
java.lang.Object |
mapToDto(Transaction transaction,
java.lang.Boolean embedded)
It maps an transaction to an DTO transaction.
|
TransactionFactory<?> |
mapToFactoryFromDto(java.lang.Object transactionInfoDTO)
It maps an embedded or top level transaction to a factory.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getVersion, mapToDto
public GeneralTransactionMapper(JsonHelper jsonHelper)
public TransactionFactory<?> mapToFactoryFromDto(java.lang.Object transactionInfoDTO)
TransactionMapper
mapToFactoryFromDto
in interface TransactionMapper
transactionInfoDTO
- the transactionTransactionFactory
public Transaction mapFromDto(java.lang.Object transactionInfoDTO)
TransactionMapper
mapFromDto
in interface TransactionMapper
transactionInfoDTO
- the transactionTransaction
public java.lang.Object mapToDto(Transaction transaction, java.lang.Boolean embedded)
TransactionMapper
mapToDto
in interface TransactionMapper
transaction
- the the general transactionembedded
- if it's known to be embedded.Object
public TransactionType getTransactionType()
TransactionMapper
getTransactionType
in interface TransactionMapper
public JsonHelper getJsonHelper()