Class WeakObjectWrapper


  • public class WeakObjectWrapper
    extends Object
    INTENRAL:

    Purpose: This class is used for caching objects based on Object Identity instead of a Primary Key. This class acts as the Primary Key, and wraps the domain object itself in a weak reference. hashCode and equals methods are implemented to insure identity is maintained.

    Since:
    10g
    Author:
    mmacivor
    • Constructor Detail

      • WeakObjectWrapper

        public WeakObjectWrapper​(Object domainObject)
    • Method Detail

      • getDomainObject

        public Object getDomainObject()
      • setDomainObject

        public void setDomainObject​(Object object)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object