public class ChangeContainerOverridableDomainMapperMember extends Object implements DomainMapperMember
DomainMapperMember
implementation which is responsible for mapping the
ChangeContainer
for a ChangeContainerOverridable
projection domain over to its
repository domain. This allows the projection domains to support row-level overrides of change
container information during bulk operations.Constructor and Description |
---|
ChangeContainerOverridableDomainMapperMember(com.broadleafcommerce.common.extension.TypeFactory typeFactory) |
Modifier and Type | Method and Description |
---|---|
<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.
|
String |
getDataRoutePartition() |
int |
getOrder() |
<D,P> D |
modifyMap(D repositoryDomain,
P businessDomain,
ContextInfo contextInfo,
boolean allowNull)
Perform a mapping operation from business domain instance to persistence specific instance,
presumably modifying the state of the persistence specific instance.
|
protected <D> D |
overrideChangeContainerIfApplicable(Object businessDomain,
D repositoryDomain) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromRepositoryDomain
deleteMap, getBusinessDomainType
public ChangeContainerOverridableDomainMapperMember(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
public String getDataRoutePartition()
getDataRoutePartition
in interface com.broadleafcommerce.common.extension.data.DataRoutePartitionAware
public int getOrder()
getOrder
in interface DomainMapperMember
getOrder
in interface org.springframework.core.Ordered
public <D> D fromBusinessDomain(Object businessDomain, D repositoryDomain, ContextInfo contextInfo)
DomainMapperMember
fromBusinessDomain
in interface DomainMapperMember
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.public <D,P> D modifyMap(D repositoryDomain, P businessDomain, ContextInfo contextInfo, boolean allowNull)
DomainMapper
modifyMap
in interface DomainMapper
D
- The repository domain typeP
- The business domain typerepositoryDomain
- The persistence domain instance to modifybusinessDomain
- The business instance containing changes to map to the repository
domaincontextInfo
- 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.allowNull
- Whether or not null values in properties in the payload instance should be
ignored during the mapping operation.protected <D> D overrideChangeContainerIfApplicable(Object businessDomain, D repositoryDomain)
Copyright © 2021. All rights reserved.