Class EBXTargetTableSpec.EBXTargetTableSpecBuilder

java.lang.Object
com.orchestranetworks.addon.dint.dataconnector.spec.EBXTargetTableSpec.EBXTargetTableSpecBuilder
Enclosing class:
EBXTargetTableSpec

public static final class EBXTargetTableSpec.EBXTargetTableSpecBuilder extends Object
Builder for creating an instance of EBXTargetTableSpec.
  • Method Details

    • build

      public EBXTargetTableSpec build()
      Builds an EBXTargetTableSpec instance.
    • setWriteMode

      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 - Sets true if you want to ignore null or empty values.
    • setForceImport

      public EBXTargetTableSpec.EBXTargetTableSpecBuilder setForceImport(boolean forceImport)
    • 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 - Sets true 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 from TargetTable.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 to false to configure foreign keys as normal fields, not hierarchies.

      Parameters:
      included - Sets true 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.