public class WeakObjectWrapper
extends java.lang.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(java.lang.Object domainObject) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object wrapper) |
java.lang.Object |
getDomainObject() |
int |
hashCode() |
void |
setDomainObject(java.lang.Object object) |
public java.lang.Object getDomainObject()
public void setDomainObject(java.lang.Object object)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object wrapper)
equals
in class java.lang.Object
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference