com.ibm.websphere.samples.plantsbywebsphereejb
Class OrderKey

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

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

The key class of the Order entity bean.

See Also:
Serialized Form

Field Summary
 java.lang.String orderID
           
 
Constructor Summary
OrderKey()
          Constructs an OrderKey object.
OrderKey(java.lang.String orderID)
          Constructs a newly allocated OrderKey object that represents the primitive long argument.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Determines if the OrderKey object passed to the method matches this OrderKey object.
 java.lang.String getOrderID()
          Get accessor for persistent attribute: orderID
 int hashCode()
          Generates a hash code for this OrderKey object.
 void setOrderID(java.lang.String newOrderID)
          Set accessor for persistent attribute: orderID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

orderID

public java.lang.String orderID
Constructor Detail

OrderKey

public OrderKey()
Constructs an OrderKey object.


OrderKey

public OrderKey(java.lang.String orderID)
Constructs a newly allocated OrderKey object that represents the primitive long argument.

Method Detail

equals

public boolean equals(java.lang.Object obj)
Determines if the OrderKey object passed to the method matches this OrderKey object.

Overrides:
equals in class java.lang.Object
Parameters:
obj - java.lang.Object The OrderKey object to compare to this OrderKey object.
Returns:
boolean The pass object is either equal to this OrderKey object (true) or not.

hashCode

public int hashCode()
Generates a hash code for this OrderKey object.

Overrides:
hashCode in class java.lang.Object
Returns:
int The hash code.

getOrderID

public java.lang.String getOrderID()
Get accessor for persistent attribute: orderID


setOrderID

public void setOrderID(java.lang.String newOrderID)
Set accessor for persistent attribute: orderID