Package net.sf.basedb.core.data.keyring
Class UserProjects
- java.lang.Object
-
- net.sf.basedb.core.data.keyring.ProjectPermission
-
- net.sf.basedb.core.data.keyring.UserProjects
-
- All Implemented Interfaces:
Serializable
,Comparable<ProjectPermission>
public final class UserProjects extends ProjectPermission implements Serializable
Class for mapping theUserProjects
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 Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
private int
userId
-
Fields inherited from class net.sf.basedb.core.data.keyring.ProjectPermission
permission, projectId
-
-
Constructor Summary
Constructors Constructor Description UserProjects()
Create a newUserProjects
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Check if this object is equal to anotherUserProjects
object.int
getUserId()
Get the id of the user.int
hashCode()
Calculate the hash code for the object.void
setUserId(int userId)
Set the id of the user.-
Methods inherited from class net.sf.basedb.core.data.keyring.ProjectPermission
compareTo, getPermission, getProjectId, setPermission, setProjectId
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
userId
private int userId
-
-
Method Detail
-
getUserId
public int getUserId()
Get the id of the user.
-
setUserId
public void setUserId(int userId)
Set the id of the user.
-
equals
public boolean equals(Object o)
Check if this object is equal to anotherUserProjects
object. They are considered to be the same if the user id and the project id are the same. The permission may be different.
-
-