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, waitgetVersion, mapToDtopublic GeneralTransactionMapper(JsonHelper jsonHelper)
public TransactionFactory<?> mapToFactoryFromDto(java.lang.Object transactionInfoDTO)
TransactionMappermapToFactoryFromDto in interface TransactionMappertransactionInfoDTO - the transactionTransactionFactorypublic Transaction mapFromDto(java.lang.Object transactionInfoDTO)
TransactionMappermapFromDto in interface TransactionMappertransactionInfoDTO - the transactionTransactionpublic java.lang.Object mapToDto(Transaction transaction, java.lang.Boolean embedded)
TransactionMappermapToDto in interface TransactionMappertransaction - the the general transactionembedded - if it's known to be embedded.Objectpublic TransactionType getTransactionType()
TransactionMappergetTransactionType in interface TransactionMapperpublic JsonHelper getJsonHelper()