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.ObjectBuilder for creating an instance ofEBXTargetTableSpec.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EBXTargetTableSpecbuild()Builds anEBXTargetTableSpecinstance.EBXTargetTableSpec.EBXTargetTableSpecBuildersetForeignKeyHierarchyIncluded(boolean included)Specifies to include foreign key hierarchies or not.EBXTargetTableSpec.EBXTargetTableSpecBuildersetNullOrEmptyPrimaryKeyAllowed(boolean allowed)Specifies if a null or empty primary key is allowed.EBXTargetTableSpec.EBXTargetTableSpecBuildersetNullOrEmptyValueIgnored(boolean ignored)Specifies if null or empty values are ignored.EBXTargetTableSpec.EBXTargetTableSpecBuildersetUnsupportedDataTypes(DataType... dataTypes)Set the unsupported data types.EBXTargetTableSpec.EBXTargetTableSpecBuildersetWriteMode(EBXWriteMode writeMode)Sets the EBX write mode.
-
-
-
Method Detail
-
build
public EBXTargetTableSpec build()
Builds anEBXTargetTableSpecinstance.
-
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- Setstrueif 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- Setstrueif 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
trueand 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 tofalseto configure foreign keys as normal fields, not hierarchies.- Parameters:
included- Setstrueif 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.
-
-