com.ibm.websphere.samples.plantsbywebsphereejb
Class IdGeneratorKey

java.lang.Object
  extended by com.ibm.websphere.samples.plantsbywebsphereejb.IdGeneratorKey
All Implemented Interfaces:
java.io.Serializable

public class IdGeneratorKey
extends java.lang.Object
implements java.io.Serializable

Key class for Entity Bean: IdGenerator

See Also:
Serialized Form

Field Summary
 java.lang.String idName
          Implementation field for persistent attribute: idName
 
Constructor Summary
IdGeneratorKey()
          Creates an empty key for Entity Bean: IdGenerator
IdGeneratorKey(java.lang.String idName)
          Creates a key for Entity Bean: IdGenerator
 
Method Summary
 boolean equals(java.lang.Object otherKey)
          Returns true if both keys are equal.
 java.lang.String getIdName()
          Get accessor for persistent attribute: idName
 int hashCode()
          Returns the hash code for the key.
 void setIdName(java.lang.String newIdName)
          Set accessor for persistent attribute: idName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

idName

public java.lang.String idName
Implementation field for persistent attribute: idName

Constructor Detail

IdGeneratorKey

public IdGeneratorKey()
Creates an empty key for Entity Bean: IdGenerator


IdGeneratorKey

public IdGeneratorKey(java.lang.String idName)
Creates a key for Entity Bean: IdGenerator

Method Detail

equals

public boolean equals(java.lang.Object otherKey)
Returns true if both keys are equal.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns the hash code for the key.

Overrides:
hashCode in class java.lang.Object

getIdName

public java.lang.String getIdName()
Get accessor for persistent attribute: idName


setIdName

public void setIdName(java.lang.String newIdName)
Set accessor for persistent attribute: idName