Class EBXTargetTableSpec.EBXTargetTableSpecBuilder
java.lang.Object
com.orchestranetworks.addon.dint.dataconnector.spec.EBXTargetTableSpec.EBXTargetTableSpecBuilder
- Enclosing class:
- EBXTargetTableSpec
Builder for creating an instance of
EBXTargetTableSpec
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds anEBXTargetTableSpec
instance.setForceImport
(boolean forceImport) setForeignKeyHierarchyIncluded
(boolean included) Specifies to include foreign key hierarchies or not.setNullOrEmptyPrimaryKeyAllowed
(boolean allowed) Specifies if a null or empty primary key is allowed.setNullOrEmptyValueIgnored
(boolean ignored) Specifies if null or empty values are ignored.setUnsupportedDataTypes
(DataType... dataTypes) Set the unsupported data types.setWriteMode
(EBXWriteMode writeMode) Sets the EBX write mode.
-
Method Details
-
build
Builds anEBXTargetTableSpec
instance. -
setWriteMode
Sets the EBX write mode.- Parameters:
writeMode
- The EBX write mode.
-
setNullOrEmptyValueIgnored
Specifies if null or empty values are ignored.By default, existing target records are not updated with empty or null values from the source. Disable this option to update the target with these values.
- Parameters:
ignored
- Setstrue
if you want to ignore null or empty values.
-
setForceImport
-
setNullOrEmptyPrimaryKeyAllowed
public EBXTargetTableSpec.EBXTargetTableSpecBuilder setNullOrEmptyPrimaryKeyAllowed(boolean allowed) Specifies if a null or empty primary key is allowed.The add-on verifies that all primary keys are mapped and validates the data before writing into the target table. If you disable this option, the add-on will not perform this verification.
- Parameters:
allowed
- Setstrue
if you want to allow null or empty primary key.
-
setForeignKeyHierarchyIncluded
public EBXTargetTableSpec.EBXTargetTableSpecBuilder setForeignKeyHierarchyIncluded(boolean included) Specifies to include foreign key hierarchies or not.If the parameter is
true
and in case of composite foreign key, a foreign key field returned fromTargetTable.getMappedFields()
will has children for all primary keys in referred table.In case both the source table and the target table are
EBXTable
, this should be set tofalse
to configure foreign keys as normal fields, not hierarchies.- Parameters:
included
- Setstrue
if you want to include foreign key hierarchies.
-
setUnsupportedDataTypes
Set the unsupported data types.- Parameters:
dataTypes
- The unsupported data types.
-