Class UserGroups

java.lang.Object
net.sf.basedb.core.data.keyring.UserGroups
All Implemented Interfaces:
Serializable

public final class UserGroups extends Object implements Serializable
Class for mapping the UserGroups table.
Version:
2.0
Author:
Nicklas
See Also:
Last modified
$Date: 2015-04-16 13:47:41 +0200 (to, 16 apr 2015) $
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
     
    private static final long
     
    private int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create a new UserGroups object.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check if this object is equal to another UserGroups object.
    int
    Get the id of the group.
    int
    Get the id of the user.
    int
    Calculate the hash code for the object.
    void
    setGroupId(int groupId)
    Set the id of the group.
    void
    setUserId(int userId)
    Set the id of the user.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • userId

      private int userId
    • groupId

      private int groupId
  • Constructor Details

    • UserGroups

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

    • getUserId

      public int getUserId()
      Get the id of the user.
    • setUserId

      public void setUserId(int userId)
      Set the id of the user.
    • getGroupId

      public int getGroupId()
      Get the id of the group.
    • setGroupId

      public void setGroupId(int groupId)
      Set the id of the group.
    • equals

      public boolean equals(Object o)
      Check if this object is equal to another UserGroups object. They are considered to be the same if the user id and the group id are the same.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Calculate the hash code for the object.
      Overrides:
      hashCode in class Object