org.mycore.backend.hibernate.tables
Class MCRLINKHREFPK

java.lang.Object
  extended by org.mycore.backend.hibernate.tables.MCRLINKHREFPK
All Implemented Interfaces:
Serializable

public class MCRLINKHREFPK
extends Object
implements Serializable

This class hold all primary keys of MCRLINKHREF

Version:
$Revision: 13085 $ $Date: 2008-02-06 18:27:24 +0100 (Mi, 06 Feb 2008) $
Author:
Heiko Helmbrecht, Jens Kupferschmidt
See Also:
Serialized Form

Constructor Summary
MCRLINKHREFPK()
          The constructor
MCRLINKHREFPK(String from, String to, String type)
           
 
Method Summary
 boolean equals(Object other)
          This method check the equalance of the given Object with this class.
 String getMcrfrom()
          Get the data field from.
 String getMcrto()
          Get the data filed to.
 String getMcrtype()
          Get the data filed type.
 int hashCode()
          This method return the hash code of this class as append of MCRFROM + MCRTO + MCRTYPE
 void setMcrfrom(String mcrfrom)
          Set the data field from.
 void setMcrto(String mcrto)
          Set the data filed to.
 void setMcrtype(String mcrtype)
          Set the data filed type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MCRLINKHREFPK

public MCRLINKHREFPK(String from,
                     String to,
                     String type)
Parameters:
from - the source ID of the link
to - the target ID of the link
type - the type of the link

MCRLINKHREFPK

public MCRLINKHREFPK()
The constructor

Method Detail

getMcrfrom

public String getMcrfrom()
Get the data field from.

Returns:
Returns the mcrfrom.

setMcrfrom

public void setMcrfrom(String mcrfrom)
Set the data field from.

Parameters:
mcrfrom - The mcrfrom to set.

getMcrto

public String getMcrto()
Get the data filed to.

Returns:
Returns the mcrto.

setMcrto

public void setMcrto(String mcrto)
Set the data filed to.

Parameters:
mcrto - The mcrto to set.

getMcrtype

public String getMcrtype()
Get the data filed type.

Returns:
Returns the mcrtype.

setMcrtype

public void setMcrtype(String mcrtype)
Set the data filed type.

Parameters:
mcrtype - The mcrtype to set.

equals

public boolean equals(Object other)
This method check the equalance of the given Object with this class. The Object must be an instance of the class MCRLINKHREFPK.

Overrides:
equals in class Object
Returns:
Returns true if the object is equal.

hashCode

public int hashCode()
This method return the hash code of this class as append of MCRFROM + MCRTO + MCRTYPE

Overrides:
hashCode in class Object
Returns:
Returns the hash code.