psman.data
Class Category

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

public final class Category
extends java.lang.Object

The categories of data fields.

Version:
$Id: Category.java,v 1.3 2003/11/03 16:08:55 tk4 Exp $
Author:
Martin Godisch

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

Constructor Detail

Category

public Category(int id,
                java.lang.String name)
Constructor, only for existing categories.

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

Category

public Category(java.lang.String name)
Constructor, only for new categories.

Parameters:
name - the name of this category
Method Detail

getID

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

Returns:
the database ID of this category

getName

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

Returns:
the name of this category

setID

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

Parameters:
id - the database ID of this category

equals

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