Package com.jms.socialmedia.mybatis
Class SqlSessionFollowersMapper
- java.lang.Object
-
- com.jms.socialmedia.mybatis.SqlSessionFollowersMapper
-
- All Implemented Interfaces:
FollowersMapper
public class SqlSessionFollowersMapper extends Object implements FollowersMapper
-
-
Constructor Summary
Constructors Constructor Description SqlSessionFollowersMapper(org.apache.ibatis.session.SqlSessionFactory sessionfactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
followUser(int followerUserId, int followingUserId)
Collection<Integer>
getFollowerUserIds(int userId)
Collection<Integer>
getFollowingUserIds(int userId)
Collection<User>
getUsersToFollow(int userId)
int
unfollowUser(int followerUserId, int followingUserId)
-
-
-
Method Detail
-
getFollowerUserIds
public Collection<Integer> getFollowerUserIds(int userId)
- Specified by:
getFollowerUserIds
in interfaceFollowersMapper
-
getFollowingUserIds
public Collection<Integer> getFollowingUserIds(int userId)
- Specified by:
getFollowingUserIds
in interfaceFollowersMapper
-
followUser
public int followUser(int followerUserId, int followingUserId)
- Specified by:
followUser
in interfaceFollowersMapper
-
unfollowUser
public int unfollowUser(int followerUserId, int followingUserId)
- Specified by:
unfollowUser
in interfaceFollowersMapper
-
getUsersToFollow
public Collection<User> getUsersToFollow(int userId)
- Specified by:
getUsersToFollow
in interfaceFollowersMapper
-
-