psman.data
Class Purpose

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

public final class Purpose
extends java.lang.Object

The purposes of data fields.

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

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

Constructor Detail

Purpose

public Purpose(int id,
               java.lang.String name)
Constructor, only for existing purposes.

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

Purpose

public Purpose(java.lang.String name)
Constructor, only for new purposes.

Parameters:
name - the name of this purpose
Method Detail

getID

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

Returns:
the database ID of this purpose

getName

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

Returns:
the name of this purpose

setID

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

Parameters:
id - the database ID of this purpose

equals

public boolean equals(psman.data.Purpose 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.