public class HibernateNewsDao extends HibernateDao implements NewsDao
HibernateDao.DaoBlock, HibernateDao.DaoBlockR<R>| Constructor and Description |
|---|
HibernateNewsDao(HibernateDaoContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNews(News news) |
void |
clear() |
void |
deleteAllNews(String newsGridId) |
boolean |
isNewsExist(int newsId) |
boolean |
isNewsExistByNodeIds(String gridId,
String nodeId,
int nodeLocalId) |
List<News> |
listNews(String newsGridId) |
void |
updateNewsByNodeIds(News news) |
createDeleteQuery, createDeleteQuery, deleteEntities, getContext, getSession, logAdditionalInfo, logWhenRollbacking, transact, transactpublic HibernateNewsDao(HibernateDaoContext context)
public void clear()
throws DaoException
clear in interface NewsDaoDaoExceptionpublic boolean isNewsExist(int newsId)
throws DaoException
isNewsExist in interface NewsDaoDaoExceptionpublic List<News> listNews(String newsGridId) throws DaoException
listNews in interface NewsDaoDaoExceptionpublic void addNews(News news) throws DaoException
addNews in interface NewsDaoDaoExceptionpublic void deleteAllNews(String newsGridId) throws DaoException
deleteAllNews in interface NewsDaoDaoExceptionpublic boolean isNewsExistByNodeIds(String gridId, String nodeId, int nodeLocalId) throws DaoException
isNewsExistByNodeIds in interface NewsDaoDaoExceptionpublic void updateNewsByNodeIds(News news) throws DaoException
updateNewsByNodeIds in interface NewsDaoDaoException