Class MonetaryMapperMember

java.lang.Object
com.broadleafcommerce.data.tracking.core.mapping.money.MonetaryMapperMember
All Implemented Interfaces:
com.broadleafcommerce.common.extension.data.DataRoutePartitionAware, DomainMapper, DomainMapperMember, org.springframework.core.Ordered

@Deprecated public class MonetaryMapperMember extends Object implements DomainMapperMember
Deprecated.
Converts repository-stored instances of money (which is always just the numeric value) into their business-domain currency instances
Author:
Phillip Verheyden (phillipuniverse)
  • Constructor Details

  • Method Details

    • getDataRoutePartition

      public String getDataRoutePartition()
      Deprecated.
      Specified by:
      getDataRoutePartition in interface com.broadleafcommerce.common.extension.data.DataRoutePartitionAware
    • fromRepositoryDomain

      @Nullable public <P> P fromRepositoryDomain(Object repositoryDomain, P businessDomain, @Nullable ContextInfo contextInfo)
      Deprecated.
      Description copied from interface: DomainMapperMember
      Map and return a populated business domain instance, based on information provided in a repository domain instance. The passed businessDomain parameter is generally transformed and returned.
      Specified by:
      fromRepositoryDomain in interface DomainMapperMember
      Type Parameters:
      P - The business domain type
      Parameters:
      repositoryDomain - The repository domain instance containing the relevant property information
      businessDomain - The business domain instance to affect and return
      contextInfo - The context information used to make tracking determinations relevant to sandboxing and multitenant concerns. See TrackableRepository for more info on persistence behavior based on context.
      Returns:
      The populated business domain instance. Should return null if no action taken.