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

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

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

Entity class BookmarkEntity.

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

Field Summary
protected  BookmarkEntityPK bookmarkEntityPK
          EmbeddedId primary key field
 
Constructor Summary
BookmarkEntity()
          Creates a new instance of BookmarkEntity
BookmarkEntity(BookmarkEntityPK bookmarkEntityPK)
          Creates a new instance of BookmarkEntity with the specified values.
BookmarkEntity(BookmarkEntityPK bookmarkEntityPK, java.lang.String uri)
          Creates a new instance of BookmarkEntity with the specified values.
BookmarkEntity(java.lang.String bmid, java.lang.String userid)
          Creates a new instance of BookmarkEntityPK with the specified values.
 
Method Summary
 boolean equals(java.lang.Object object)
          Determines whether another object is equal to this BookmarkEntity.
 BookmarkEntityPK getBookmarkEntityPK()
          Gets the bookmarkEntityPK of this BookmarkEntity.
 java.lang.String getLdesc()
          Gets the ldesc of this BookmarkEntity.
 java.lang.String getSdesc()
          Gets the sdesc of this BookmarkEntity.
 java.util.Date getUpdated()
          Gets the updated of this BookmarkEntity.
 java.lang.String getUri()
          Gets the uri of this BookmarkEntity.
 UserEntity getUserEntity()
          Gets the userEntity of this BookmarkEntity.
 int hashCode()
          Returns a hash code value for the object.
 void setBookmarkEntityPK(BookmarkEntityPK bookmarkEntityPK)
          Sets the bookmarkEntityPK of this BookmarkEntity to the specified value.
 void setLdesc(java.lang.String ldesc)
          Sets the ldesc of this BookmarkEntity to the specified value.
 void setSdesc(java.lang.String sdesc)
          Sets the sdesc of this BookmarkEntity to the specified value.
 void setUpdated(java.util.Date updated)
          Sets the updated of this BookmarkEntity to the specified value.
 void setUri(java.lang.String uri)
          Sets the uri of this BookmarkEntity to the specified value.
 void setUserEntity(UserEntity userEntity)
          Sets the userEntity of this BookmarkEntity 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
 

Field Detail

bookmarkEntityPK

protected BookmarkEntityPK bookmarkEntityPK
EmbeddedId primary key field

Constructor Detail

BookmarkEntity

public BookmarkEntity()
Creates a new instance of BookmarkEntity


BookmarkEntity

public BookmarkEntity(BookmarkEntityPK bookmarkEntityPK)
Creates a new instance of BookmarkEntity with the specified values.

Parameters:
bookmarkEntityPK - the bookmarkEntityPK of the BookmarkEntity

BookmarkEntity

public BookmarkEntity(BookmarkEntityPK bookmarkEntityPK,
                      java.lang.String uri)
Creates a new instance of BookmarkEntity with the specified values.

Parameters:
bookmarkEntityPK - the bookmarkEntityPK of the BookmarkEntity
uri - the uri of the BookmarkEntity

BookmarkEntity

public BookmarkEntity(java.lang.String bmid,
                      java.lang.String userid)
Creates a new instance of BookmarkEntityPK with the specified values.

Parameters:
bmid - the bmid of the BookmarkEntityPK
userid - the userid of the BookmarkEntityPK
Method Detail

getBookmarkEntityPK

public BookmarkEntityPK getBookmarkEntityPK()
Gets the bookmarkEntityPK of this BookmarkEntity.

Returns:
the bookmarkEntityPK

setBookmarkEntityPK

public void setBookmarkEntityPK(BookmarkEntityPK bookmarkEntityPK)
Sets the bookmarkEntityPK of this BookmarkEntity to the specified value.

Parameters:
bookmarkEntityPK - the new bookmarkEntityPK

getUri

public java.lang.String getUri()
Gets the uri of this BookmarkEntity.

Returns:
the uri

setUri

public void setUri(java.lang.String uri)
Sets the uri of this BookmarkEntity to the specified value.

Parameters:
uri - the new uri

getUpdated

public java.util.Date getUpdated()
Gets the updated of this BookmarkEntity.

Returns:
the updated

setUpdated

public void setUpdated(java.util.Date updated)
Sets the updated of this BookmarkEntity to the specified value.

Parameters:
updated - the new updated

getLdesc

public java.lang.String getLdesc()
Gets the ldesc of this BookmarkEntity.

Returns:
the ldesc

setLdesc

public void setLdesc(java.lang.String ldesc)
Sets the ldesc of this BookmarkEntity to the specified value.

Parameters:
ldesc - the new ldesc

getSdesc

public java.lang.String getSdesc()
Gets the sdesc of this BookmarkEntity.

Returns:
the sdesc

setSdesc

public void setSdesc(java.lang.String sdesc)
Sets the sdesc of this BookmarkEntity to the specified value.

Parameters:
sdesc - the new sdesc

getUserEntity

public UserEntity getUserEntity()
Gets the userEntity of this BookmarkEntity.

Returns:
the userEntity

setUserEntity

public void setUserEntity(UserEntity userEntity)
Sets the userEntity of this BookmarkEntity to the specified value.

Parameters:
userEntity - the new userEntity

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 BookmarkEntity. The result is true if and only if the argument is not null and is a BookmarkEntity 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.