public final class TemplateConfig<ST extends SourceTable<?,?>,TT extends TargetTable<?,?>> extends Object
This allows modification of an existing configuration in a user template.
TemplateSpec.getTemplateConfig()
Modifier and Type | Method and Description |
---|---|
static <ST extends SourceTable<?,?>,TT extends TargetTable<?,?>> |
forDataset(String templateName,
com.onwbp.adaptation.Adaptation dataset)
Specifies a template by name at the dataset level.
|
static <ST extends SourceTable<?,?>,TT extends TargetTable<?,?>> |
forTable(String templateName,
com.onwbp.adaptation.AdaptationTable table)
Specifies a template by name at the table level.
|
void |
modifyTableMapping(TableMappingSelector<ST,TT> selector,
TableMappingModifier<ST,TT> modifier)
Modifies an existing table mapping in the template.
|
public static <ST extends SourceTable<?,?>,TT extends TargetTable<?,?>> TemplateConfig<ST,TT> forTable(String templateName, com.onwbp.adaptation.AdaptationTable table)
templateName
- The unique name of the template for each data model.table
- The table used to look up the template with the specified template name.public static <ST extends SourceTable<?,?>,TT extends TargetTable<?,?>> TemplateConfig<ST,TT> forDataset(String templateName, com.onwbp.adaptation.Adaptation dataset)
templateName
- The unique name of the template for each data model.dataset
- The dataset used to look up the template with the specified template name.public void modifyTableMapping(TableMappingSelector<ST,TT> selector, TableMappingModifier<ST,TT> modifier)