net.sf.jagzilla.hibernate
Class ComponentPrimaryKey

java.lang.Object
  extended bynet.sf.jagzilla.hibernate.ComponentPrimaryKey
All Implemented Interfaces:
java.io.Serializable

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

represents the primary key for the class Component.

Author:
mgriffa
See Also:
Component, Serialized Form

Constructor Summary
ComponentPrimaryKey()
           
 
Method Summary
 boolean equals(ComponentPrimaryKey o)
          Returns true if this ComponentPrimaryKey is equal to another ComponentPrimaryKey.
 boolean equals(java.lang.Object o)
          Returns true if this ComponentPrimaryKey is equal to another object.
 java.lang.String getProgram()
           
 java.lang.String getValue()
           
 int hashCode()
          Override hashCode.
 void setProgram(java.lang.String description)
           
 void setValue(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComponentPrimaryKey

public ComponentPrimaryKey()
Method Detail

getProgram

public java.lang.String getProgram()
Returns:
Returns the description.

setProgram

public void setProgram(java.lang.String description)
Parameters:
description - The description to set.

getValue

public java.lang.String getValue()
Returns:
Returns the name.

setValue

public void setValue(java.lang.String name)
Parameters:
name - The name to set.

toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object o)
Returns true if this ComponentPrimaryKey is equal to another object.

Returns:
true if this ComponentPrimaryKey is equal to the specified object.

equals

public boolean equals(ComponentPrimaryKey o)
Returns true if this ComponentPrimaryKey is equal to another ComponentPrimaryKey.

Returns:
true if this ComponentPrimaryKey is equal to the specified object.

hashCode

public int hashCode()
Override hashCode.

Returns:
the Objects hashcode.


Distributed under the GPL. By Miguel Griffa. See the Jagzilla project page for more info.