CacheKey
CacheKey is an encapsulation of both the PrimaryKey and a cache specific key
This implementation is a safer implementation in the sense that it doesn't rely
on the user supplied hashcode and equals. It is also fast since the hashCode operation
is pre-calculated.
equals(java.lang.Object object)
This method uses the id implementation of equals if the mo is
null since this indicates that the id class did implement equals.
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
hashCode
public int hashCode()
these should be overwritten by extending Cache key
since they define what the cache does in the first place
Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object object)
This method uses the id implementation of equals if the mo is
null since this indicates that the id class did implement equals.
If mo is not null, then the MarshalledObject equals is used to
compare keys based on their serialized form. Relying on the
serialized form does not always work.