Class OdZoneImpl

    • Constructor Detail

      • OdZoneImpl

        public OdZoneImpl​(IdGroupingToken tokenId)
        constructor
        Parameters:
        tokenId - for id generation
      • OdZoneImpl

        public OdZoneImpl​(OdZoneImpl other,
                          boolean deepCopy)
        Copy constructor
        Parameters:
        other - to copy
        deepCopy - when true, create a deep copy, shallow copy otherwise
    • Method Detail

      • generateOdZoneId

        protected static long generateOdZoneId​(IdGroupingToken tokenId)
        generate unique od zone id
        Parameters:
        tokenId - contiguous id generation within this group for instances of this class
        Returns:
        odZoneId
      • setOdZoneId

        protected void setOdZoneId​(long odZoneId)
        Set OD Zone Id
        Parameters:
        odZoneId - to set
      • getOdZoneId

        public long getOdZoneId()
        In addition to a zone id across all zones of any derived type, each Od zone also has a unique id across the Od zones specifically
        Specified by:
        getOdZoneId in interface OdZone
        Returns:
        od zone specific 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
        Overrides:
        recreateManagedIds in class ZoneImpl
        Parameters:
        tokenId - to use (may be null in case managed id entity does not rely on token to recreate its managed id(s))
        Returns:
        the updated internal id
      • deepClone

        public OdZoneImpl 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
        Specified by:
        deepClone in interface IdAble
        Specified by:
        deepClone in interface OdZone
        Specified by:
        deepClone in interface Zone
        Specified by:
        deepClone in class ZoneImpl
        Returns:
        deep copy of entity