org.glassfish.jersey.examples.bookmark_em.entity
Class UserEntity

java.lang.Object
  extended by org.glassfish.jersey.examples.bookmark_em.entity.UserEntity
All Implemented Interfaces:
java.io.Serializable

public class UserEntity
extends java.lang.Object
implements java.io.Serializable

Entity class UserEntity.

Author:
Jakub Podlesak (jakub.podlesak at oracle.com)
See Also:
Serialized Form

Constructor Summary
UserEntity()
          Creates a new instance of UserEntity
UserEntity(java.lang.String userid)
          Creates a new instance of UserEntity with the specified values.
UserEntity(java.lang.String userid, java.lang.String password)
          Creates a new instance of UserEntity with the specified values.
 
Method Summary
 boolean equals(java.lang.Object object)
          Determines whether another object is equal to this UserEntity.
 java.util.Collection<BookmarkEntity> getBookmarkEntityCollection()
          Gets the bookmarkEntityCollection of this UserEntity.
 java.lang.String getEmail()
          Gets the email of this UserEntity.
 java.lang.String getPassword()
          Gets the password of this UserEntity.
 java.lang.String getUserid()
          Gets the userid of this UserEntity.
 java.lang.String getUsername()
          Gets the username of this UserEntity.
 int hashCode()
          Returns a hash code value for the object.
 void setBookmarkEntityCollection(java.util.Collection<BookmarkEntity> bookmarkEntityCollection)
          Sets the bookmarkEntityCollection of this UserEntity to the specified value.
 void setEmail(java.lang.String email)
          Sets the email of this UserEntity to the specified value.
 void setPassword(java.lang.String password)
          Sets the password of this UserEntity to the specified value.
 void setUserid(java.lang.String userid)
          Sets the userid of this UserEntity to the specified value.
 void setUsername(java.lang.String username)
          Sets the username of this UserEntity to the specified value.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserEntity

public UserEntity()
Creates a new instance of UserEntity


UserEntity

public UserEntity(java.lang.String userid)
Creates a new instance of UserEntity with the specified values.

Parameters:
userid - the userid of the UserEntity

UserEntity

public UserEntity(java.lang.String userid,
                  java.lang.String password)
Creates a new instance of UserEntity with the specified values.

Parameters:
userid - the userid of the UserEntity
password - the password of the UserEntity
Method Detail

getUserid

public java.lang.String getUserid()
Gets the userid of this UserEntity.

Returns:
the userid

setUserid

public void setUserid(java.lang.String userid)
Sets the userid of this UserEntity to the specified value.

Parameters:
userid - the new userid

getPassword

public java.lang.String getPassword()
Gets the password of this UserEntity.

Returns:
the password

setPassword

public void setPassword(java.lang.String password)
Sets the password of this UserEntity to the specified value.

Parameters:
password - the new password

getUsername

public java.lang.String getUsername()
Gets the username of this UserEntity.

Returns:
the username

setUsername

public void setUsername(java.lang.String username)
Sets the username of this UserEntity to the specified value.

Parameters:
username - the new username

getEmail

public java.lang.String getEmail()
Gets the email of this UserEntity.

Returns:
the email

setEmail

public void setEmail(java.lang.String email)
Sets the email of this UserEntity to the specified value.

Parameters:
email - the new email

getBookmarkEntityCollection

public java.util.Collection<BookmarkEntity> getBookmarkEntityCollection()
Gets the bookmarkEntityCollection of this UserEntity.

Returns:
the bookmarkEntityCollection

setBookmarkEntityCollection

public void setBookmarkEntityCollection(java.util.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.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for this object.

equals

public boolean equals(java.lang.Object object)
Determines whether another object is equal to this UserEntity. The result is true if and only if the argument is not null and is a UserEntity object that has the same id field values as this object.

Overrides:
equals in class java.lang.Object
Parameters:
object - the reference object with which to compare
Returns:
true if this object is the same as the argument; false otherwise.

toString

public java.lang.String toString()
Returns a string representation of the object. This implementation constructs that representation based on the id fields.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.