Class BookmarkEntity
- java.lang.Object
-
- org.glassfish.jersey.examples.bookmark_em.entity.BookmarkEntity
-
- All Implemented Interfaces:
Serializable
@Entity public class BookmarkEntity extends Object implements Serializable
Entity class BookmarkEntity.- Author:
- Jakub Podlesak
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected BookmarkEntityPKbookmarkEntityPKEmbeddedId primary key field
-
Constructor Summary
Constructors Constructor Description BookmarkEntity()Creates a new instance of BookmarkEntityBookmarkEntity(String bmid, String userid)Creates a new instance of BookmarkEntityPK with the specified values.BookmarkEntity(BookmarkEntityPK bookmarkEntityPK)Creates a new instance of BookmarkEntity with the specified values.BookmarkEntity(BookmarkEntityPK bookmarkEntityPK, String uri)Creates a new instance of BookmarkEntity 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 BookmarkEntity.BookmarkEntityPKgetBookmarkEntityPK()Gets the bookmarkEntityPK of this BookmarkEntity.StringgetLdesc()Gets the ldesc of this BookmarkEntity.StringgetSdesc()Gets the sdesc of this BookmarkEntity.DategetUpdated()Gets the updated of this BookmarkEntity.StringgetUri()Gets the uri of this BookmarkEntity.UserEntitygetUserEntity()Gets the userEntity of this BookmarkEntity.inthashCode()Returns a hash code value for the object.voidsetBookmarkEntityPK(BookmarkEntityPK bookmarkEntityPK)Sets the bookmarkEntityPK of this BookmarkEntity to the specified value.voidsetLdesc(String ldesc)Sets the ldesc of this BookmarkEntity to the specified value.voidsetSdesc(String sdesc)Sets the sdesc of this BookmarkEntity to the specified value.voidsetUpdated(Date updated)Sets the updated of this BookmarkEntity to the specified value.voidsetUri(String uri)Sets the uri of this BookmarkEntity to the specified value.voidsetUserEntity(UserEntity userEntity)Sets the userEntity of this BookmarkEntity to the specified value.StringtoString()Returns a string representation of the object.
-
-
-
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, String uri)
Creates a new instance of BookmarkEntity with the specified values.- Parameters:
bookmarkEntityPK- the bookmarkEntityPK of the BookmarkEntityuri- the uri of the BookmarkEntity
-
-
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 String getUri()
Gets the uri of this BookmarkEntity.- Returns:
- the uri
-
setUri
public void setUri(String uri)
Sets the uri of this BookmarkEntity to the specified value.- Parameters:
uri- the new uri
-
getUpdated
public Date getUpdated()
Gets the updated of this BookmarkEntity.- Returns:
- the updated
-
setUpdated
public void setUpdated(Date updated)
Sets the updated of this BookmarkEntity to the specified value.- Parameters:
updated- the new updated
-
getLdesc
public String getLdesc()
Gets the ldesc of this BookmarkEntity.- Returns:
- the ldesc
-
setLdesc
public void setLdesc(String ldesc)
Sets the ldesc of this BookmarkEntity to the specified value.- Parameters:
ldesc- the new ldesc
-
getSdesc
public String getSdesc()
Gets the sdesc of this BookmarkEntity.- Returns:
- the sdesc
-
setSdesc
public void setSdesc(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.
-
equals
public boolean equals(Object object)
Determines whether another object is equal to this BookmarkEntity. The result istrueif and only if the argument is not null and is a BookmarkEntity object that has the same id field values as this object.
-
-