public class HSQLFavoriteNodeDAO extends PlatformDataAccessObject implements FavoriteNodeDAO
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
delete(FavoriteNode node)
根据对象删除收藏
|
boolean |
deleteByID(long id)
根据id删除对象
|
boolean |
deleteByUserAndEntry(long userid,
int type,
long entryid)
根据userid type 以及entryid删除
|
java.util.List |
findByUserID(long userid)
根据userid获取所有收藏夹对象
|
static HSQLFavoriteNodeDAO |
getInstance() |
void |
save(FavoriteNode node)
保存收藏
|
void |
transfer(FavoriteNode node)
转移收藏
|
closeSession, createSession, createSession, rollbackSessionpublic static HSQLFavoriteNodeDAO getInstance()
public void save(FavoriteNode node) throws java.lang.Exception
FavoriteNodeDAOsave 在接口中 FavoriteNodeDAOjava.lang.Exceptionpublic void transfer(FavoriteNode node) throws java.lang.Exception
FavoriteNodeDAOtransfer 在接口中 FavoriteNodeDAOjava.lang.Exceptionpublic boolean delete(FavoriteNode node) throws java.lang.Exception
FavoriteNodeDAOdelete 在接口中 FavoriteNodeDAOjava.lang.Exceptionpublic boolean deleteByID(long id)
throws java.lang.Exception
FavoriteNodeDAOdeleteByID 在接口中 FavoriteNodeDAOjava.lang.Exceptionpublic boolean deleteByUserAndEntry(long userid,
int type,
long entryid)
throws java.lang.Exception
FavoriteNodeDAOdeleteByUserAndEntry 在接口中 FavoriteNodeDAOjava.lang.Exceptionpublic java.util.List findByUserID(long userid)
throws java.lang.Exception
FavoriteNodeDAOfindByUserID 在接口中 FavoriteNodeDAOjava.lang.Exception