psman.data
Class TPartner

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

public final class TPartner
extends java.lang.Object

The transaction partner.

Version:
$Id: TPartner.java,v 1.5 2003/11/04 18:00:48 tk4 Exp $
Author:
Martin Godisch

Constructor Summary
TPartner(int id, java.lang.String name, psman.data.PublicKey key, psman.data.Person irl)
          Constructor, only for existing transaction partners.
TPartner(java.lang.String name, psman.data.PublicKey key, psman.data.Person irl)
          Constructor, only for new transaction partners.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 boolean equals(psman.data.TPartner data)
          Check whether this transaction partner is equal to another one.
 int getID()
          Return the database ID of this transaction partner.
 java.lang.String getName()
          Return the name of this transaction partner.
 psman.data.Person getPerson()
          Return, who is this transaction partner in real life.
 psman.data.PublicKey getPublicKey()
          Return the public key of this transaction partner.
 int hashCode()
           
 void setID(int id)
          Set the database ID of this transaction partner.
 void setPublicKey(psman.data.PublicKey pubKey)
          Set the public key of this transaction partner.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TPartner

public TPartner(int id,
                java.lang.String name,
                psman.data.PublicKey key,
                psman.data.Person irl)
Constructor, only for existing transaction partners.

Parameters:
id - the database ID of this transaction partner
name - the name of this transaction partner
key - the public key of this transaction partner
irl - the person of this transaction partner in real life or null

TPartner

public TPartner(java.lang.String name,
                psman.data.PublicKey key,
                psman.data.Person irl)
Constructor, only for new transaction partners.

Parameters:
name - the name of this transaction partner
key - the public key of this transaction partner
irl - the person of this transaction partner in real life or null
Method Detail

getID

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

Returns:
the database ID of this transaction partner

getName

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

Returns:
the name of this transaction partner

getPublicKey

public psman.data.PublicKey getPublicKey()
Return the public key of this transaction partner.

Returns:
the public key of this transaction partner

getPerson

public psman.data.Person getPerson()
Return, who is this transaction partner in real life.

Returns:
the person of this transaction partner in real life or null

setID

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

Parameters:
id - the database ID of this transaction partner

setPublicKey

public void setPublicKey(psman.data.PublicKey pubKey)
Set the public key of this transaction partner.

Parameters:
pubKey - the PublicKey of this transaction partner

equals

public boolean equals(psman.data.TPartner data)
Check whether this transaction partner is equal to another one.

Returns:
true if they are equal, false otherwise

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.