public class TableDataFavoriteNodeDAO extends java.lang.Object implements FavoriteNodeDAO
构造器和说明 |
---|
TableDataFavoriteNodeDAO() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
delete(FavoriteNode node)
删除收藏
|
boolean |
deleteByID(long id)
根据id去删除
|
boolean |
deleteByUserAndEntry(long userid,
int type,
long entryid)
根据用户删除收藏
|
java.util.List |
findByUserID(long userid)
根据id取找收藏
|
static TableDataFavoriteNodeDAO |
getInstance() |
void |
save(FavoriteNode node)
保存节点
|
void |
transfer(FavoriteNode node)
转移收藏
|
public static TableDataFavoriteNodeDAO getInstance()
public void save(FavoriteNode node) throws java.lang.Exception
save
在接口中 FavoriteNodeDAO
node
- 节点java.lang.Exception
public void transfer(FavoriteNode node) throws java.lang.Exception
FavoriteNodeDAO
transfer
在接口中 FavoriteNodeDAO
java.lang.Exception
public boolean delete(FavoriteNode node) throws java.lang.Exception
delete
在接口中 FavoriteNodeDAO
node
- 收藏节点java.lang.Exception
public boolean deleteByID(long id) throws java.lang.Exception
deleteByID
在接口中 FavoriteNodeDAO
id
- 用户idjava.lang.Exception
public boolean deleteByUserAndEntry(long userid, int type, long entryid) throws java.lang.Exception
deleteByUserAndEntry
在接口中 FavoriteNodeDAO
entryid
- 节点idtype
- 类型userid
- 用户idjava.lang.Exception
public java.util.List findByUserID(long userid) throws java.lang.Exception
findByUserID
在接口中 FavoriteNodeDAO
userid
- 用户idjava.lang.Exception