Class EBXTargetTableSpec.EBXTargetTableSpecBuilder
- java.lang.Object
-
- com.orchestranetworks.addon.dint.dataconnector.spec.EBXTargetTableSpec.EBXTargetTableSpecBuilder
-
- Enclosing class:
- EBXTargetTableSpec
public static final class EBXTargetTableSpec.EBXTargetTableSpecBuilder extends java.lang.Object
Builder for creating an instance ofEBXTargetTableSpec
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EBXTargetTableSpec
build()
Builds anEBXTargetTableSpec
instance.EBXTargetTableSpec.EBXTargetTableSpecBuilder
setForeignKeyHierarchyIncluded(boolean included)
Specifies to include foreign key hierarchies or not.EBXTargetTableSpec.EBXTargetTableSpecBuilder
setNullOrEmptyPrimaryKeyAllowed(boolean allowed)
Specifies if a null or empty primary key is allowed.EBXTargetTableSpec.EBXTargetTableSpecBuilder
setNullOrEmptyValueIgnored(boolean ignored)
Specifies if null or empty values are ignored.EBXTargetTableSpec.EBXTargetTableSpecBuilder
setUnsupportedDataTypes(DataType... dataTypes)
Set the unsupported data types.EBXTargetTableSpec.EBXTargetTableSpecBuilder
setWriteMode(EBXWriteMode writeMode)
Sets the EBX write mode.
-
-
-
Method Detail
-
build
public EBXTargetTableSpec build()
Builds anEBXTargetTableSpec
instance.
-
setWriteMode
public EBXTargetTableSpec.EBXTargetTableSpecBuilder setWriteMode(EBXWriteMode writeMode)
Sets the EBX write mode.- Parameters:
writeMode
- The EBX write mode.
-
setNullOrEmptyValueIgnored
public EBXTargetTableSpec.EBXTargetTableSpecBuilder setNullOrEmptyValueIgnored(boolean ignored)
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.
-
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
public EBXTargetTableSpec.EBXTargetTableSpecBuilder setUnsupportedDataTypes(DataType... dataTypes)
Set the unsupported data types.- Parameters:
dataTypes
- The unsupported data types.
-
-