Class WeakObjectWrapper

java.lang.Object
org.eclipse.persistence.internal.oxm.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
  • Field Details

  • Constructor Details

    • WeakObjectWrapper

      public WeakObjectWrapper(Object domainObject)
  • Method Details

    • getDomainObject

      public Object getDomainObject()
    • setDomainObject

      public void setDomainObject(Object object)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object wrapper)
      Overrides:
      equals in class Object