edu.iastate.metnet.hibernate
Class InteractionpartsKey

java.lang.Object
  extended by edu.iastate.metnet.hibernate.InteractionpartsKey
All Implemented Interfaces:
java.io.Serializable

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

A class representing a composite primary key id for the interactionparts table. This object should only be instantiated for use with instances of the Interactionparts class.

See Also:
Serialized Form

Constructor Summary
InteractionpartsKey()
          Simple constructor of InteractionpartsKey instances.
 
Method Summary
 boolean equals(java.lang.Object rhs)
          Implementation of the equals comparison on the basis of equality of the id components.
 java.lang.Integer getBlockid()
          Returns the value of the blockid property.
 java.lang.Integer getPart()
          Returns the value of the part property.
 java.lang.String getRole()
          Returns the value of the role property.
 int hashCode()
          Implementation of the hashCode method conforming to the Bloch pattern with the exception of array properties (these are very unlikely primary key types).
 void setBlockid(java.lang.Integer blockid)
          Sets the value of the blockid property.
 void setPart(java.lang.Integer part)
          Sets the value of the part property.
 void setRole(java.lang.String role)
          Sets the value of the role property.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InteractionpartsKey

public InteractionpartsKey()
Simple constructor of InteractionpartsKey instances.

Method Detail

getBlockid

public java.lang.Integer getBlockid()
Returns the value of the blockid property.

Returns:
java.lang.Integer

setBlockid

public void setBlockid(java.lang.Integer blockid)
Sets the value of the blockid property.

Parameters:
blockid -

getPart

public java.lang.Integer getPart()
Returns the value of the part property.

Returns:
java.lang.Integer

setPart

public void setPart(java.lang.Integer part)
Sets the value of the part property.

Parameters:
part -

getRole

public java.lang.String getRole()
Returns the value of the role property.

Returns:
java.lang.String

setRole

public void setRole(java.lang.String role)
Sets the value of the role property.

Parameters:
role -

equals

public boolean equals(java.lang.Object rhs)
Implementation of the equals comparison on the basis of equality of the id components.

Overrides:
equals in class java.lang.Object
Parameters:
rhs -
Returns:
boolean

hashCode

public int hashCode()
Implementation of the hashCode method conforming to the Bloch pattern with the exception of array properties (these are very unlikely primary key types).

Overrides:
hashCode in class java.lang.Object
Returns:
int