Class BookmarkEntityPK
java.lang.Object
org.glassfish.jersey.examples.bookmark_em.entity.BookmarkEntityPK
- All Implemented Interfaces:
Serializable
Primary Key class BookmarkEntityPK for entity class BookmarkEntity.
- Author:
- Jakub Podlesak
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of BookmarkEntityPKBookmarkEntityPK(String bmid, String userid) Creates a new instance of BookmarkEntityPK with the specified values. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines whether another object is equal to this BookmarkEntityPK.getBmid()Gets the bmid of this BookmarkEntityPK.Gets the userid of this BookmarkEntityPK.inthashCode()Returns a hash code value for the object.voidSets the bmid of this BookmarkEntityPK to the specified value.voidSets the userid of this BookmarkEntityPK to the specified value.toString()Returns a string representation of the object.
-
Constructor Details
-
BookmarkEntityPK
public BookmarkEntityPK()Creates a new instance of BookmarkEntityPK -
BookmarkEntityPK
Creates a new instance of BookmarkEntityPK with the specified values.- Parameters:
bmid- the bmid of the BookmarkEntityPKuserid- the userid of the BookmarkEntityPK
-
-
Method Details
-
getUserid
Gets the userid of this BookmarkEntityPK.- Returns:
- the userid
-
setUserid
Sets the userid of this BookmarkEntityPK to the specified value.- Parameters:
userid- the new userid
-
getBmid
Gets the bmid of this BookmarkEntityPK.- Returns:
- the bmid
-
setBmid
Sets the bmid of this BookmarkEntityPK to the specified value.- Parameters:
bmid- the new bmid
-
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 BookmarkEntityPK. The result istrueif and only if the argument is not null and is a BookmarkEntityPK 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.
-