Interface IdAble

    • Method Detail

      • generateId

        static long generateId​(Class<?> classIdentifier,
                               IdGroupingToken idtoken)
        Convenience method to generate an id using a unique class identifier and idToken which in turn delegates to the IdGenerator.generateId()
        Parameters:
        classIdentifier - to use
        idtoken - to use
        Returns:
        generated id
      • getId

        long getId()
        Collect id of the entity
        Returns:
        id found
      • shallowClone

        IdAble shallowClone()
        Create a shallow copy of this entity
        Returns:
        shallow copy of entity
      • deepClone

        IdAble deepClone()
        An id entity should always support a deep copy, i.e., all "owned" members will be deep copied when a clone of this instance is created via this call. To be used with caution if not called by managed id container related code
        Returns:
        deep copy of entity