Package net.sf.basedb.core.data.keyring
Class ProjectKeys
java.lang.Object
net.sf.basedb.core.data.keyring.KeyPermission
net.sf.basedb.core.data.keyring.ProjectKeys
- All Implemented Interfaces:
Serializable
,Comparable<KeyPermission>
Class for mapping the
ProjectKeys
table.- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Last modified
- $Date: 2015-04-16 13:47:41 +0200 (to, 16 apr 2015) $
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private static final long
Fields inherited from class net.sf.basedb.core.data.keyring.KeyPermission
keyId, permission
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if this object is equal to anotherProjectKeys
object.int
Get the id of the project.int
hashCode()
Calculate the hash code for the object.void
setProjectId
(int projectId) Set the id of the project.Methods inherited from class net.sf.basedb.core.data.keyring.KeyPermission
compareTo, getKeyId, getPermission, setKeyId, setPermission
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
projectId
private int projectId
-
-
Constructor Details
-
ProjectKeys
public ProjectKeys()Create a newProjectKeys
object.
-
-
Method Details
-
getProjectId
public int getProjectId()Get the id of the project. -
setProjectId
public void setProjectId(int projectId) Set the id of the project. -
equals
Check if this object is equal to anotherProjectKeys
object. They are considered to be the same if the project id and the key id are the same. The permissions may be different. -
hashCode
public int hashCode()Calculate the hash code for the object.
-