Interface ManagedIdEntityFactory<E extends ManagedId>

    • Method Detail

      • setIdGroupingToken

        void setIdGroupingToken​(IdGroupingToken tokenId)
        Each factory needs a token to allow all underlying factory methods to generated ids uniquely tied to the group token the entities belong to
        Parameters:
        tokenId - , contiguous id generation within this group of entity instances created with the factory methods
      • getIdGroupingToken

        IdGroupingToken getIdGroupingToken()
        Collect the id grouping token used by this factory
        Returns:
        idGroupingToken the id grouping token used by this builder
      • createUniqueShallowCopyOf

        E createUniqueShallowCopyOf​(ManagedId entityToCopy)
        Create a shallow copy of the passed in entity, albeit with unique internal ids. Not registered on the container.
        Parameters:
        entityToCopy - the entity to copy
        Returns:
        new entity based on passed in entity
      • createUniqueDeepCopyOf

        E createUniqueDeepCopyOf​(ManagedId entityToCopy)
        Create a deep copy of the passed in entity, including unique internal ids. Not registered on the container.
        Parameters:
        entityToCopy - the entity to copy
        Returns:
        new entity based on passed in entity