Interface MutableChangeSet

  • All Superinterfaces:
    ChangeSet
    All Known Implementing Classes:
    DefaultChangeSet

    public interface MutableChangeSet
    extends ChangeSet
    MutableChangeSet interface for creating changeset.
    • Method Detail

      • add

        void add​(EntityRecord... entityRecords)
        Adds new entity records to change set.
      • addAllEntityRecords

        void addAllEntityRecords​(java.util.Collection<? extends EntityRecord> entityRecords)
        Adds new entity records to change set.
      • putRelationChanges

        void putRelationChanges​(java.lang.String relationName,
                                RelationChanges changes)
        Adds new relation changes for the given relation type.
        Parameters:
        relationName - Name of relation
        changes - Relation changes
      • getRelationChangesForRelation

        RelationChanges getRelationChangesForRelation​(java.lang.String relationName)
        Gets relation changes for single relation type identified by name.
        Parameters:
        relationName - Name of relations
      • sortEntityRecords

        void sortEntityRecords()
        Sorts collection of entity records by PK.
      • sortAll

        void sortAll()
        Sorts collection of entity records and relation records by PK.
      • groupOrderInformation

        void groupOrderInformation()
        Group together information about order (position) where possible.
      • setJaloWayRecommended

        void setJaloWayRecommended​(boolean jaloWayRecommended)
        Sets the jaloWayRecommended flag. Only in some rare, exceptional cases this flag should be set to true. If it's set, it means - switching to jalo Way (instead of the direct persistence) is strongly recommended
        Parameters:
        jaloWayRecommended - jaloWayRecommended flag
      • finish

        void finish()