fi.paatti.paattidatabaseutils.dbobjects
Class UserGroup

java.lang.Object
  extended by fi.paatti.paattidatabaseutils.dbobjects.UserGroup

public class UserGroup
extends Object

UserGroup object.

Author:
Lauri Satokangas, lauri.n.satokangas@student.jyu.fi
 

Constructor Summary
UserGroup(int usergroupID)
          Constructor.
UserGroup(int usergroupID, int userRoleID)
          Constructor.
 
Method Summary
 int getUsergroupID()
          Returns the value of usergroupID.
 int getUsergroupResearchID()
          Returns the ID of the research that the group belongs to.
 int getUsergroupRoleID()
          Returns the value of userRoleID.
 void setUsergroupResearchID(int userResearchID)
          Returns the ID of the research that the group belongs to.
 void setUsergroupRoleID(int userRoleID)
          Returns the value of userRoleID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserGroup

public UserGroup(int usergroupID)
Constructor.

Parameters:
usergroupID - The ID of the usergroup.

UserGroup

public UserGroup(int usergroupID,
                 int userRoleID)
Constructor.

Parameters:
usergroupID - The ID of the usergroup.
userRoleID - The ID of the role that the group has.
Method Detail

getUsergroupResearchID

public int getUsergroupResearchID()
Returns the ID of the research that the group belongs to.

Returns:
The id of the research.

setUsergroupResearchID

public void setUsergroupResearchID(int userResearchID)
Returns the ID of the research that the group belongs to.

Parameters:
userResearchID - the id of the research.

getUsergroupID

public int getUsergroupID()
Returns the value of usergroupID.

Returns:
the value of usergroupID.

getUsergroupRoleID

public int getUsergroupRoleID()
Returns the value of userRoleID.

Returns:
the value of userRoleID.

setUsergroupRoleID

public void setUsergroupRoleID(int userRoleID)
Returns the value of userRoleID.

Parameters:
userRoleID - new value of userRoleID.


Copyright © 2012. All Rights Reserved.