psman.data
Class Role

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

public final class Role
extends java.lang.Object

The role under this a transaction takes place.

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

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

Constructor Detail

Role

public Role(int id,
            java.lang.String name)
Constructor, only for existing roles.

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

Role

public Role(java.lang.String name)
Constructor, only for new roles.

Parameters:
name - the name of this role
Method Detail

getID

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

Returns:
the database ID of this role

getName

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

Returns:
the name of this role

setID

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

Parameters:
id - the database ID of this role.

equals

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