edu.iastate.metnet.hibernate
Class EntityrefKey

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

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

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

See Also:
Serialized Form

Constructor Summary
EntityrefKey()
          Simple constructor of EntityrefKey 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 getEntityid()
          Returns the value of the entityid property.
 java.lang.String getReftype()
          Returns the value of the reftype property.
 java.lang.String getRefvalue()
          Returns the value of the refvalue property.
 java.lang.String getUsername()
          Returns the value of the username 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 setEntityid(java.lang.Integer entityid)
          Sets the value of the entityid property.
 void setReftype(java.lang.String reftype)
          Sets the value of the reftype property.
 void setRefvalue(java.lang.String refvalue)
          Sets the value of the refvalue property.
 void setUsername(java.lang.String username)
          Sets the value of the username property.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityrefKey

public EntityrefKey()
Simple constructor of EntityrefKey instances.

Method Detail

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 -

getReftype

public java.lang.String getReftype()
Returns the value of the reftype property.

Returns:
java.lang.String

setReftype

public void setReftype(java.lang.String reftype)
Sets the value of the reftype property.

Parameters:
reftype -

getRefvalue

public java.lang.String getRefvalue()
Returns the value of the refvalue property.

Returns:
java.lang.String

setRefvalue

public void setRefvalue(java.lang.String refvalue)
Sets the value of the refvalue property.

Parameters:
refvalue -

getUsername

public java.lang.String getUsername()
Returns the value of the username property.

Returns:
java.lang.String

setUsername

public void setUsername(java.lang.String username)
Sets the value of the username property.

Parameters:
username -

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