public class HibernateFeedMessageDAO extends HibernatePersistentObjectDAO<FeedMessage> implements FeedMessageDAO
FeedMessageDAO
entityClass, log, sessionFactory
Constructor and Description |
---|
HibernateFeedMessageDAO() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkNotRead()
This method checks if there are some feed messages not already read.
|
void |
deleteOld()
This method deletes all feed messages older that 1 year.
|
List<FeedMessage> |
findAll()
Finds all entities in the database
|
FeedMessage |
findByGuid(String guid)
This method finds a feed message by guid.
|
List<FeedMessage> |
findByTitle(String title)
Finds the list of messages on the basis of the title.
|
bulkUpdate, delete, deleteAll, evict, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, flush, getConnection, getCurrentSession, getDbms, getSessionFactory, initialize, isHsql, isMySQL, isOracle, isSqlServer, jdbcUpdate, jdbcUpdate, merge, prepareQuery, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, refresh, saveOrUpdate, setSessionFactory, store
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bulkUpdate, delete, deleteAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, store
public List<FeedMessage> findAll()
PersistentObjectDAO
findAll
in interface PersistentObjectDAO<FeedMessage>
findAll
in class HibernatePersistentObjectDAO<FeedMessage>
public FeedMessage findByGuid(String guid)
FeedMessageDAO
findByGuid
in interface FeedMessageDAO
guid
- Guid of the feedc message.public boolean checkNotRead()
FeedMessageDAO
checkNotRead
in interface FeedMessageDAO
public void deleteOld()
FeedMessageDAO
deleteOld
in interface FeedMessageDAO
public List<FeedMessage> findByTitle(String title)
FeedMessageDAO
findByTitle
in interface FeedMessageDAO
title
- The title used in like statementCopyright © 2008-2014 Logical Objects. All Rights Reserved.