psman.data
Class Recipient

java.lang.Object
  |
  +--psman.data.Recipient

public final class Recipient
extends java.lang.Object

The recipient of data fields.

Version:
$Id: Recipient.java,v 1.2 2003/11/03 16:08:55 tk4 Exp $
Author:
Martin Godisch, Thomas Kriegelstein

Constructor Summary
Recipient(int id, java.lang.String name)
          Constructor, only for existing recipients.
Recipient(java.lang.String name)
          Constructor, only for new recipients.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 boolean equals(psman.data.Recipient data)
           
 int getID()
          Return the database ID of this recipient.
 java.lang.String getName()
          Return the name of this recipient.
 int hashCode()
           
 void setID(int id)
          Set the database ID of this recipient.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Recipient

public Recipient(int id,
                 java.lang.String name)
Constructor, only for existing recipients.

Parameters:
id - the database ID of this recipient
name - the name value of this recipient

Recipient

public Recipient(java.lang.String name)
Constructor, only for new recipients.

Parameters:
name - the name of this recipient
Method Detail

getID

public int getID()
Return the database ID of this recipient.

Returns:
the database ID of this recipient

getName

public java.lang.String getName()
Return the name of this recipient.

Returns:
the name of this recipient

setID

public void setID(int id)
Set the database ID of this recipient.

Parameters:
id - the database ID of this recipient

equals

public boolean equals(psman.data.Recipient data)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003 DRIM Team. All Rights Reserved.