com.silverpeas.socialnetwork.relationShip
Class RelationShip

java.lang.Object
  extended by com.silverpeas.socialnetwork.relationShip.RelationShip

public class RelationShip
extends Object


Constructor Summary
RelationShip()
           
RelationShip(int user1Id, int user2Id, int typeRelationShipId, Date acceptanceDate, int inviterId)
           
 
Method Summary
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this one.
 Date getAcceptanceDate()
          get date of relationShip
 int getId()
          get id of relationShip
 int getInviterId()
          get the inviter
 int getTypeRelationShipId()
          get the id of this ralationShip type
 int getUser1Id()
          get the first user of this Invitation (the inviter)
 int getUser2Id()
          get the second user of this Invitation
 int hashCode()
           
 void setAcceptanceDate(Date acceptanceDate)
          set the date of relationShip
 void setId(int id)
          set the id of relationShip
 void setInviterId(int inviterId)
          set the inviter user
 void setTypeRelationShipId(int typeRelationShipId)
          set the date of relationShip
 void setUser1Id(int user1Id)
          set the first user of relationShip
 void setUser2Id(int user2Id)
          set the second user of relationShip
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationShip

public RelationShip(int user1Id,
                    int user2Id,
                    int typeRelationShipId,
                    Date acceptanceDate,
                    int inviterId)

RelationShip

public RelationShip()
Method Detail

getId

public int getId()
get id of relationShip

Returns:
int

getAcceptanceDate

public Date getAcceptanceDate()
get date of relationShip

Returns:
date

getTypeRelationShipId

public int getTypeRelationShipId()
get the id of this ralationShip type

Returns:
int

getUser1Id

public int getUser1Id()
get the first user of this Invitation (the inviter)

Returns:
int

getUser2Id

public int getUser2Id()
get the second user of this Invitation

Returns:
int

setId

public void setId(int id)
set the id of relationShip

Parameters:
int - id

setAcceptanceDate

public void setAcceptanceDate(Date acceptanceDate)
set the date of relationShip

Parameters:
Date - acceptanceDate

setTypeRelationShipId

public void setTypeRelationShipId(int typeRelationShipId)
set the date of relationShip

Parameters:
int - typeRelationShipId

setUser1Id

public void setUser1Id(int user1Id)
set the first user of relationShip

Parameters:
int - user1Id

setUser2Id

public void setUser2Id(int user2Id)
set the second user of relationShip

Parameters:
int - user2Id

setInviterId

public void setInviterId(int inviterId)
set the inviter user

Parameters:
int - inviterId

getInviterId

public int getInviterId()
get the inviter

Returns:
int

equals

public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2016 Silverpeas. All Rights Reserved.