public interface DomainMapper
DomainMapperMember
and DomainMapperManager
.Modifier and Type | Method and Description |
---|---|
default <D> D |
deleteMap(D repositoryDomain,
ContextInfo contextInfo)
In cases where deletion actually results in a modified state to persist (e.g.
|
default <P> Class<P> |
getBusinessDomainType(Object repositoryDomain)
Ascertain the correct business domain type based on an instance of the repository domain
|
default <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.
|
@Nullable default <D,P> D modifyMap(D repositoryDomain, P businessDomain, @Nullable ContextInfo contextInfo, boolean allowNull)
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.@Nullable default <D> D deleteMap(D repositoryDomain, @Nullable ContextInfo contextInfo)
D
- The repository domain typerepositoryDomain
- The persistence domain instance to inactivatecontextInfo
- The context information used to make tracking determinations relevant to
sandboxing and multitenant concerns.@Nullable default <P> Class<P> getBusinessDomainType(Object repositoryDomain)
repositoryDomain
- The persistence domain instance to inspectCopyright © 2021. All rights reserved.