Class TransferConfigurationSpec
java.lang.Object
com.orchestranetworks.addon.dex.configuration.TransferConfigurationSpec
- All Implemented Interfaces:
ConfigurationSpec<EBXTable>
,ImportConfigurationSpec<EBXTable>
public final class TransferConfigurationSpec
extends Object
implements ImportConfigurationSpec<EBXTable>
Specifies the configuration used for data transfer.
- Since:
- 2.3.0
-
Constructor Summary
ConstructorsConstructorDescriptionTransferConfigurationSpec
(com.onwbp.adaptation.Adaptation sourceDataset, 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, List<EBXTable> sourceTables, 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
Modifier and TypeMethodDescriptioncom.onwbp.adaptation.Adaptation
Returns the current dataset.com.onwbp.adaptation.AdaptationTable
Returns the current table.Returns the specified import mode.Returns the service type.com.orchestranetworks.service.Session
Returns the current session.Returns a map of table filters and aTable
instance as the key parameter.Returns the list of source tables.com.onwbp.adaptation.Adaptation
Returns the target dataset.final boolean
Returnstrue
if the computed values on the source tables are transferred to the target tables.boolean
Returnstrue
if all empty ornull
primary keys were checked before data import andfalse
if this verification was not performed.boolean
Returnstrue
if all empty ornull
values are ignored in the process of importing data.boolean
Returnstrue
if all triggers and constraints are disabled in the process of importing data.boolean
Returnstrue
if all executed transfers have been successful and the whole transaction committed.final void
setComputedValueIncluded
(boolean computedValueIncluded) Sets whether to transfer the computed values on the source tables to the target tables.final void
setEmptyOrNullPrimaryKeyChecked
(boolean emptyOrNullPrimaryKeyChecked) Sets whether all empty ornull
primary keys were checked before data import andfalse
if this verification was not performed.final void
setEmptyOrNullValueIgnored
(boolean emptyOrNullValueIgnored) Sets whether all empty ornull
values are ignored in the process of importing data.final void
setImportForced
(boolean importForced) Sets whether all triggers and constraints are disabled in the process of importing data.final void
setImportMode
(ImportMode importMode) Sets the import mode.void
setStopAndRollBackOnError
(boolean stopAndRollBackOnError) Sets whether the all executed transfers have been successful and the whole transaction committed.
-
Constructor Details
-
TransferConfigurationSpec
public TransferConfigurationSpec(com.onwbp.adaptation.Adaptation sourceDataset, List<EBXTable> sourceTables, com.onwbp.adaptation.Adaptation targetDataset, com.orchestranetworks.service.Session session) throws DataExchangeException Transfers multiple tables based on the specified source tables outside of aUIService
.- Throws:
DataExchangeException
-
TransferConfigurationSpec
public TransferConfigurationSpec(com.onwbp.adaptation.Adaptation sourceDataset, List<EBXTable> sourceTables, 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 DataExchangeException Transfers 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 Details
-
getServiceType
Returns the service type.- Specified by:
getServiceType
in interfaceConfigurationSpec<EBXTable>
-
isImportForced
public boolean isImportForced()Returnstrue
if all triggers and constraints are disabled in the process of importing data.- Specified by:
isImportForced
in interfaceImportConfigurationSpec<EBXTable>
-
setImportForced
public final void setImportForced(boolean importForced) Sets whether all triggers and constraints are disabled in the process of importing data. -
getImportMode
Returns the specified import mode.- Specified by:
getImportMode
in interfaceImportConfigurationSpec<EBXTable>
-
setImportMode
Sets the import mode. -
isEmptyOrNullValueIgnored
public boolean isEmptyOrNullValueIgnored()Returnstrue
if all empty ornull
values are ignored in the process of importing data.- Specified by:
isEmptyOrNullValueIgnored
in interfaceImportConfigurationSpec<EBXTable>
-
setEmptyOrNullValueIgnored
public final void setEmptyOrNullValueIgnored(boolean emptyOrNullValueIgnored) Sets whether all empty ornull
values are ignored in the process of importing data. -
isComputedValueIncluded
public final boolean isComputedValueIncluded()Returnstrue
if 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()Returnstrue
if all empty ornull
primary keys were checked before data import andfalse
if this verification was not performed.- Specified by:
isEmptyOrNullPrimaryKeyChecked
in interfaceImportConfigurationSpec<EBXTable>
-
setEmptyOrNullPrimaryKeyChecked
public final void setEmptyOrNullPrimaryKeyChecked(boolean emptyOrNullPrimaryKeyChecked) Sets whether all empty ornull
primary keys were checked before data import andfalse
if this verification was not performed. -
getTargetDataset
public com.onwbp.adaptation.Adaptation getTargetDataset()Returns the target dataset. -
getSourceTables
Returns the list of source tables.- Specified by:
getSourceTables
in interfaceConfigurationSpec<EBXTable>
-
getSourceTableFilters
Returns a map of table filters and aTable
instance as the key parameter. Returnsnull
when importing CSV, Excel and XML.- Specified by:
getSourceTableFilters
in interfaceConfigurationSpec<EBXTable>
-
getCurrentDataset
public com.onwbp.adaptation.Adaptation getCurrentDataset()Returns the current dataset.- Specified by:
getCurrentDataset
in interfaceConfigurationSpec<EBXTable>
-
getCurrentTable
public com.onwbp.adaptation.AdaptationTable getCurrentTable()Returns the current table.- Specified by:
getCurrentTable
in interfaceConfigurationSpec<EBXTable>
-
getSession
public com.orchestranetworks.service.Session getSession()Returns the current session.- Specified by:
getSession
in interfaceConfigurationSpec<EBXTable>
-
isStopAndRollBackOnError
public boolean isStopAndRollBackOnError()Returnstrue
if 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
-