Module org.eclipse.persistence.core
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
- Author:
- mmacivor
-
-
Field Summary
Fields Modifier and Type Field Description protected WeakReferencereference
-
Constructor Summary
Constructors Constructor Description WeakObjectWrapper(Object domainObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object wrapper)ObjectgetDomainObject()inthashCode()voidsetDomainObject(Object object)
-
-
-
Field Detail
-
reference
protected WeakReference reference
-
-
Constructor Detail
-
WeakObjectWrapper
public WeakObjectWrapper(Object domainObject)
-
-