Class EBXTransferTemplateSpec
- java.lang.Object
-
- com.orchestranetworks.addon.dint.template.TemplateSpec<EBXSourceTable,EBXTargetTable>
-
- com.orchestranetworks.addon.dint.template.EBXTransferTemplateSpec
-
public final class EBXTransferTemplateSpec extends TemplateSpec<EBXSourceTable,EBXTargetTable>
Template specification for transfer data from a EBX table to another EBX table.- Since:
- 4.2.0
-
-
Constructor Summary
Constructors Constructor Description EBXTransferTemplateSpec(TemplateConfig<EBXSourceTable,EBXTargetTable> templateConfig, com.orchestranetworks.service.Session session)Constructs a new instance.EBXTransferTemplateSpec(java.lang.String templateId, com.orchestranetworks.service.Session session)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTargetDatasets(java.util.List<com.onwbp.adaptation.Adaptation> datasets)Adds target datasets to overwrite those configured in the template.voidconfigureProcedure(java.util.function.Consumer<com.orchestranetworks.service.ProcedureContext> config)Configures theProcedureContextinstance when writing in EBX.java.util.function.Consumer<com.orchestranetworks.service.ProcedureContext>getProcedureConfig()Returns theProcedureContextconfiguration ornull.com.onwbp.adaptation.AdaptationgetSourceDataset()Returns the source dataset that overwrites the one configured in the template.java.util.List<com.onwbp.adaptation.Adaptation>getTargetDatasets()Returns the target datasets that overwrite those configured in the template.voidsetRequest(com.orchestranetworks.schema.Path tablePath, com.onwbp.adaptation.Request request)Sets the request to filter records for specific table.voidsetSourceDataset(com.onwbp.adaptation.Adaptation dataset)Overwrites the source dataset configured in the template.-
Methods inherited from class com.orchestranetworks.addon.dint.template.TemplateSpec
getSession, getTemplateConfig, getTemplateId
-
-
-
-
Constructor Detail
-
EBXTransferTemplateSpec
public EBXTransferTemplateSpec(java.lang.String templateId, com.orchestranetworks.service.Session session)Constructs a new instance.- Parameters:
templateId- The unique template id.session- The session.- Throws:
java.lang.IllegalArgumentException- If any parameter isnull.
-
EBXTransferTemplateSpec
public EBXTransferTemplateSpec(TemplateConfig<EBXSourceTable,EBXTargetTable> templateConfig, com.orchestranetworks.service.Session session)
Constructs a new instance.- Parameters:
templateConfig- The template configuration.session- The session.- Throws:
java.lang.IllegalArgumentException- If any parameter isnull.- Since:
- 4.5.0
-
-
Method Detail
-
setSourceDataset
public void setSourceDataset(com.onwbp.adaptation.Adaptation dataset)
Overwrites the source dataset configured in the template.- Parameters:
dataset- the dataset that overwrites the existing dataset.- Since:
- 4.3.2
-
getSourceDataset
public com.onwbp.adaptation.Adaptation getSourceDataset()
Returns the source dataset that overwrites the one configured in the template.Returns
nullif not set.- Since:
- 4.3.2
- See Also:
setSourceDataset(Adaptation)
-
addTargetDatasets
public void addTargetDatasets(java.util.List<com.onwbp.adaptation.Adaptation> datasets)
Adds target datasets to overwrite those configured in the template.- Parameters:
datasets- list of datasets that overwrites the existing datasets.- Since:
- 4.3.2
-
getTargetDatasets
public java.util.List<com.onwbp.adaptation.Adaptation> getTargetDatasets()
Returns the target datasets that overwrite those configured in the template.- Since:
- 4.3.2
- See Also:
addTargetDatasets(List)
-
configureProcedure
public void configureProcedure(java.util.function.Consumer<com.orchestranetworks.service.ProcedureContext> config)
Configures theProcedureContextinstance when writing in EBX.- Since:
- 4.5.0
- See Also:
Procedure.execute(ProcedureContext)
-
getProcedureConfig
public java.util.function.Consumer<com.orchestranetworks.service.ProcedureContext> getProcedureConfig()
Returns theProcedureContextconfiguration ornull.- Since:
- 4.5.0
- See Also:
Procedure.execute(ProcedureContext)
-
setRequest
public void setRequest(com.orchestranetworks.schema.Path tablePath, com.onwbp.adaptation.Request request)Sets the request to filter records for specific table.- Since:
- 6.1.0
-
-