@Repository @Transactional public class UserContactDao extends Object
| コンストラクタと説明 |
|---|
UserContactDao() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
UserContact |
add(Long userId,
Long ownerId,
boolean pending) |
long |
count(long ownerId) |
void |
delete(Long id) |
Integer |
deleteAllUserContacts(Long ownerId) |
List<UserContact> |
get() |
UserContact |
get(Long id) |
List<UserContact> |
get(long ownerId,
int first,
int count) |
UserContact |
get(Long userId,
Long ownerId) |
List<UserContact> |
getContactRequestsByUserAndStatus(Long userId,
boolean pending) |
List<UserContact> |
getContactsByUserAndStatus(Long ownerId,
boolean pending) |
boolean |
isContact(Long userId,
Long ownerId) |
UserContact |
update(UserContact c) |
Long |
updateContactStatus(Long id,
boolean pending) |
public UserContact add(Long userId, Long ownerId, boolean pending)
public void delete(Long id)
id - public Integer deleteAllUserContacts(Long ownerId)
ownerId - public UserContact get(Long userId, Long ownerId)
public List<UserContact> get(long ownerId, int first, int count)
public long count(long ownerId)
public List<UserContact> getContactsByUserAndStatus(Long ownerId, boolean pending)
public List<UserContact> getContactRequestsByUserAndStatus(Long userId, boolean pending)
public UserContact get(Long id)
public List<UserContact> get()
public UserContact update(UserContact c)
Copyright © 2012–2017 Apache Software Foundation. All rights reserved.