public static interface MappingBuilderContext.MappingResolver
Modifier and Type | Method and Description |
---|---|
MethodReference |
getFactoryMethod(Method mappingMethod,
Type target,
SelectionParameters selectionParameters)
returns a no arg factory method
|
Assignment |
getTargetAssignment(Method mappingMethod,
String mappedElement,
Type sourceType,
Type targetType,
String targetPropertyName,
FormattingParameters formattingParameters,
SelectionParameters selectionParameters,
SourceRHS sourceRHS,
boolean preferUpdateMethods)
returns a parameter assignment
|
Set<VirtualMappingMethod> |
getUsedVirtualMappings() |
Assignment getTargetAssignment(Method mappingMethod, String mappedElement, Type sourceType, Type targetType, String targetPropertyName, FormattingParameters formattingParameters, SelectionParameters selectionParameters, SourceRHS sourceRHS, boolean preferUpdateMethods)
mappingMethod
- target mapping methodmappedElement
- used for error messagessourceType
- parameter to matchtargetType
- return type to matchtargetPropertyName
- name of the target propertyformattingParameters
- used for formatting dates and numbersselectionParameters
- parameters used in the selection processsourceRHS
- source informationpreferUpdateMethods
- selection should prefer update methods when present.MethodReference getFactoryMethod(Method mappingMethod, Type target, SelectionParameters selectionParameters)
mappingMethod
- target mapping methodtarget
- return type to matchselectionParameters
- parameters used in the selection processSet<VirtualMappingMethod> getUsedVirtualMappings()
Copyright © 2012-2016 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.