net.rim.pushsdk.subscription
Class SubscriberPrimaryKey

java.lang.Object
  extended by net.rim.pushsdk.subscription.SubscriberPrimaryKey
All Implemented Interfaces:
Serializable

public class SubscriberPrimaryKey
extends Object
implements Serializable

Represents the primary key of a subscriber consisting of its app id and its subscriber id.

Author:
mdandrea
See Also:
Serialized Form

Constructor Summary
SubscriberPrimaryKey(String pushApplicationId, String id)
          Constructs a subscriber primary key with the given app id and subscriber id.
SubscriberPrimaryKey(SubscriberPrimaryKey subscriberPrimaryKey)
          Copy Constructor.
 
Method Summary
 boolean equals(Object obj)
          Returns true if two subscriber primary keys are found to be equal and false otherwise.
 String getId()
          Gets the current value of the subscriber id.
 String getPushApplicationId()
          Gets the current value of the id of the subscriber's push application.
 int hashCode()
          Returns a hashcode for this subscriber primary key.
 void setId(String id)
          Sets the current value of the subscriber id.
 void setPushApplicationId(String pushApplicationId)
          Sets the current value of the id of the subscriber's push application.
 String toString()
          Constructs a String with all attributes in name = value format.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubscriberPrimaryKey

public SubscriberPrimaryKey(SubscriberPrimaryKey subscriberPrimaryKey)
Copy Constructor.

Parameters:
subscriberPrimaryKey - a SubscriberPrimaryKey object

SubscriberPrimaryKey

public SubscriberPrimaryKey(String pushApplicationId,
                            String id)
Constructs a subscriber primary key with the given app id and subscriber id.

Parameters:
pushApplicationId - the id of a push application
id - the id of a subscriber
Method Detail

setPushApplicationId

public void setPushApplicationId(String pushApplicationId)
Sets the current value of the id of the subscriber's push application.

Parameters:
pushApplicationId - the push application id

getPushApplicationId

public String getPushApplicationId()
Gets the current value of the id of the subscriber's push application.

Returns:
the push application id

setId

public void setId(String id)
Sets the current value of the subscriber id.

Parameters:
id - the subscriber id

getId

public String getId()
Gets the current value of the subscriber id.

Returns:
the subscriber id

hashCode

public int hashCode()
Returns a hashcode for this subscriber primary key.

Overrides:
hashCode in class Object
Returns:
a hashcode for this subscribe primary key.

equals

public boolean equals(Object obj)
Returns true if two subscriber primary keys are found to be equal and false otherwise.

Overrides:
equals in class Object
Returns:
whether two subscriber primary keys are equal

toString

public String toString()
Constructs a String with all attributes in name = value format.

Overrides:
toString in class Object
Returns:
a String representation of this object.


Copyright © 2011 Research In Motion. All Rights Reserved.