2.17.2: 2011-06-17

net.sf.basedb.core.data.keyring
Class RoleKeys

java.lang.Object
  extended by net.sf.basedb.core.data.keyring.KeyPermission
      extended by net.sf.basedb.core.data.keyring.RoleKeys
All Implemented Interfaces:
Serializable, Comparable<KeyPermission>

public final class RoleKeys
extends KeyPermission
implements Serializable

Class for mapping the RoleKeys table.

Version:
2.0
Author:
Nicklas
See Also:
Serialized Form
Last modified
$Date: 2009-04-06 14:52:39 +0200 (Mon, 06 Apr 2009) $

Field Summary
private  int roleId
           
private static long serialVersionUID
           
 
Fields inherited from class net.sf.basedb.core.data.keyring.KeyPermission
keyId, permission
 
Constructor Summary
RoleKeys()
          Create a new RoleKeys object.
 
Method Summary
 boolean equals(Object o)
          Check if this object is equal to another RoleKeys object.
 int getRoleId()
          Get the id of the role.
 int hashCode()
          Calculate the hash code for the object.
 void setRoleId(int roleId)
          Set the id of the role.
 
Methods inherited from class net.sf.basedb.core.data.keyring.KeyPermission
compareTo, getKeyId, getPermission, setKeyId, setPermission
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

roleId

private int roleId
Constructor Detail

RoleKeys

public RoleKeys()
Create a new RoleKeys object.

Method Detail

getRoleId

public int getRoleId()
Get the id of the role.


setRoleId

public void setRoleId(int roleId)
Set the id of the role.


equals

public boolean equals(Object o)
Check if this object is equal to another RoleKeys object. They are considered to be the same if the role id and the key id are the same. The permissions may be different.

Overrides:
equals in class Object

hashCode

public int hashCode()
Calculate the hash code for the object.

Overrides:
hashCode in class Object

2.17.2: 2011-06-17