Class EBXTargetTableSpec.EBXTargetTableSpecBuilder

  • Enclosing class:
    EBXTargetTableSpec

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

      • 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.
      • 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.