psman.data
Class Type

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

public final class Type
extends java.lang.Object

The type of transaction partners.

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

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

Constructor Detail

Type

public Type(int id,
            java.lang.String name)
Constructor, only for existing types.

Parameters:
id - the database id of this type
name - the name of this type

Type

public Type(java.lang.String name)
Constructor, only for new types.

Parameters:
name - the name of this type
Method Detail

getID

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

Returns:
the database ID of this type

getName

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

Returns:
the name of this type

setID

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

Parameters:
id - the database ID of this type.

equals

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