Class BookmarkEntity
java.lang.Object
org.glassfish.jersey.examples.bookmark_em.entity.BookmarkEntity
- All Implemented Interfaces:
Serializable
Entity class BookmarkEntity.
- Author:
- Jakub Podlesak
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates 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
Modifier and TypeMethodDescriptionbooleanDetermines whether another object is equal to this BookmarkEntity.Gets the bookmarkEntityPK of this BookmarkEntity.getLdesc()Gets the ldesc of this BookmarkEntity.getSdesc()Gets the sdesc of this BookmarkEntity.Gets the updated of this BookmarkEntity.getUri()Gets the uri of this BookmarkEntity.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.voidSets the ldesc of this BookmarkEntity to the specified value.voidSets the sdesc of this BookmarkEntity to the specified value.voidsetUpdated(Date updated) Sets the updated of this BookmarkEntity to the specified value.voidSets the uri of this BookmarkEntity to the specified value.voidsetUserEntity(UserEntity userEntity) Sets the userEntity of this BookmarkEntity to the specified value.toString()Returns a string representation of the object.
-
Field Details
-
bookmarkEntityPK
EmbeddedId primary key field
-
-
Constructor Details
-
BookmarkEntity
public BookmarkEntity()Creates a new instance of BookmarkEntity -
BookmarkEntity
Creates a new instance of BookmarkEntity with the specified values.- Parameters:
bookmarkEntityPK- the bookmarkEntityPK of the BookmarkEntity
-
BookmarkEntity
Creates a new instance of BookmarkEntity with the specified values.- Parameters:
bookmarkEntityPK- the bookmarkEntityPK of the BookmarkEntityuri- the uri of the BookmarkEntity
-
BookmarkEntity
Creates a new instance of BookmarkEntityPK with the specified values.- Parameters:
bmid- the bmid of the BookmarkEntityPKuserid- the userid of the BookmarkEntityPK
-
-
Method Details
-
getBookmarkEntityPK
Gets the bookmarkEntityPK of this BookmarkEntity.- Returns:
- the bookmarkEntityPK
-
setBookmarkEntityPK
Sets the bookmarkEntityPK of this BookmarkEntity to the specified value.- Parameters:
bookmarkEntityPK- the new bookmarkEntityPK
-
getUri
Gets the uri of this BookmarkEntity.- Returns:
- the uri
-
setUri
Sets the uri of this BookmarkEntity to the specified value.- Parameters:
uri- the new uri
-
getUpdated
Gets the updated of this BookmarkEntity.- Returns:
- the updated
-
setUpdated
Sets the updated of this BookmarkEntity to the specified value.- Parameters:
updated- the new updated
-
getLdesc
Gets the ldesc of this BookmarkEntity.- Returns:
- the ldesc
-
setLdesc
Sets the ldesc of this BookmarkEntity to the specified value.- Parameters:
ldesc- the new ldesc
-
getSdesc
Gets the sdesc of this BookmarkEntity.- Returns:
- the sdesc
-
setSdesc
Sets the sdesc of this BookmarkEntity to the specified value.- Parameters:
sdesc- the new sdesc
-
getUserEntity
Gets the userEntity of this BookmarkEntity.- Returns:
- the userEntity
-
setUserEntity
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
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. -
toString
Returns a string representation of the object. This implementation constructs that representation based on the id fields.
-