edu.iastate.metnet.hibernate
Class EntitywithcontextKey

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

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

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

See Also:
Serialized Form

Constructor Summary
EntitywithcontextKey()
          Simple constructor of EntitywithcontextKey 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 getEntityid()
          Returns the value of the entityid 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 setEntityid(java.lang.Integer entityid)
          Sets the value of the entityid property.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntitywithcontextKey

public EntitywithcontextKey()
Simple constructor of EntitywithcontextKey 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 -

getEntityid

public java.lang.Integer getEntityid()
Returns the value of the entityid property.

Returns:
java.lang.Integer

setEntityid

public void setEntityid(java.lang.Integer entityid)
Sets the value of the entityid property.

Parameters:
entityid -

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