Rakesh API

biz.wedoit4u.ejb.entity
Class StyleAttributesPK

java.lang.Object
  extended by biz.wedoit4u.ejb.entity.StyleAttributesPK
All Implemented Interfaces:
java.io.Serializable

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

A primary key class for the style_attributes table. This class represents the composite primary key comprised of the style_class_id and customer_Id columns in the table.

Version:
$Id: StyleAttributesPK.java,v 1.2 2004/05/26 11:42:35 rakesh Exp $
Author:
Rakesh Vidyadharan 28th October 2003

Copyright 2003, wedoit4u.biz

See Also:
Serialized Form

Field Summary
 int customerId
          The customer_id value.
 int styleClassId
          The style_class_id value.
 
Constructor Summary
StyleAttributesPK()
          Default constructor.
StyleAttributesPK(int styleClassId, int customerId)
          Construct a new instance of the primary key class using the components of the primary key.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Over-ridden form of the equals method.
 int hashCode()
          Over-ridden form of the hashCode method.
 java.lang.String toString()
          Over-ridden form of the hashCode method.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

styleClassId

public int styleClassId
The style_class_id value.


customerId

public int customerId
The customer_id value.

Constructor Detail

StyleAttributesPK

public StyleAttributesPK()
Default constructor. Nothing special needs to be done.


StyleAttributesPK

public StyleAttributesPK(int styleClassId,
                         int customerId)
Construct a new instance of the primary key class using the components of the primary key.

Parameters:
styleClassId - - The foreign key value to use.
customerId - - The foreign key value to use.
Method Detail

equals

public boolean equals(java.lang.Object obj)
Over-ridden form of the equals method. This method is used by the EJB container to compare two instances of the primary key class to determine if two cached entity bean instances represent the same database data.

Overrides:
equals in class java.lang.Object
Parameters:
obj - - The primary key class to compare this class to.
Returns:
boolean - Returns true if the classes are identical, and have the same fields.

toString

public java.lang.String toString()
Over-ridden form of the hashCode method. Return a String object that is obtained by contatenating the styleClassId and customerId variables with a + separating them.

Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Over-ridden form of the hashCode method. This method is used by the EJB container to look up the cached instances of the associated entity beans. Return the hashCode of a String object that is obtained by contatenating the styleClassId and customerId variables with a + separating them.

Overrides:
hashCode in class java.lang.Object

Rakesh API

Copyright © 2002-2005 - Rakesh Vidyadharan