com.caucho.amber.entity
Class EntityKey

java.lang.Object
  extended by com.caucho.amber.entity.EntityKey

public class EntityKey
extends java.lang.Object

Key to handle the merged identity hash code.


Constructor Summary
EntityKey()
           
EntityKey(java.lang.Class type, java.lang.Object key)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns equality.
 java.lang.Object getKey()
          Returns the key
 java.lang.Class getType()
          Returns the home value.
 int hashCode()
          Returns the hash.
 void init(java.lang.Class type, java.lang.Object key)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityKey

public EntityKey()

EntityKey

public EntityKey(java.lang.Class type,
                 java.lang.Object key)
Method Detail

init

public void init(java.lang.Class type,
                 java.lang.Object key)

getType

public java.lang.Class getType()
Returns the home value.


getKey

public java.lang.Object getKey()
Returns the key


hashCode

public int hashCode()
Returns the hash.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Returns equality.

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object