Package net.sf.basedb.core.data.keyring
Class UserKeys
java.lang.Object
net.sf.basedb.core.data.keyring.KeyPermission
net.sf.basedb.core.data.keyring.UserKeys
- All Implemented Interfaces:
Serializable
,Comparable<KeyPermission>
public final class UserKeys extends KeyPermission implements Serializable
Class for mapping the
UserKeys
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.KeyPermission
keyId, permission
-
Constructor Summary
Constructors Constructor Description UserKeys()
Create a newUserKeys
object. -
Method Summary
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:
- Constant Field Values
-
userId
private int userId
-
-
Constructor Details
-
UserKeys
public UserKeys()Create a newUserKeys
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. -
equals
Check if this object is equal to anotherUserKeys
object. They are considered to be the same if the user id and the key id are the same. The permissions may be different. -
hashCode
public int hashCode()Calculate the hash code for the object.
-