java.lang.Object
com.orchestranetworks.addon.dint.mapping.TableMapping<SF,TF>
- Type Parameters:
SF- Source field type.TF- Target field type.
Mapping between a
SourceTable and a TargetTable.- Since:
- 4.1.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ConstantTransformationMappingStep<SF,TF> fromConstantStep(String value) Initializes a mapping from the specified constant transformation.abstract SourceFieldMappingStep<SF,TF> fromSourceFieldStep(SF field) Initializes a mapping from the specified source field.abstract TableMapping<SF,TF> Maps a source field and a target field.final TableMapping<SF,TF> mapFieldsWithMatcher(Collection<SF> sourceFields, Collection<TF> targetFields, FieldMatcher<SF, TF> fieldMatcher) Maps automatically all source fields and target fields using the providedFieldMatcher.static <ST extends Table<SF>,SF extends Field, TT extends Table<TF>, TF extends Field>
TableMapping<SF,TF> of(SourceTable<ST, SF> source, TargetTable<TT, TF>... targets) Creates a new instance from a source table and one or many target tables.
-
Constructor Details
-
TableMapping
public TableMapping()
-
-
Method Details
-
of
@SafeVarargs public static <ST extends Table<SF>,SF extends Field, TableMapping<SF,TT extends Table<TF>, TF extends Field> TF> of(SourceTable<ST, SF> source, TargetTable<TT, TF>... targets) Creates a new instance from a source table and one or many target tables.- Type Parameters:
ST- Source table type.SF- Source field type.TT- Target table type.TF- Target table type.- Parameters:
source- The source table.targets- The target tables.- Throws:
IllegalArgumentException- if any table isnullor invalid.
-
mapFields
Maps a source field and a target field. -
mapFieldsWithMatcher
public final TableMapping<SF,TF> mapFieldsWithMatcher(Collection<SF> sourceFields, Collection<TF> targetFields, FieldMatcher<SF, TF> fieldMatcher) Maps automatically all source fields and target fields using the providedFieldMatcher. -
fromSourceFieldStep
Initializes a mapping from the specified source field. -
fromConstantStep
Initializes a mapping from the specified constant transformation.
-