Class RoleKeys

java.lang.Object
net.sf.basedb.core.data.keyring.KeyPermission
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: 2015-04-16 13:47:41 +0200 (to, 16 apr 2015) $
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
      Constant Field Values
    • roleId

      private int roleId
  • Constructor Details

    • RoleKeys

      public RoleKeys()
      Create a new RoleKeys object.
  • Method Details

    • 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