public class MultiOccurrenceToMultiOccurrence extends Object implements AggregateSpecification
| Modifier and Type | Field and Description |
|---|---|
protected MapperFactory |
mapperFactory
The MapperFactory relevant to this code generation request
|
| Constructor and Description |
|---|
MultiOccurrenceToMultiOccurrence() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesTo(FieldMap fieldMap)
Tests whether this Specification applies to the specified MappedTypePair
|
String |
generateMappingCode(List<FieldMap> fieldMappings,
SourceCodeContext code)
Generates the code to support a (potentially parallel) mapping from one
or more multi-occurrence fields in the source type to one or more
multi-occurrence fields in the destination type.
|
void |
setMapperFactory(MapperFactory mapperFactory) |
protected MapperFactory mapperFactory
public String generateMappingCode(List<FieldMap> fieldMappings, SourceCodeContext code)
generateMappingCode in interface AggregateSpecificationfieldMappings - the field mappings to be appliedcode - this SourceCodeBuilderpublic void setMapperFactory(MapperFactory mapperFactory)
setMapperFactory in interface AggregateSpecificationpublic boolean appliesTo(FieldMap fieldMap)
BaseSpecificationappliesTo in interface BaseSpecificationCopyright © 2017 Glasnost. All Rights Reserved.