Class GraphEntityImpl

    • Constructor Detail

      • GraphEntityImpl

        public GraphEntityImpl​(IdGroupingToken tokenId,
                               Class<? extends GraphEntity> clazz)
        Constructor
        Parameters:
        tokenId - to use
        clazz - to register for
      • GraphEntityImpl

        public GraphEntityImpl​(GraphEntityImpl other)
        Copy constructor
        Parameters:
        other - to copy from
    • Method Detail

      • generateAndSetId

        protected long generateAndSetId​(IdGroupingToken tokenId)
        generate id based on provided token and class and set it on this instance
        Parameters:
        tokenId - to use for id generation
        Returns:
        created and set id
      • generateId

        protected static long generateId​(IdGroupingToken idGroupingToken,
                                         Class<? extends IdAble> clazz)
        Generate an id based on provided token and class
        Parameters:
        idGroupingToken - to use
        clazz - to register for
        Returns:
        generated id
      • recreateManagedIds

        public long recreateManagedIds​(IdGroupingToken tokenId)
        recreate the internal id(s) and set them including the Idable id
        Specified by:
        recreateManagedIds in interface ManagedId
        Parameters:
        tokenId - to use
        Returns:
        the updated internal id