SF - Source field type.TF - Target field type.public abstract class TableMapping<SF extends Field,TF extends Field> extends Object
SourceTable and a TargetTable.MappingStep| Constructor and Description |
|---|
TableMapping() |
| Modifier and Type | Method and Description |
|---|---|
abstract 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> |
mapFields(SF sourceField,
TF targetField)
Maps a source field and a target field.
|
TableMapping<SF,TF> |
mapFieldsWithMatcher(Collection<SF> sourceFields,
Collection<TF> targetFields,
FieldMatcher<SF,TF> fieldMatcher)
Maps automatically all source fields and target fields using the provided
FieldMatcher. |
static <ST extends Table<SF>,SF extends Field,TT extends Table<TF>,TF extends Field> |
of(SourceTable<ST,SF> source,
TargetTable<TT,TF>... targets)
Creates a new instance from a source table and one or many target tables.
|
public 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)
ST - Source table type.SF - Source field type.TT - Target table type.TF - Target table type.source - The source table.targets - The target tables.IllegalArgumentException - if any table is null or invalid.public abstract TableMapping<SF,TF> mapFields(SF sourceField, TF targetField)
public final TableMapping<SF,TF> mapFieldsWithMatcher(Collection<SF> sourceFields, Collection<TF> targetFields, FieldMatcher<SF,TF> fieldMatcher)
FieldMatcher.public abstract SourceFieldMappingStep<SF,TF> fromSourceFieldStep(SF field)
public abstract ConstantTransformationMappingStep<SF,TF> fromConstantStep(String value)