Class TransferConfigurationSpec
- java.lang.Object
-
- com.orchestranetworks.addon.dex.configuration.TransferConfigurationSpec
-
- All Implemented Interfaces:
ConfigurationSpec<EBXTable>,ImportConfigurationSpec<EBXTable>
public final class TransferConfigurationSpec extends java.lang.Object implements ImportConfigurationSpec<EBXTable>
Specifies the configuration used for data transfer.- Since:
- 2.3.0
-
-
Constructor Summary
Constructors Constructor Description TransferConfigurationSpec(com.onwbp.adaptation.Adaptation sourceDataset, java.util.List<EBXTable> sourceTables, com.onwbp.adaptation.Adaptation targetDataset, com.orchestranetworks.service.Session session)Transfers multiple tables based on the specified source tables outside of aUIService.TransferConfigurationSpec(com.onwbp.adaptation.Adaptation sourceDataset, java.util.List<EBXTable> sourceTables, java.util.Map<EBXTable,TableFilter> sourceTableFilters, com.onwbp.adaptation.Adaptation targetDataset, com.orchestranetworks.service.Session session)Transfers multiple tables based on the filtered source tables outside of aUIService.TransferConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, com.onwbp.adaptation.Adaptation targetDataset, com.orchestranetworks.service.Session session)Transfers a table and is used outside of aUIService.TransferConfigurationSpec(DataExchangeServiceContext dexServiceContext)Transfers tables based on aDataExchangeServiceContext.TransferConfigurationSpec(EBXTable sourceTable, TableFilter tableFilter, com.onwbp.adaptation.Adaptation targetDataset, com.orchestranetworks.service.Session session)Transfers a table with filter and is used outside of aUIService.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.onwbp.adaptation.AdaptationgetCurrentDataset()Returns the current dataset.com.onwbp.adaptation.AdaptationTablegetCurrentTable()Returns the current table.ImportModegetImportMode()Returns the specified import mode.ServiceTypegetServiceType()Returns the service type.com.orchestranetworks.service.SessiongetSession()Returns the current session.java.util.Map<EBXTable,TableFilter>getSourceTableFilters()Returns a map of table filters and aTableinstance as the key parameter.java.util.List<EBXTable>getSourceTables()Returns the list of source tables.com.onwbp.adaptation.AdaptationgetTargetDataset()Returns the target dataset.booleanisComputedValueIncluded()Returnstrueif the computed values on the source tables are transferred to the target tables.booleanisEmptyOrNullPrimaryKeyChecked()Returnstrueif all empty ornullprimary keys were checked before data import andfalseif this verification was not performed.booleanisEmptyOrNullValueIgnored()Returnstrueif all empty ornullvalues are ignored in the process of importing data.booleanisImportForced()Returnstrueif all triggers and constraints are disabled in the process of importing data.booleanisStopAndRollBackOnError()Returnstrueif all executed transfers have been successful and the whole transaction committed.voidsetComputedValueIncluded(boolean computedValueIncluded)Sets whether to transfer the computed values on the source tables to the target tables.voidsetEmptyOrNullPrimaryKeyChecked(boolean emptyOrNullPrimaryKeyChecked)Sets whether all empty ornullprimary keys were checked before data import andfalseif this verification was not performed.voidsetEmptyOrNullValueIgnored(boolean emptyOrNullValueIgnored)Sets whether all empty ornullvalues are ignored in the process of importing data.voidsetImportForced(boolean importForced)Sets whether all triggers and constraints are disabled in the process of importing data.voidsetImportMode(ImportMode importMode)Sets the import mode.voidsetStopAndRollBackOnError(boolean stopAndRollBackOnError)Sets whether the all executed transfers have been successful and the whole transaction committed.
-
-
-
Constructor Detail
-
TransferConfigurationSpec
public TransferConfigurationSpec(com.onwbp.adaptation.Adaptation sourceDataset, java.util.List<EBXTable> sourceTables, com.onwbp.adaptation.Adaptation targetDataset, com.orchestranetworks.service.Session session) throws DataExchangeExceptionTransfers multiple tables based on the specified source tables outside of aUIService.- Throws:
DataExchangeException
-
TransferConfigurationSpec
public TransferConfigurationSpec(com.onwbp.adaptation.Adaptation sourceDataset, java.util.List<EBXTable> sourceTables, java.util.Map<EBXTable,TableFilter> sourceTableFilters, com.onwbp.adaptation.Adaptation targetDataset, com.orchestranetworks.service.Session session) throws DataExchangeExceptionTransfers multiple tables based on the filtered source tables outside of aUIService.- Throws:
DataExchangeException
-
TransferConfigurationSpec
public TransferConfigurationSpec(DataExchangeServiceContext dexServiceContext) throws DataExchangeException
Transfers tables based on aDataExchangeServiceContext.- Throws:
DataExchangeException- Since:
- 2.4.0
-
TransferConfigurationSpec
public TransferConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, com.onwbp.adaptation.Adaptation targetDataset, com.orchestranetworks.service.Session session) throws DataExchangeExceptionTransfers a table and is used outside of aUIService.- Throws:
DataExchangeException- Since:
- 2.4.0
-
TransferConfigurationSpec
public TransferConfigurationSpec(EBXTable sourceTable, TableFilter tableFilter, com.onwbp.adaptation.Adaptation targetDataset, com.orchestranetworks.service.Session session) throws DataExchangeException
Transfers a table with filter and is used outside of aUIService.- Throws:
DataExchangeException- Since:
- 2.4.0
-
-
Method Detail
-
getServiceType
public ServiceType getServiceType()
Returns the service type.- Specified by:
getServiceTypein interfaceConfigurationSpec<EBXTable>
-
isImportForced
public boolean isImportForced()
Returnstrueif all triggers and constraints are disabled in the process of importing data.- Specified by:
isImportForcedin interfaceImportConfigurationSpec<EBXTable>
-
setImportForced
public final void setImportForced(boolean importForced)
Sets whether all triggers and constraints are disabled in the process of importing data.
-
getImportMode
public ImportMode getImportMode()
Returns the specified import mode.- Specified by:
getImportModein interfaceImportConfigurationSpec<EBXTable>
-
setImportMode
public final void setImportMode(ImportMode importMode)
Sets the import mode.
-
isEmptyOrNullValueIgnored
public boolean isEmptyOrNullValueIgnored()
Returnstrueif all empty ornullvalues are ignored in the process of importing data.- Specified by:
isEmptyOrNullValueIgnoredin interfaceImportConfigurationSpec<EBXTable>
-
setEmptyOrNullValueIgnored
public final void setEmptyOrNullValueIgnored(boolean emptyOrNullValueIgnored)
Sets whether all empty ornullvalues are ignored in the process of importing data.
-
isComputedValueIncluded
public final boolean isComputedValueIncluded()
Returnstrueif the computed values on the source tables are transferred to the target tables.- Since:
- 2.4.0
-
setComputedValueIncluded
public final void setComputedValueIncluded(boolean computedValueIncluded)
Sets whether to transfer the computed values on the source tables to the target tables.- Since:
- 2.4.0
-
isEmptyOrNullPrimaryKeyChecked
public boolean isEmptyOrNullPrimaryKeyChecked()
Returnstrueif all empty ornullprimary keys were checked before data import andfalseif this verification was not performed.- Specified by:
isEmptyOrNullPrimaryKeyCheckedin interfaceImportConfigurationSpec<EBXTable>
-
setEmptyOrNullPrimaryKeyChecked
public final void setEmptyOrNullPrimaryKeyChecked(boolean emptyOrNullPrimaryKeyChecked)
Sets whether all empty ornullprimary keys were checked before data import andfalseif this verification was not performed.
-
getTargetDataset
public com.onwbp.adaptation.Adaptation getTargetDataset()
Returns the target dataset.
-
getSourceTables
public java.util.List<EBXTable> getSourceTables()
Returns the list of source tables.- Specified by:
getSourceTablesin interfaceConfigurationSpec<EBXTable>
-
getSourceTableFilters
public java.util.Map<EBXTable,TableFilter> getSourceTableFilters()
Returns a map of table filters and aTableinstance as the key parameter. Returnsnullwhen importing CSV, Excel and XML.- Specified by:
getSourceTableFiltersin interfaceConfigurationSpec<EBXTable>
-
getCurrentDataset
public com.onwbp.adaptation.Adaptation getCurrentDataset()
Returns the current dataset.- Specified by:
getCurrentDatasetin interfaceConfigurationSpec<EBXTable>
-
getCurrentTable
public com.onwbp.adaptation.AdaptationTable getCurrentTable()
Returns the current table.- Specified by:
getCurrentTablein interfaceConfigurationSpec<EBXTable>
-
getSession
public com.orchestranetworks.service.Session getSession()
Returns the current session.- Specified by:
getSessionin interfaceConfigurationSpec<EBXTable>
-
isStopAndRollBackOnError
public boolean isStopAndRollBackOnError()
Returnstrueif all executed transfers have been successful and the whole transaction committed.- Since:
- 2.5.0
-
setStopAndRollBackOnError
public void setStopAndRollBackOnError(boolean stopAndRollBackOnError)
Sets whether the all executed transfers have been successful and the whole transaction committed.- Since:
- 2.5.0
-
-