Class DefaultChangeSetBuilder

  • All Implemented Interfaces:
    ChangeSetBuilder

    public class DefaultChangeSetBuilder
    extends java.lang.Object
    implements ChangeSetBuilder
    Default change set builder used for direct model service persistence.
    • Constructor Detail

      • DefaultChangeSetBuilder

        public DefaultChangeSetBuilder()
    • Method Detail

      • build

        public ChangeSet build​(java.util.Collection<ModelWrapper> wrappers)
        Description copied from interface: ChangeSetBuilder
        Generic method that builds change set for the provided wrappers.
        It can be used for both remove and save operations, as well as mixed scenario.
        Specified by:
        build in interface ChangeSetBuilder
        Parameters:
        wrappers - Collection of model wrappers
        Returns:
        instance of ChangeSet
      • buildForModification

        public ChangeSet buildForModification​(java.util.Collection<ModelWrapper> wrappers)
        Description copied from interface: ChangeSetBuilder
        Builds change set for persist operation with insert and update records, including relation manipulation records.
        Specified by:
        buildForModification in interface ChangeSetBuilder
        Parameters:
        wrappers - Collection of model wrappers
        Returns:
        instance of ChangeSet
      • setLocalizedAttributesProcessor

        public void setLocalizedAttributesProcessor​(LocalizedAttributesProcessor localizedAttributesProcessor)
      • setEnumerationDelegate

        public void setEnumerationDelegate​(EnumerationDelegate enumerationDelegate)
      • setNonNavigableRelationsDAO

        public void setNonNavigableRelationsDAO​(NonNavigableRelationsDAO nonNavigableRelationsDAO)