|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.orm.hibernate.support.HibernateDaoSupport org.figure8.join.core.persistence.HibernateObjectDao org.figure8.join.businessobjects.reporting.persistence.HibernateMessageDao
public class HibernateMessageDao
Implementation of MessageDao using Hibernate ORM system.
Field Summary |
---|
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
---|
logger |
Constructor Summary | |
---|---|
HibernateMessageDao()
Create a new instance of HibernateMessageDao. |
Method Summary | |
---|---|
Message |
getMessage(long id)
Retrieve a message using its unique identifier |
java.util.List |
getMessages(java.util.Date startDate,
java.util.Date endDate)
Retrieve all messages published between publication date and expiry date |
java.util.List |
getMessagesForRelease(Release release,
java.util.Date startDate,
java.util.Date endDate)
Retrieve all messages published between publication date and expiry date for a specified release. |
java.util.List |
getOpenMessages()
Retrieve all current messages at time of invocation |
java.util.List |
getOpenMessagesForRelease(Release release)
Retrieve all current messages that are associated to release at time of invocation |
java.lang.Class |
getPersistentClass()
Get the persistent class associated to this Dao. |
Methods inherited from class org.figure8.join.core.persistence.HibernateObjectDao |
---|
findAll, findAllSorted, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getById, initialize, initializeAssociation, isInitialized, refresh, remove, replicate, save |
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
---|
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, setHibernateTemplate, setSessionFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.figure8.join.core.persistence.ObjectDao |
---|
findAll, findAllSorted, initialize, initializeAssociation, isInitialized, refresh, remove, replicate, save |
Constructor Detail |
---|
public HibernateMessageDao()
Method Detail |
---|
public Message getMessage(long id)
getMessage
in interface MessageDao
id
- The unique identifier of message to retrieve
public java.util.List getOpenMessages()
getOpenMessages
in interface MessageDao
org.figure8.join.businessobjects.reporting.Message
spublic java.util.List getOpenMessagesForRelease(Release release)
getOpenMessagesForRelease
in interface MessageDao
release
- The release to retrieve messages for
org.figure8.join.businessobjects.reporting.Message
s for this releasepublic java.util.List getMessages(java.util.Date startDate, java.util.Date endDate)
getMessages
in interface MessageDao
startDate
- Start date of messages researchendDate
- End date of messages research
org.figure8.join.businessobjects.reporting.Message
spublic java.util.List getMessagesForRelease(Release release, java.util.Date startDate, java.util.Date endDate)
getMessagesForRelease
in interface MessageDao
release
- The release to retrieve messages forstartDate
- Start date of messages researchendDate
- End date of messages research
org.figure8.join.businessobjects.reporting.Message
spublic java.lang.Class getPersistentClass()
ObjectDao
getPersistentClass
in interface ObjectDao
org.figure8.join.businessobjects.reporting.Message
class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |