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, transact
public HibernateNewsDao(HibernateDaoContext context)
public void clear() throws DaoException
clear
in interface NewsDao
DaoException
public boolean isNewsExist(int newsId) throws DaoException
isNewsExist
in interface NewsDao
DaoException
public List<News> listNews(String newsGridId) throws DaoException
listNews
in interface NewsDao
DaoException
public void addNews(News news) throws DaoException
addNews
in interface NewsDao
DaoException
public void deleteAllNews(String newsGridId) throws DaoException
deleteAllNews
in interface NewsDao
DaoException
public boolean isNewsExistByNodeIds(String gridId, String nodeId, int nodeLocalId) throws DaoException
isNewsExistByNodeIds
in interface NewsDao
DaoException
public void updateNewsByNodeIds(News news) throws DaoException
updateNewsByNodeIds
in interface NewsDao
DaoException