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

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

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

Primary Key class BookmarkEntityPK for entity class BookmarkEntity.

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

Constructor Summary
BookmarkEntityPK()
          Creates a new instance of BookmarkEntityPK
BookmarkEntityPK(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 BookmarkEntityPK.
 java.lang.String getBmid()
          Gets the bmid of this BookmarkEntityPK.
 java.lang.String getUserid()
          Gets the userid of this BookmarkEntityPK.
 int hashCode()
          Returns a hash code value for the object.
 void setBmid(java.lang.String bmid)
          Sets the bmid of this BookmarkEntityPK to the specified value.
 void setUserid(java.lang.String userid)
          Sets the userid of this BookmarkEntityPK 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

BookmarkEntityPK

public BookmarkEntityPK()
Creates a new instance of BookmarkEntityPK


BookmarkEntityPK

public BookmarkEntityPK(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

getUserid

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

Returns:
the userid

setUserid

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

Parameters:
userid - the new userid

getBmid

public java.lang.String getBmid()
Gets the bmid of this BookmarkEntityPK.

Returns:
the bmid

setBmid

public void setBmid(java.lang.String bmid)
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.

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