net.sf.jagzilla.hibernate
Class WatchPrimaryKey

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

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

represents the primary key for the class Watch.

Author:
mgriffa
See Also:
Watch, Serialized Form

Constructor Summary
WatchPrimaryKey()
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns true if this WatchPrimaryKey is equal to another object.
 boolean equals(WatchPrimaryKey o)
          Returns true if this WatchPrimaryKey is equal to another WatchPrimaryKey.
 int getWatched()
           
 int getWatcher()
           
 int hashCode()
          Override hashCode.
 void setWatched(int watched)
           
 void setWatcher(int watcher)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WatchPrimaryKey

public WatchPrimaryKey()
Method Detail

getWatched

public int getWatched()
Returns:
Returns the watched.

setWatched

public void setWatched(int watched)
Parameters:
watched - The watched to set.

getWatcher

public int getWatcher()
Returns:
Returns the watcher.

setWatcher

public void setWatcher(int watcher)
Parameters:
watcher - The watcher to set.

toString

public java.lang.String toString()

hashCode

public int hashCode()
Override hashCode.

Returns:
the Objects hashcode.

equals

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

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

equals

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

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


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