Rakesh API

biz.wedoit4u.databeans
Class PartnerStylesPK

java.lang.Object
  extended by biz.wedoit4u.databeans.PartnerStylesPK
All Implemented Interfaces:
java.io.Serializable

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

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

Version:
$Id: PartnerStylesPK.java,v 1.2 2004/05/26 11:42:32 rakesh Exp $
Author:
Rakesh Vidyadharan 03rd March 2004

Copyright 2004, wedoit4u.biz

See Also:
Serialized Form

Field Summary
 int partnerId
          The partner_id value.
 int styleClassId
          The style_class_id value.
 
Constructor Summary
PartnerStylesPK()
          Default constructor.
PartnerStylesPK(int styleClassId, int partnerId)
          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.


partnerId

public int partnerId
The partner_id value.

Constructor Detail

PartnerStylesPK

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


PartnerStylesPK

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

Parameters:
styleClassId - - The foreign key value to use.
partnerId - - 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 partnerId 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 partnerId variables with a + separating them.

Overrides:
hashCode in class java.lang.Object

Rakesh API

Copyright © 2002-2005 - Rakesh Vidyadharan