Class UserEntity
java.lang.Object
org.glassfish.jersey.examples.bookmark_em.entity.UserEntity
- All Implemented Interfaces:
Serializable
Entity class UserEntity.
- Author:
- Jakub Podlesak
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates 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
Modifier and TypeMethodDescriptionbooleanDetermines whether another object is equal to this UserEntity.Gets the bookmarkEntityCollection of this UserEntity.getEmail()Gets the email of this UserEntity.Gets the password of this UserEntity.Gets the userid of this UserEntity.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.voidSets the email of this UserEntity to the specified value.voidsetPassword(String password) Sets the password of this UserEntity to the specified value.voidSets the userid of this UserEntity to the specified value.voidsetUsername(String username) Sets the username of this UserEntity to the specified value.toString()Returns a string representation of the object.
-
Constructor Details
-
UserEntity
public UserEntity()Creates a new instance of UserEntity -
UserEntity
Creates a new instance of UserEntity with the specified values.- Parameters:
userid- the userid of the UserEntity
-
UserEntity
Creates a new instance of UserEntity with the specified values.- Parameters:
userid- the userid of the UserEntitypassword- the password of the UserEntity
-
-
Method Details
-
getUserid
Gets the userid of this UserEntity.- Returns:
- the userid
-
setUserid
Sets the userid of this UserEntity to the specified value.- Parameters:
userid- the new userid
-
getPassword
Gets the password of this UserEntity.- Returns:
- the password
-
setPassword
Sets the password of this UserEntity to the specified value.- Parameters:
password- the new password
-
getUsername
Gets the username of this UserEntity.- Returns:
- the username
-
setUsername
Sets the username of this UserEntity to the specified value.- Parameters:
username- the new username
-
getEmail
Gets the email of this UserEntity.- Returns:
- the email
-
setEmail
Sets the email of this UserEntity to the specified value.- Parameters:
email- the new email
-
getBookmarkEntityCollection
Gets the bookmarkEntityCollection of this UserEntity.- Returns:
- the bookmarkEntityCollection
-
setBookmarkEntityCollection
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
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. -
toString
Returns a string representation of the object. This implementation constructs that representation based on the id fields.
-