public interface DomainMapperMember extends DomainMapper, org.springframework.core.Ordered, com.broadleafcommerce.common.extension.data.DataRoutePartitionAware
DomainMapperManager
.
Members are responsible for targeted mapping between repository domain and business domain (and
vice versa). Members can contribute to a portion of the transformation/mapping, or perform it in
its entirety. Members are executed in the order defined.Modifier and Type | Method and Description |
---|---|
default <D> D |
fromBusinessDomain(Object businessDomain,
D repositoryDomain,
ContextInfo contextInfo)
Map and return a populated repository domain instance, based on information provided in a
business domain.
|
default <P> P |
fromRepositoryDomain(Object repositoryDomain,
P businessDomain,
ContextInfo contextInfo)
Map and return a populated business domain instance, based on information provided in a
repository domain instance.
|
default int |
getOrder() |
deleteMap, getBusinessDomainType, modifyMap
@Nullable default <D> D fromBusinessDomain(Object businessDomain, D repositoryDomain, @Nullable ContextInfo contextInfo)
D
- The repository domain typebusinessDomain
- The business instance containing the relevant property informationrepositoryDomain
- The repository specific instance to affect and returncontextInfo
- 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.@Nullable default <P> P fromRepositoryDomain(Object repositoryDomain, P businessDomain, @Nullable ContextInfo contextInfo)
P
- The business domain typerepositoryDomain
- The repository domain instance containing the relevant property
informationbusinessDomain
- The business domain instance to affect and returncontextInfo
- 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.default int getOrder()
getOrder
in interface org.springframework.core.Ordered
Copyright © 2021. All rights reserved.