org.appfuse.model
Class UserRole

java.lang.Object
  extended byorg.appfuse.model.BaseObject
      extended byorg.appfuse.model.UserRole
All Implemented Interfaces:
Serializable

public class UserRole
extends BaseObject

Role class used to determine roles for a user

View Source

Version:
$Revision: 1.1 $ $Date: 2004/03/31 13:04:16 $
Author:
Matt Raible
See Also:
Serialized Form
Class:
table="user_role"
Form Name:
include-all="true" extends="BaseForm"

Constructor Summary
UserRole()
           
UserRole(String roleName)
           
 
Method Summary
 Long getId()
          Returns the id.
 String getRoleName()
          Returns the rolename.
 Long getUserId()
           
 String getUsername()
          Returns the username.
 void setId(Long id)
          Sets the id.
 void setRoleName(String rolename)
          Sets the rolename.
 void setUserId(Long userId)
           
 void setUsername(String username)
          Sets the username.
 
Methods inherited from class org.appfuse.model.BaseObject
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserRole

public UserRole()

UserRole

public UserRole(String roleName)
Method Detail

getUserId

public Long getUserId()
Returns:
a users Id
Property:
column="user_id" not-null="true"

setUserId

public void setUserId(Long userId)
Parameters:
userId -

getId

public Long getId()
Returns the id.

Returns:
String
Id:
column="id" generator-class="increment" unsaved-value="null"

setId

public void setId(Long id)
Sets the id.

Parameters:
id - The id to set

getUsername

public String getUsername()
Returns the username.

Returns:
String
Property:
column="username" not-null="true"

setUsername

public void setUsername(String username)
Sets the username.

Parameters:
username - The username to set

getRoleName

public String getRoleName()
Returns the rolename.

Returns:
String
Property:
column="role_name" not-null="true"

setRoleName

public void setRoleName(String rolename)
Sets the rolename.

Parameters:
rolename - The rolename to set


Copyright © 2002-2004