psman.data
Class Person

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

public final class Person
extends java.lang.Object

A people summarizes a group of -- in real life -- identical transaction partners.

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

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

Constructor Detail

Person

public Person(int id,
              java.lang.String name)
Constructor, only for existing persons.

Parameters:
id - the database ID of this person
name - the name of this person

Person

public Person(java.lang.String name)
Constructor, only for new persons.

Parameters:
name - the name of this person
Method Detail

getID

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

Returns:
the database ID of this person

getName

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

Returns:
the name of this person

setID

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

Parameters:
id - the database ID of this person.

equals

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