Class UserEntity
- java.lang.Object
-
- org.glassfish.jersey.examples.bookmark_em.entity.UserEntity
-
- All Implemented Interfaces:
Serializable
@Entity public class UserEntity extends Object implements Serializable
Entity class UserEntity.- Author:
- Jakub Podlesak
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserEntity()Creates a new instance of UserEntityUserEntity(String userid)Creates a new instance of UserEntity with the specified values.UserEntity(String userid, String password)Creates a new instance of UserEntity with the specified values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)Determines whether another object is equal to this UserEntity.Collection<BookmarkEntity>getBookmarkEntityCollection()Gets the bookmarkEntityCollection of this UserEntity.StringgetEmail()Gets the email of this UserEntity.StringgetPassword()Gets the password of this UserEntity.StringgetUserid()Gets the userid of this UserEntity.StringgetUsername()Gets the username of this UserEntity.inthashCode()Returns a hash code value for the object.voidsetBookmarkEntityCollection(Collection<BookmarkEntity> bookmarkEntityCollection)Sets the bookmarkEntityCollection of this UserEntity to the specified value.voidsetEmail(String email)Sets the email of this UserEntity to the specified value.voidsetPassword(String password)Sets the password of this UserEntity to the specified value.voidsetUserid(String userid)Sets the userid of this UserEntity to the specified value.voidsetUsername(String username)Sets the username of this UserEntity to the specified value.StringtoString()Returns a string representation of the object.
-
-
-
Constructor Detail
-
UserEntity
public UserEntity()
Creates a new instance of UserEntity
-
UserEntity
public UserEntity(String userid)
Creates a new instance of UserEntity with the specified values.- Parameters:
userid- the userid of the UserEntity
-
-
Method Detail
-
getUserid
public String getUserid()
Gets the userid of this UserEntity.- Returns:
- the userid
-
setUserid
public void setUserid(String userid)
Sets the userid of this UserEntity to the specified value.- Parameters:
userid- the new userid
-
getPassword
public String getPassword()
Gets the password of this UserEntity.- Returns:
- the password
-
setPassword
public void setPassword(String password)
Sets the password of this UserEntity to the specified value.- Parameters:
password- the new password
-
getUsername
public String getUsername()
Gets the username of this UserEntity.- Returns:
- the username
-
setUsername
public void setUsername(String username)
Sets the username of this UserEntity to the specified value.- Parameters:
username- the new username
-
getEmail
public String getEmail()
Gets the email of this UserEntity.- Returns:
- the email
-
setEmail
public void setEmail(String email)
Sets the email of this UserEntity to the specified value.- Parameters:
email- the new email
-
getBookmarkEntityCollection
public Collection<BookmarkEntity> getBookmarkEntityCollection()
Gets the bookmarkEntityCollection of this UserEntity.- Returns:
- the bookmarkEntityCollection
-
setBookmarkEntityCollection
public void setBookmarkEntityCollection(Collection<BookmarkEntity> bookmarkEntityCollection)
Sets the bookmarkEntityCollection of this UserEntity to the specified value.- Parameters:
bookmarkEntityCollection- the new bookmarkEntityCollection
-
hashCode
public int hashCode()
Returns a hash code value for the object. This implementation computes a hash code value based on the id fields in this object.
-
equals
public boolean equals(Object object)
Determines whether another object is equal to this UserEntity. The result istrueif and only if the argument is not null and is a UserEntity object that has the same id field values as this object.
-
-