|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.socialnetwork.relationShip.RelationShipDao
public class RelationShipDao
| Constructor Summary | |
|---|---|
RelationShipDao()
|
|
| Method Summary | |
|---|---|
int |
createRelationShip(Connection connection,
RelationShip relationShip)
rturn int (the id of this new relationShip) |
boolean |
deleteRelationShip(Connection connection,
int user1Id,
int user2Id)
delete this relationShip rturn boolean (if this relationShips is deleted return true) |
boolean |
deleteRelationShip(Connection connection,
RelationShip relationShip)
delete this relationShip rturn boolean (if this relationShips is deleted return true) |
List<RelationShip> |
getAllMyRelationShips(Connection connection,
int myId)
return the list of all my RelationShips |
List<SocialInformation> |
getAllMyRelationShips(Connection con,
String userId,
Date begin,
Date end)
get list of my socialInformation (relationShip) according to number of Item and the first Index |
RelationShip |
getRelationShip(Connection connection,
int relationShipId)
|
RelationShip |
getRelationShip(Connection connection,
int user1Id,
int user2Id)
return the relationShip witch between user1 and user2 |
boolean |
isInRelationShip(Connection connection,
int user1Id,
int user2Id)
rturn if this relationShip exist or not |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RelationShipDao()
| Method Detail |
|---|
public int createRelationShip(Connection connection,
RelationShip relationShip)
throws UtilException,
SQLException
connection - relationShip -
UtilException
SQLException
public boolean deleteRelationShip(Connection connection,
int user1Id,
int user2Id)
throws SQLException
connection - user1Id - user2Id -
SQLException
public boolean deleteRelationShip(Connection connection,
RelationShip relationShip)
throws SQLException
connection - relationShip -
SQLException
public RelationShip getRelationShip(Connection connection,
int user1Id,
int user2Id)
throws SQLException
connection - user1Id - user2Id -
SQLException
public boolean isInRelationShip(Connection connection,
int user1Id,
int user2Id)
throws SQLException
connection - user1Id - user2Id -
SQLException
public List<RelationShip> getAllMyRelationShips(Connection connection,
int myId)
throws SQLException
connection - myId -
SQLException
public List<SocialInformation> getAllMyRelationShips(Connection con,
String userId,
Date begin,
Date end)
throws SQLException
con - userId - begin - end -
SQLException
public RelationShip getRelationShip(Connection connection,
int relationShipId)
throws SQLException
connection - relationShipId - the relationship identifier
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||