public class CollectServiceImpl extends Object implements CollectService
| 构造器和说明 |
|---|
CollectServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
BaseVO |
addCollect(int userid)
增加关注
|
BaseVO |
cancelCollect(int userid)
取消关注
|
void |
delete(Collect persistentInstance) |
List |
findAll() |
List<Collect> |
findByExample(Collect instance) |
Collect |
findById(Integer id) |
List<Collect> |
findByOthersid(Object othersid) |
List |
findByProperty(String propertyName,
Object value) |
List<Collect> |
findByUserid(Object userid) |
Collect |
findMyByOthersid(int othersid)
检索我是否已经关注过此人了。
|
CollectDAO |
getCollectDAO() |
LogDAO |
getLogDAO() |
UserDAO |
getUserDAO() |
void |
save(Collect transientInstance) |
void |
setCollectDAO(CollectDAO collectDAO) |
void |
setLogDAO(LogDAO logDAO) |
void |
setUserDAO(UserDAO userDAO) |
public CollectDAO getCollectDAO()
public void setCollectDAO(CollectDAO collectDAO)
public LogDAO getLogDAO()
public void setLogDAO(LogDAO logDAO)
public UserDAO getUserDAO()
public void setUserDAO(UserDAO userDAO)
public void save(Collect transientInstance)
save 在接口中 CollectServicepublic void delete(Collect persistentInstance)
delete 在接口中 CollectServicepublic Collect findById(Integer id)
findById 在接口中 CollectServicepublic List<Collect> findByExample(Collect instance)
findByExample 在接口中 CollectServicepublic List findByProperty(String propertyName, Object value)
findByProperty 在接口中 CollectServicepublic List<Collect> findByUserid(Object userid)
findByUserid 在接口中 CollectServicepublic List<Collect> findByOthersid(Object othersid)
findByOthersid 在接口中 CollectServicepublic List findAll()
findAll 在接口中 CollectServicepublic BaseVO addCollect(int userid)
addCollect 在接口中 CollectServiceuserid - 要关注的用户的idBaseVO 若成功,info返回关注成功的 collect.idpublic BaseVO cancelCollect(int userid)
CollectServicecancelCollect 在接口中 CollectServiceuserid - 要撤销关注的用户的idBaseVOpublic Collect findMyByOthersid(int othersid)
findMyByOthersid 在接口中 CollectServiceothersid - 检索我是否关注过的人的userid