public class WeakObjectWrapper extends Object
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.
Constructor and Description |
---|
WeakObjectWrapper(Object domainObject) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object wrapper) |
Object |
getDomainObject() |
int |
hashCode() |
void |
setDomainObject(Object object) |
public WeakObjectWrapper(Object domainObject)
EclipseLink 2.5.2, "build v20140319-9ad6abd" API Reference